[libvirt] [Xen-devel] [PATCH] libxl: support ACPI shutdown flag
Ian Campbell
Ian.Campbell at citrix.com
Tue Apr 29 09:53:00 UTC 2014
On Tue, 2014-04-29 at 10:06 +0100, Daniel P. Berrange wrote:
> IIUC libxl_domain_shutdown() will use the Xen paravirt channel
> to trigger a controlled shutdown in the guest. Currently we have
> the following flags defined
>
> VIR_DOMAIN_SHUTDOWN_DEFAULT = 0, /* hypervisor choice */
> VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN = (1 << 0), /* Send ACPI event */
> VIR_DOMAIN_SHUTDOWN_GUEST_AGENT = (1 << 1), /* Use guest agent */
> VIR_DOMAIN_SHUTDOWN_INITCTL = (1 << 2), /* Use initctl */
> VIR_DOMAIN_SHUTDOWN_SIGNAL = (1 << 3), /* Send a signal */
>
> None of those really map to the Xen paravirt shutdown
It's not a million miles away from VIR_DOMAIN_SHUTDOWN_GUEST_AGENT if
you consider the bit of the kernel which responds to the paravirt
shutdown request as an agent of sorts. With Windows PV drivers I think
this is even literally a userspace component.
Not that having a more explicit type is a bad idea, but I thought I'd
mention it.
Ian.
More information about the libvir-list
mailing list