]> xenbits.xensource.com Git - xen.git/commit
tools/xenstore: allow live update only with no transaction active
authorJuergen Gross <jgross@suse.com>
Wed, 13 Jan 2021 13:00:18 +0000 (14:00 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 21 Jan 2021 16:31:02 +0000 (17:31 +0100)
commite04e53a5be20245320aa42e932aad967b42d79fd
treec445eee13e299ee79a8efb7f6c0c14642b974ffc
parentaf216a99fb4ac21b6fd1d665f0502803c6e8573a
tools/xenstore: allow live update only with no transaction active

In order to simplify live update state dumping only allow live update
to happen when no transaction is active.

A timeout is used to detect guests which have a transaction active for
longer periods of time. In case such a guest is detected when trying
to do a live update it will be reported and the update will fail.

The admin can then either use a longer timeout, or use the force flag
to just ignore the transactions of such a guest, or kill the guest
before retrying.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_core.h
tools/xenstore/xenstored_transaction.c