[libvirt] [PATCH] qemu: Qemu process unexpectedly killed in repeated reboot

Wang King king.wang at huawei.com
Fri Nov 30 08:53:56 UTC 2018


The issue occurs when I make repeated calls to virDomainReboot with
VIR_DOMAIN_REBOOT_DEFAULT flag. In the first call to reboot domain,
the qemu driver chose ACPI path, and set priv->fakeReboot to true.
Then in a second call, qemu driver chose agent to reboot which set
fakeReboot to false. But because the guest already responded to ACPI
shut down, libvirtd daemon will process a SHUTDOWN event in
qemuProcessShutdownOrReboot and checks priv->fakeReboot. Since the
fakeReboot flag is now false, qemu process is unexpectedly killed.

I have no idea how to fix it.

Signed-off-by: Wang King <king.wang at huawei.com>
-- 
2.8.3





More information about the libvir-list mailing list