From: "Bill Rieske" Subject: RE: ACPI fixed event or General Purpose Event to HVMguest. Date: Thu, 17 Jul 2008 12:30:14 -0600 Message-ID: <487F3EF5.D34E.008B.3@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org resend. didn't see it show up on the list. Sorry if duplicate. > >>Has there been any work done on getting an ACPI fixed event or=20 >>perhaps a general >>purpose event delivered to an HVM guest. Whereby, the HVM=20 >>guests OSPM could consume the event and act accordingly. >=20 > Now Xen support live migration with VT- d assigned device, which=20 > is based on a virtual ACPI hotplug mechanism, where one specific > GPE bit is created within Qemu. You can check piix4acpi.c in > Qemu for reference. >=20 I will look a little closer at this file. Thanks >> >>Or Perhaps better stated how would one go about passing an=20 >>ACPI fixed event or general purpose event that was raised and=20 >>consumed by dom0 and subsequently pass the event on to each of=20 >>the HVM domu's. =20 >> >=20 > But if you're talking about passing through a physical ACPI event > to HVM, it seems a bit tricky since not all ACPI events are=20 > waterfalled to user space, and even when some does, it doesn't=20 > make sense to simply forward already- consumed event to HVM, > as Qemu ACPI table is different from physical one.=20 >=20 > So, what's your main purpose here? >=20 It would be nice to simulate the action of a power button or perhaps even = the sleep button from a tool set on dom0 and push that up into the HVM to = cause it to power down/sleep/wake as it does on bare metal.