From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34660 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcMyK-0007kj-FO for qemu-devel@nongnu.org; Mon, 10 Jan 2011 14:00:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcMyF-0004X7-4n for qemu-devel@nongnu.org; Mon, 10 Jan 2011 14:00:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcMyE-0004Vz-TX for qemu-devel@nongnu.org; Mon, 10 Jan 2011 13:59:59 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0AIxuRa014640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Jan 2011 13:59:57 -0500 Message-Id: <20110110185906.880770691@redhat.com> Date: Mon, 10 Jan 2011 16:55:02 -0200 From: Marcelo Tosatti References: <20110110185501.493193296@redhat.com> Content-Disposition: inline; filename=document-acpi-pci-hotplug Subject: [Qemu-devel] [patch 1/2] document QEMU<->ACPIBIOS PCI hotplug interface List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Marcelo Tosatti , qemu-devel@nongnu.org Document how QEMU communicates with ACPI BIOS for PCI hotplug. Signed-off-by: Marcelo Tosatti Index: qemu/docs/specs/acpi_pci_hotplug.txt =================================================================== --- /dev/null +++ qemu/docs/specs/acpi_pci_hotplug.txt @@ -0,0 +1,39 @@ +QEMU<->ACPI BIOS PCI hotplug interface +-------------------------------------- + +QEMU supports PCI hotplug via ACPI, for PCI bus 0. This document +describes the interface between QEMU and the ACPI BIOS. + +ACPI GPE block (IO ports 0xafe0-0xafe3, byte access): +----------------------------------------- + +Generic ACPI GPE block. Bit 1 (GPE.1) used to notify PCI hotplug/eject +event to ACPI BIOS, via SCI interrupt. + +PCI slot injection notification pending (IO port 0xae00-0xae03, 4-byte access): +--------------------------------------------------------------- +Slot injection notification pending. One bit per slot. + +Read by ACPI BIOS GPE.1 handler to notify OS of injection +events. + +PCI slot removal notification (IO port 0xae04-0xae07, 4-byte access): +----------------------------------------------------- +Slot removal notification pending. One bit per slot. + +Read by ACPI BIOS GPE.1 handler to notify OS of removal +events. + +PCI device eject (IO port 0xae08-0xae0b, 4-byte access): +---------------------------------------- + +Used by ACPI BIOS _EJ0 method to request device removal. One bit per slot. +Reads return 0. + +PCI removability status (IO port 0xae0c-0xae0f, 4-byte access): +----------------------------------------------- + +Used by ACPI BIOS _RMV method to indicate removability status to OS. One +bit per slot. + +