[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] How does a guest OS differentiate between a Reboot/Shut
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] How does a guest OS differentiate between a Reboot/Shutdown ACPI event |
Date: |
Mon, 26 Sep 2016 09:10:20 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 26/09/2016 04:38, Srinivasan J wrote:
>
> I have Ubuntu 14.04.1 (ubuntu-14.04.1-server-amd64.iso) guest running
> in a KVM host. The host is running Ubuntu 16.04. I'm trying to find
> out how Ubuntu 14.04.1 differentiates between virsh shutdown and virsh
> reboot commands issued in the host. I see that in both cases the ACPI
> event seen at the guest are exactly same. The guest however correctly
> shuts down on issuing "virsh shutdown" and correctly reboots on
> issuing "virsh reboot".
In the case of "virsh reboot", libvirt restarts the guest as soon as the
shutdown is complete.
Paolo