Received: from eggs.gnu.org ([2001:4830:134:3::10]:49828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5cZZ-0002K0-WF for qemu-devel@nongnu.org; Tue, 21 Jan 2014 09:45:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5cZV-00089p-5J for qemu-devel@nongnu.org; Tue, 21 Jan 2014 09:45:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5cZU-00089L-Tm for qemu-devel@nongnu.org; Tue, 21 Jan 2014 09:44:57 -0500 From: Igor Mammedov Date: Tue, 21 Jan 2014 15:40:02 +0100 Message-Id: <1390315206-20903-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] pc: make ACPI pcihp more reusable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@amazon.com, mst@redhat.com Reuses new pcihp code for handling legacy PCI hotplug in acpi/piix4_pm, which significantly reduces code duplication between piix4_pm and pcihp amd makes pcihp less dependend on piix4 specific details. It also allows cleaner rebase of generic hotplug refactoring, by not increasing code duplication since it will need to be done only for pcihp. Git tree for testing based on mst's PCI tree: https://github.com/imammedo/qemu/commits/pcihp_cleanup_v1 Igor Mammedov (4): hw:piix4:acpi: replace enable|disable_device() with oneliners hw:piix4:acpi: make PCI hotplug mmio handlers indifferent to PCI_HOTPLUG_ADDR hw:acpi:pcihp: assume root PCI bus if bus has no ACPI_PCIHP_PROP_BSEL property hw:piix4:acpi: reuse pcihp code for legacy PCI hotplug hw/acpi/pcihp.c | 58 +++++--------- hw/acpi/piix4.c | 196 +++++------------------------------------------ include/hw/acpi/pcihp.h | 8 ++- 3 files changed, 48 insertions(+), 214 deletions(-)