diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2017-10-11 15:57:16 +0200 |
---|---|---|
committer | Pavel Hrdina <phrdina@redhat.com> | 2017-10-19 11:52:30 +0200 |
commit | a9d637e71e37c4f6fdb7f163e273bfb3007da402 (patch) | |
tree | 7d6c9e9dd81236a2d8f30b4000247d8bfef9acc3 /tests/qemuxml2xmltest.c | |
parent | dd97c1480e4c5c0a8dd61a36b653a0cef9fd9337 (diff) | |
download | libvirt-a9d637e71e37c4f6fdb7f163e273bfb3007da402.tar.gz |
qemu: move detection whether to use -no-reboot to qemu_domain
This will be used later on in implementation of new API
virDomainSetLifecycleAction(). In order to use it, we need to store
the value in status XML to not lose the information if libvirtd is
restarted.
If some guest was started by old libvirt where it was not possible
to change the lifecycle action for running guest, we can safely
detect it based on the current actions from the status XML.
Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'tests/qemuxml2xmltest.c')
-rw-r--r-- | tests/qemuxml2xmltest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 14f5b58fe9..2185532a6c 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -109,7 +109,8 @@ static const char testStatusXMLPrefixBodyStatic[] = "</devices>\n" "<numad nodeset='0-2' cpuset='1,3'/>\n" "<libDir path='/tmp'/>\n" -"<channelTargetDir path='/tmp/channel'/>\n"; +"<channelTargetDir path='/tmp/channel'/>\n" +"<allowReboot value='yes'/>\n"; static const char testStatusXMLSuffix[] = "</domstatus>\n"; |