From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsxmk-0005an-KL for qemu-devel@nongnu.org; Wed, 09 Jan 2013 10:41:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tsxmf-0003UH-NT for qemu-devel@nongnu.org; Wed, 09 Jan 2013 10:41:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:28231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsxmf-0003UD-Fk for qemu-devel@nongnu.org; Wed, 09 Jan 2013 10:41:41 -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.14.4/8.14.4) with ESMTP id r09FfeeU007724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Jan 2013 10:41:40 -0500 From: Gerd Hoffmann Date: Wed, 9 Jan 2013 16:41:34 +0100 Message-Id: <1357746097-23338-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [RfC PATCH 0/3] q35: acpi hotplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Hi, Experimental and untested patch series to implement acpi-based pci hotplug on q35. I'm only looking for comments on the approach taken, especially on patch #3. The actual hotplug protocol is identical to piix, the difference is how the io ports are mapped. piix has magic io ports at a fixed address. For ich9 I don't want to do the same and create a pci device instead, so the io ports show up as usual in the guests ressource management and we can be sure we don't get conflicts. No seabios bits yet. Should be largely identical to the piix ones, except that we create the OperationalRegion using PciBarTarget instead of SystemIO. cheers, Gerd Gerd Hoffmann (3): split acpi pci hotplug code into separate file fix off-byone in hw/acpi_pci_hotplug.h q35: add & windup ich9-pci-hotplug device hw/Makefile.objs | 2 +- hw/acpi_ich9.c | 89 ++++++++++++++++++++ hw/acpi_ich9.h | 1 + hw/acpi_pci_hotplug.c | 214 +++++++++++++++++++++++++++++++++++++++++++++++++ hw/acpi_pci_hotplug.h | 26 ++++++ hw/acpi_piix4.c | 202 ++-------------------------------------------- hw/lpc_ich9.c | 5 +- 7 files changed, 344 insertions(+), 195 deletions(-) create mode 100644 hw/acpi_pci_hotplug.c create mode 100644 hw/acpi_pci_hotplug.h