Received: from eggs.gnu.org ([208.118.235.92]:33435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Esq-0005Kx-Av for qemu-devel@nongnu.org; Sun, 04 Mar 2012 12:06:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4Eso-0005HZ-NN for qemu-devel@nongnu.org; Sun, 04 Mar 2012 12:06:07 -0500 Received: from mail-vx0-f173.google.com ([209.85.220.173]:57328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4Eso-0005HF-Im for qemu-devel@nongnu.org; Sun, 04 Mar 2012 12:06:06 -0500 Received: by vcbfl11 with SMTP id fl11so1134019vcb.4 for ; Sun, 04 Mar 2012 09:06:03 -0800 (PST) Date: Sun, 4 Mar 2012 12:06:00 -0500 From: Kevin O'Connor Message-ID: <20120304170600.GA29291@morn.localdomain> References: <20120224231735.17761.31411.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120224231735.17761.31411.stgit@bling.home> Subject: Re: [Qemu-devel] [PATCH] seabios: acpi: Add _STA for PCI hotplug slots List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: seabios@seabios.org, ddutile@redhat.com, qemu-devel@nongnu.org, gleb@redhat.com, mst@redhat.com On Fri, Feb 24, 2012 at 04:21:17PM -0700, Alex Williamson wrote: > When a Status method is provided on a slot, the OSPM evaluates > _STA in response to the device check notify on the slot. This > allows some degree of a handshake between the platform and the > OSPM that the hotplug has been acknowledged. > > In order to implement _STA, we need to know which slots have > devices. A slot with device returns 0x0F, a slot without a > device returns Zero. We get this information from Qemu using > the 0xae08 I/O port register. This was previously the read-side > of the register written to commit a device eject and always > returned 0 on read. It now returns a bitmap of present slots, > so we know that reading 0 means we have and old Qemu and > dynamically modify our SSDT to rename the _STA methods. This > is necessary to allow backwards compatibility. > > The _STA method also writes the slot identifier to I/O port > register 0xae00 as an acknowledgment of the hotplug request. Thanks. The patch looks fine to me. However, since I'm not all that familiar with the details of the qemu/kvm support for this, I'd like to see an Ack from one of the qemu or kvm maintainers. -Kevin