Ross S. W. Walker
2007-Mar-23 14:29 UTC
[Xen-devel] HVM guest shutdown send ACPI Power Event
Is there any plans to help HVM guests shutdown cleanly by issuing an ACPI power button event on HVM shutdown with a configurable timeout? This way it would allow ACPI aware HVM guests to initiate a clean shutdown and xend will only forcibly shutdown the guest if it hasn''t powered itself off within the timeout value. This would be extremely helpful for Windows guests which can detect the ACPI power button event and cleanly shutdown. Ross S. W. Walker Information Systems Manager Medallion Financial, Corp. 437 Madison Avenue 38th Floor New York, NY 10022 Tel: (212) 328-2165 Fax: (212) 328-2125 WWW: http://www.medallion.com ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Mar-23 18:26 UTC
Re: [Xen-devel] HVM guest shutdown send ACPI Power Event
On 23/3/07 14:29, "Ross S. W. Walker" <rwalker@medallion.com> wrote:> Is there any plans to help HVM guests shutdown cleanly by issuing an ACPI > power button event on HVM shutdown with a configurable timeout? > > This way it would allow ACPI aware HVM guests to initiate a clean shutdown and > xend will only forcibly shutdown the guest if it hasn''t powered itself off > within the timeout value. > > This would be extremely helpful for Windows guests which can detect the ACPI > power button event and cleanly shutdown.I think this is quite likely. It just needs someone to grok how the ACPI event mechanism works. I expect some extra procedures are needed in the ACPI tables, an extra IO port perhaps needs to be emulated in qemu-dm and also we''d need to trigger ACPI SCIs from qemu. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ross S. W. Walker
2007-Mar-23 19:55 UTC
RE: [Xen-devel] HVM guest shutdown send ACPI Power Event
> -----Original Message----- > From: Keir Fraser [mailto:Keir.Fraser@cl.cam.ac.uk] > Sent: Friday, March 23, 2007 2:27 PM > To: Ross S. W. Walker; xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] HVM guest shutdown send ACPI Power Event > > On 23/3/07 14:29, "Ross S. W. Walker" <rwalker@medallion.com> wrote: > > > Is there any plans to help HVM guests shutdown cleanly by > issuing an ACPI > > power button event on HVM shutdown with a configurable timeout? > > > > This way it would allow ACPI aware HVM guests to initiate a > clean shutdown and > > xend will only forcibly shutdown the guest if it hasn''t > powered itself off > > within the timeout value. > > > > This would be extremely helpful for Windows guests which > can detect the ACPI > > power button event and cleanly shutdown. > > I think this is quite likely. It just needs someone to grok > how the ACPI > event mechanism works. I expect some extra procedures are > needed in the ACPI > tables, an extra IO port perhaps needs to be emulated in > qemu-dm and also > we''d need to trigger ACPI SCIs from qemu.Sounds good, if I wasn''t clueless on system BIOS I''d jump in with a patch, otherwise I will just have to add it to the wish list for 3.0.5. Of course the python scripts will also need to be modified to add a timeout wait option for HVM guests, otherwise the qemu-dm will signal an ACPI power event, but xend will kill the guest before it can shutdown. -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Julian Pawlowski
2007-Mar-25 17:37 UTC
Re: [Xen-devel] HVM guest shutdown send ACPI Power Event
> Is there any plans to help HVM guests shutdown cleanly by issuing an ACPI > power button event on HVM shutdown with a configurable timeout?Excellent questian! :-) Julian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel