From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34954 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeqCi-0003h4-2U for qemu-devel@nongnu.org; Mon, 17 Jan 2011 09:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeqCf-0001Ac-RR for qemu-devel@nongnu.org; Mon, 17 Jan 2011 09:37:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeqCf-00019V-KU for qemu-devel@nongnu.org; Mon, 17 Jan 2011 09:37:05 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0HEb3wm009659 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Jan 2011 09:37:03 -0500 Date: Mon, 17 Jan 2011 16:36:47 +0200 From: "Michael S. Tsirkin" Message-ID: <20110117143647.GA27919@redhat.com> References: <20110111162037.699979125@redhat.com> <20110111162353.910330983@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110111162353.910330983@redhat.com> Subject: [Qemu-devel] Re: [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: Marcelo Tosatti Cc: qemu-devel@nongnu.org On Tue, Jan 11, 2011 at 02:20:38PM -0200, Marcelo Tosatti wrote: > Document how QEMU communicates with ACPI BIOS for PCI hotplug. > > Signed-off-by: Marcelo Tosatti This one seems to add whitespae errors: /scm/qemu/.git/rebase-apply/patch:5: new blank line at EOF. + warning: 1 line adds whitespace errors. > 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. > + > + >