From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG4G0-00044e-2F for qemu-devel@nongnu.org; Thu, 14 Mar 2013 05:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG4Ft-0007F9-SZ for qemu-devel@nongnu.org; Thu, 14 Mar 2013 05:15:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG4Ft-0007Ex-Hv for qemu-devel@nongnu.org; Thu, 14 Mar 2013 05:15:21 -0400 Message-ID: <51419516.3040107@redhat.com> Date: Thu, 14 Mar 2013 10:15:02 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1363250927-20298-1-git-send-email-hutao@cn.fujitsu.com> In-Reply-To: <1363250927-20298-1-git-send-email-hutao@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Add pvevent device driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hu Tao Cc: Peter Maydell , Gleb Natapov , "Michael S. Tsirkin" , Jan Kiszka , seabios@seabios.org, qemu-devel , Markus Armbruster , Blue Swirl , Orit Wasserman , Juan Quintela , Alexander Graf , Christian Borntraeger , Andrew Jones , Alex Williamson , Sasha Levin , Stefan Hajnoczi , Luiz Capitulino , KAMEZAWA Hiroyuki , Kevin Wolf , Anthony Liguori , Marcelo Tosatti Il 14/03/2013 09:48, Hu Tao ha scritto: > pvevent device is used to notify host(qemu) when guest panic > happens. > > ref: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html > > Signed-off-by: Hu Tao > --- > src/acpi-dsdt-isa.dsl | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/src/acpi-dsdt-isa.dsl b/src/acpi-dsdt-isa.dsl > index 23761db..d083245 100644 > --- a/src/acpi-dsdt-isa.dsl > +++ b/src/acpi-dsdt-isa.dsl > @@ -99,4 +99,34 @@ Scope(\_SB.PCI0.ISA) { > IRQNoFlags() { 3 } > }) > } > + > + Device(PEVT) { > + Name(_HID, "MSFT0001") > + OperationRegion(PEOR, SystemIO, 0x0505, 0x01) > + Field(PEOR, ByteAcc, NoLock, Preserve) { > + PEPT, 8, > + } > + > + Method(_STA, 0, NotSerialized) { > + Store(PEPT, Local0) > + If (LEqual(Local0, Zero)) { > + Return (0x00) > + } Else { > + Return (0x0F) > + } > + } > + > + Method(RDPT, 0, NotSerialized) { > + Store(PEPT, Local0) > + Return (Local0) > + } > + > + Method(WRPT, 1, NotSerialized) { > + Store(Arg0, PEPT) > + } > + > + Name(_CRS, ResourceTemplate() { > + IO(Decode16, 0x0505, 0x0505, 0x01, 0x01) > + }) > + } > } > I like the idea of using methods in the DSDT to isolate from the actual implementation of the device. I don't see a huge problem with the probing, but Gleb does so please go on with the fw_cfg part. Paolo