提交 b0c144c5 编写于 作者: N Nikolay Shirokovskiy 提交者: John Ferlan

qemu: Set fake reboot flag to false when mode=agent

As commit id 'e2b86f58' 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
上级 3b676eb6
...@@ -2092,6 +2092,7 @@ qemuDomainReboot(virDomainPtr dom, unsigned int flags) ...@@ -2092,6 +2092,7 @@ qemuDomainReboot(virDomainPtr dom, unsigned int flags)
} }
if (useAgent) { if (useAgent) {
qemuDomainSetFakeReboot(driver, vm, false);
qemuDomainObjEnterAgent(vm); qemuDomainObjEnterAgent(vm);
ret = qemuAgentShutdown(priv->agent, agentFlag); ret = qemuAgentShutdown(priv->agent, agentFlag);
qemuDomainObjExitAgent(vm); qemuDomainObjExitAgent(vm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册