From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmHD9-00080e-C4 for qemu-devel@nongnu.org; Tue, 11 Jun 2013 01:33:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmHD8-0000hD-HA for qemu-devel@nongnu.org; Tue, 11 Jun 2013 01:33:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmHD8-0000h7-9c for qemu-devel@nongnu.org; Tue, 11 Jun 2013 01:33:38 -0400 Message-ID: <51B6B68E.9040508@redhat.com> Date: Tue, 11 Jun 2013 07:33:02 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1370882347-31129-1-git-send-email-mst@redhat.com> In-Reply-To: <1370882347-31129-1-git-send-email-mst@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu: piix: PCI bridge ACPI hotplug support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Peter Maydell , Anthony Liguori , David Woodhouse , seabios@seabios.org, qemu-devel@nongnu.org, Kevin O'Connor , Jordan Justen , Laszlo Ersek Hi, > * Use of glib's GArray makes it much easier to build > up tables in code without need for iasl and code patching Nice. > Design: > - each bus gets assigned a number 0-255 > - generated ACPI code writes this number > to a new BSEL register, then uses existing > UP/DOWN registers to probe slot status; > to eject, write number to BSEL register, > then slot into existing EJ > > This is to address the ACPI spec requirement to > avoid config cycle access to any bus except PCI roots. > > Portability: > - Non x86 (or any Linux) platforms don't need any of this code. > They can keep happily using SHPC the way > they always did. Hmm. Is is possible to write a SHPC driver in AML? I think it would be alot better to have one guest/host interface for pci bridge hotplug instead of two. cheers, Gerd