From: Gleb Natapov <gleb@redhat.com>
To: Hu Tao <hutao@cn.fujitsu.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
Jan Kiszka <jan.kiszka@siemens.com>,
seabios@seabios.org, qemu-devel <qemu-devel@nongnu.org>,
Markus Armbruster <armbru@redhat.com>,
Blue Swirl <blauwirbel@gmail.com>,
Orit Wasserman <owasserm@redhat.com>,
Juan Quintela <quintela@redhat.com>,
Alexander Graf <agraf@suse.de>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Andrew Jones <drjones@redhat.com>,
Alex Williamson <alex.williamson@redhat.com>,
Sasha Levin <levinsasha928@gmail.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Luiz Capitulino <lcapitulino@redhat.com>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Kevin Wolf <kwolf@redhat.com>,
Anthony Liguori <aliguori@us.ibm.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] Add pvevent device driver
Date: Thu, 14 Mar 2013 10:57:18 +0200 [thread overview]
Message-ID: <20130314085718.GZ11223@redhat.com> (raw)
In-Reply-To: <1363250927-20298-1-git-send-email-hutao@cn.fujitsu.com>
On Thu, Mar 14, 2013 at 04:48:47PM +0800, Hu Tao wrote:
> 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 <hutao@cn.fujitsu.com>
> ---
> 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")
We cannot use MSFT!
> + OperationRegion(PEOR, SystemIO, 0x0505, 0x01)
IO port should be received form QEMU by fw_cfg and patched here at run time.
> + Field(PEOR, ByteAcc, NoLock, Preserve) {
> + PEPT, 8,
> + }
> +
> + Method(_STA, 0, NotSerialized) {
> + Store(PEPT, Local0)
> + If (LEqual(Local0, Zero)) {
> + Return (0x00)
> + } Else {
> + Return (0x0F)
> + }
> + }
No probing. If QEMU does not provide IO port function should be patched
to return zero.
> +
> + 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)
> + })
> + }
> }
> --
> 1.8.1.4
--
Gleb.
next prev parent reply other threads:[~2013-03-14 8:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 8:48 [Qemu-devel] [PATCH] Add pvevent device driver Hu Tao
2013-03-14 8:57 ` Gleb Natapov [this message]
2013-03-14 9:33 ` Hu Tao
2013-03-14 9:37 ` Gleb Natapov
2013-03-14 10:08 ` [Qemu-devel] [SeaBIOS] " David Woodhouse
2013-03-14 10:11 ` Gleb Natapov
2013-03-14 9:15 ` [Qemu-devel] " Paolo Bonzini
2013-03-14 9:17 ` Gleb Natapov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130314085718.GZ11223@redhat.com \
--to=gleb@redhat.com \
--cc=agraf@suse.de \
--cc=alex.williamson@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=armbru@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=borntraeger@de.ibm.com \
--cc=drjones@redhat.com \
--cc=hutao@cn.fujitsu.com \
--cc=jan.kiszka@siemens.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kwolf@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=levinsasha928@gmail.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=owasserm@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=seabios@seabios.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.