Re: [PATCH] qemuDomainReboot: use fakeReboot=true only for acpi mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 20, 2016 at 16:10:09 +0300, Dmitry Andreev wrote:
> When acpi is used to reboot/shutdown qemu domain, qemu emits
> SHUTDOWN event. Libvirt uses fakeReboot variable in order to
> differentiate reboot or shutdown. fakeReboot value is reseted
> to false after domain restart/reset.
> 
> When mode=agent is used to reboot qemu domain, qemu doesn't emit
> SHUTDOWN event and libvirt doesn't reset fakeReboot value to false.
> In this case next 'shutdown -h now' performs reboot. That's why
> we don't need to set fakeReboot=true for mode=agent.
> ---
>  src/qemu/qemu_driver.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

ACK

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]