From patchwork Tue Jan 11 16:20:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 78405 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 060C7B6F2B for ; Wed, 12 Jan 2011 03:32:08 +1100 (EST) Received: from localhost ([127.0.0.1]:49795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pch8f-0003NZ-B3 for incoming@patchwork.ozlabs.org; Tue, 11 Jan 2011 11:32:05 -0500 Received: from [140.186.70.92] (port=47204 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pch4R-0004BV-UM for qemu-devel@nongnu.org; Tue, 11 Jan 2011 11:29:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pch2Z-0002lU-Dv for qemu-devel@nongnu.org; Tue, 11 Jan 2011 11:27:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pch2Z-0002lE-6Y for qemu-devel@nongnu.org; Tue, 11 Jan 2011 11:25:47 -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 p0BGPjSd008854 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Jan 2011 11:25:46 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0BGPjWg025612; Tue, 11 Jan 2011 11:25:45 -0500 Received: from amt.cnet (vpn2-8-91.ams2.redhat.com [10.36.8.91]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p0BGPhLb012248; Tue, 11 Jan 2011 11:25:44 -0500 Received: from amt.cnet (localhost.localdomain [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 7EB79656184; Tue, 11 Jan 2011 14:25:32 -0200 (BRST) Received: (from marcelo@localhost) by amt.cnet (8.14.4/8.14.4/Submit) id p0BGPVJX009067; Tue, 11 Jan 2011 14:25:31 -0200 Message-Id: <20110111162353.910330983@redhat.com> User-Agent: quilt/0.48-1 Date: Tue, 11 Jan 2011 14:20:38 -0200 From: Marcelo Tosatti To: "Michael S. Tsirkin" References: <20110111162037.699979125@redhat.com> Content-Disposition: inline; filename=document-acpi-pci-hotplug X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Marcelo Tosatti , qemu-devel@nongnu.org Subject: [Qemu-devel] [patch 1/2] document QEMU<->ACPIBIOS PCI hotplug interface X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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. + +