From: Nikolay Shirokovskiy Date: Tue, 2 Aug 2016 11:37:39 +0000 (-0400) Subject: qemu: Set fake reboot flag to false when mode=agent X-Git-Tag: v2.2.0-rc1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0c144c57926056d9d8b7a4d23ef87a5107c5121;p=thirdparty%2Flibvirt.git qemu: Set fake reboot flag to false when mode=agent As commit id 'e2b86f580' notes, when mode=agent possibly setting the fake reboot flag to true wouldn't be necessary; however, it doesn't "force" the issue by just ensuring the fake reboot is false, so this patch adds the explicit setting for the reboot path. More investigation and details can be found in commit id '8be502fd' as well as in the archives at: https://www.redhat.com/archives/libvir-list/2015-April/msg00715.html --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index ec6c1e60c4..8a8e593ee9 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -2092,6 +2092,7 @@ qemuDomainReboot(virDomainPtr dom, unsigned int flags) } if (useAgent) { + qemuDomainSetFakeReboot(driver, vm, false); qemuDomainObjEnterAgent(vm); ret = qemuAgentShutdown(priv->agent, agentFlag); qemuDomainObjExitAgent(vm);