From: Marcelo Tosatti <mtosatti@redhat.com>
To: kvm-devel@lists.sourceforge.net
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
Avi Kivity <avi@qumranet.com>, Glauber Costa <gcosta@redhat.com>
Subject: [patch 17/23] QEMU/KVM: notify _EJ0 through _SEJ OperationRegion
Date: Tue, 04 Mar 2008 15:34:36 -0300 [thread overview]
Message-ID: <20080304183903.758026490@localhost.localdomain> (raw)
In-Reply-To: 20080304183419.187172133@localhost.localdomain
[-- Attachment #1: acpi-ost --]
[-- Type: text/plain, Size: 9792 bytes --]
The _EJ0 method is executed by the OS once it has successfully finished
device removal. Inform that event through IO port space so QEMU
can free the associated data.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Index: kvm-userspace.hotplug/bios/acpi-dsdt.dsl
===================================================================
--- kvm-userspace.hotplug.orig/bios/acpi-dsdt.dsl
+++ kvm-userspace.hotplug/bios/acpi-dsdt.dsl
@@ -414,159 +414,258 @@ DefinitionBlock (
PCID, 32,
}
+ OperationRegion(SEJ, SystemIO, 0xae08, 0x04)
+ Field (SEJ, DWordAcc, NoLock, WriteAsZeros)
+ {
+ B0EJ, 32,
+ }
+
Device (S1) { // Slot 1
Name (_ADR, 0x00010000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x2, B0EJ)
+ Return (0x0)
+ }
}
Device (S2) { // Slot 2
Name (_ADR, 0x00020000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x4, B0EJ)
+ Return (0x0)
+ }
}
Device (S3) { // Slot 3
Name (_ADR, 0x00030000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store (0x8, B0EJ)
+ Return (0x0)
+ }
}
Device (S4) { // Slot 4
Name (_ADR, 0x00040000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x10, B0EJ)
+ Return (0x0)
+ }
}
Device (S5) { // Slot 5
Name (_ADR, 0x00050000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x20, B0EJ)
+ Return (0x0)
+ }
}
Device (S6) { // Slot 6
Name (_ADR, 0x00060000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x40, B0EJ)
+ Return (0x0)
+ }
}
Device (S7) { // Slot 7
Name (_ADR, 0x00070000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x80, B0EJ)
+ Return (0x0)
+ }
}
Device (S8) { // Slot 8
Name (_ADR, 0x00080000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x100, B0EJ)
+ Return (0x0)
+ }
}
Device (S9) { // Slot 9
Name (_ADR, 0x00090000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x200, B0EJ)
+ Return (0x0)
+ }
}
Device (S10) { // Slot 10
Name (_ADR, 0x000A0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x400, B0EJ)
+ Return (0x0)
+ }
}
Device (S11) { // Slot 11
Name (_ADR, 0x000B0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x800, B0EJ)
+ Return (0x0)
+ }
}
Device (S12) { // Slot 12
Name (_ADR, 0x000C0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x1000, B0EJ)
+ Return (0x0)
+ }
}
Device (S13) { // Slot 13
Name (_ADR, 0x000D0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x2000, B0EJ)
+ Return (0x0)
+ }
}
Device (S14) { // Slot 14
Name (_ADR, 0x000E0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x4000, B0EJ)
+ Return (0x0)
+ }
}
Device (S15) { // Slot 15
Name (_ADR, 0x000F0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x8000, B0EJ)
+ Return (0x0)
+ }
}
Device (S16) { // Slot 16
Name (_ADR, 0x00100000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x10000, B0EJ)
+ Return (0x0)
+ }
}
Device (S17) { // Slot 17
Name (_ADR, 0x00110000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x20000, B0EJ)
+ Return (0x0)
+ }
}
Device (S18) { // Slot 18
Name (_ADR, 0x00120000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x40000, B0EJ)
+ Return (0x0)
+ }
}
Device (S19) { // Slot 19
Name (_ADR, 0x00130000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x80000, B0EJ)
+ Return (0x0)
+ }
}
Device (S20) { // Slot 20
Name (_ADR, 0x00140000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x100000, B0EJ)
+ Return (0x0)
+ }
}
Device (S21) { // Slot 21
Name (_ADR, 0x00150000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x200000, B0EJ)
+ Return (0x0)
+ }
}
Device (S22) { // Slot 22
Name (_ADR, 0x00160000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x400000, B0EJ)
+ Return (0x0)
+ }
}
Device (S23) { // Slot 23
Name (_ADR, 0x00170000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x800000, B0EJ)
+ Return (0x0)
+ }
}
Device (S24) { // Slot 24
Name (_ADR, 0x00180000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x1000000, B0EJ)
+ Return (0x0)
+ }
}
Device (S25) { // Slot 25
Name (_ADR, 0x00190000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x2000000, B0EJ)
+ Return (0x0)
+ }
}
Device (S26) { // Slot 26
Name (_ADR, 0x001A0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x4000000, B0EJ)
+ Return (0x0)
+ }
}
Device (S27) { // Slot 27
Name (_ADR, 0x001B0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x8000000, B0EJ)
+ Return (0x0)
+ }
}
Device (S28) { // Slot 28
Name (_ADR, 0x001C0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x10000000, B0EJ)
+ Return (0x0)
+ }
}
Device (S29) { // Slot 29
Name (_ADR, 0x001D0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x20000000, B0EJ)
+ Return (0x0)
+ }
}
Device (S30) { // Slot 30
Name (_ADR, 0x001E0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x40000000, B0EJ)
+ Return (0x0)
+ }
}
Device (S31) { // Slot 31
Name (_ADR, 0x001F0000)
- Method (_EJ0,1) { Return (0x0) }
+ Method (_EJ0,1) {
+ Store(0x80000000, B0EJ)
+ Return (0x0)
+ }
}
Method (_CRS, 0, NotSerialized)
--
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-03-04 18:34 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-04 18:34 [patch 00/23] [RFC] QEMU/KVM ACPI PCI hotplug Marcelo Tosatti
2008-03-04 18:34 ` [patch 01/23] QEMU/KVM: add PCI IRQ routing information up to slot 32 Marcelo Tosatti
2008-03-05 5:40 ` Avi Kivity
2008-03-04 18:34 ` [patch 02/23] QEMU/KVM: add devices to represent PCI slots with _EJ0 method Marcelo Tosatti
2008-03-04 18:34 ` [patch 03/23] QEMU/KVM: add OperationRegion and GPE handler for add/removal notification Marcelo Tosatti
2008-03-04 18:34 ` [patch 04/23] QEMU/KVM: add pci_find_bus Marcelo Tosatti
2008-03-04 18:34 ` [patch 05/23] QEMU/KVM: return PCIDevice on net device init and record devfn Marcelo Tosatti
2008-03-04 18:34 ` [patch 06/23] QEMU/KVM: pci hotplug GPE support Marcelo Tosatti
2008-03-04 18:34 ` [patch 07/23] QEMU/KVM: dynamic drive/drive_opt index allocation Marcelo Tosatti
2008-03-04 18:34 ` [patch 08/23] QEMU/KVM: dynamic nic info " Marcelo Tosatti
2008-03-04 18:34 ` [patch 09/23] QEMU/KVM: drive removal support Marcelo Tosatti
2008-03-04 18:34 ` [patch 10/23] QEMU/KVM: record devfn on block driver instance Marcelo Tosatti
2008-03-04 18:34 ` [patch 11/23] QEMU/KVM: move drives_opt for external use Marcelo Tosatti
2008-03-04 18:34 ` [patch 12/23] QEMU/KVM: net/drive add/remove tweaks Marcelo Tosatti
2008-03-04 18:34 ` [patch 13/23] QEMU/KVM: add net_client_uninit Marcelo Tosatti
2008-03-04 18:34 ` [patch 14/23] QEMU/KVM: device hot-add Marcelo Tosatti
2008-03-04 19:14 ` Daniel P. Berrange
2008-03-04 19:30 ` Anthony Liguori
2008-03-04 19:53 ` Daniel P. Berrange
2008-03-04 21:44 ` Itamar Heim
2008-03-05 5:50 ` Avi Kivity
2008-03-11 14:18 ` Marcelo Tosatti
2008-03-04 18:34 ` [patch 15/23] QEMU/KVM: add pci_find_device Marcelo Tosatti
2008-03-04 18:34 ` [patch 16/23] QEMU/KVM: add cpu_unregister_io_memory and make io mem table index dynamic Marcelo Tosatti
2008-03-04 18:34 ` Marcelo Tosatti [this message]
2008-03-04 18:34 ` [patch 18/23] QEMU/KVM: handle SEJ notifications Marcelo Tosatti
2008-03-04 18:34 ` [patch 19/23] QEMU/KVM: add qemu_free_irqs Marcelo Tosatti
2008-03-04 18:34 ` [patch 20/23] QEMU/KVM: add pci_unregister_device Marcelo Tosatti
2008-03-04 18:34 ` [patch 21/23] QEMU/KVM: LSI SCSI unregister callback Marcelo Tosatti
2008-03-04 18:34 ` [patch 22/23] QEMU/KVM: zero ioport_opaque on isa_unassign_ioport Marcelo Tosatti
2008-03-04 18:34 ` [patch 23/23] QEMU/KVM: device hot-remove Marcelo Tosatti
2008-03-04 19:18 ` Daniel P. Berrange
2008-03-04 19:32 ` Anthony Liguori
2008-03-04 20:00 ` Marcelo Tosatti
2008-03-04 20:06 ` Daniel P. Berrange
2008-03-05 6:28 ` Avi Kivity
2008-03-05 5:46 ` Avi Kivity
2008-03-05 6:47 ` Avi Kivity
2008-03-05 6:00 ` [patch 00/23] [RFC] QEMU/KVM ACPI PCI hotplug Avi Kivity
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=20080304183903.758026490@localhost.localdomain \
--to=mtosatti@redhat.com \
--cc=avi@qumranet.com \
--cc=gcosta@redhat.com \
--cc=kvm-devel@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox