qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v3 0/5] pc: make ACPI pcihp more reusable


From: Igor Mammedov
Subject: [Qemu-devel] [PATCH v3 0/5] pc: make ACPI pcihp more reusable
Date: Fri, 31 Jan 2014 14:27:05 +0100

changes since v2:
 - rename 'use_acpi_pci_hotplug' field to 'legacy_piix'
   and corresponding properties 
 - drop excessive checks for legacy mode
 - rework legacy vmstate handling to use AcpiPciHpPciStatus[0] structure
   which reduced acpi/piix4.c by another 50 LOC
 - move legacy initialization to pcihp.c
changes since v1:
 - add BSEL property to root bus when in compatibility mode
     as result dropped "hw:acpi:pcihp: assume root PCI bus if bus has no 
ACPI_PCIHP_PROP_BSEL property"
 - rebasing on top of "pcihp: reduce number of device check events"
   added patch 3/4.

Reuses new pcihp code for handling legacy PCI hotplug in
acpi/piix4_pm, which significantly reduces code duplication
between piix4_pm and pcihp reducing codebase by ~200 LOC.

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_v3

Igor Mammedov (5):
  pcihp: replace enable|disable_device() with oneliners
  pcihp: make PCI hotplug mmio handlers indifferent to PCI_HOTPLUG_ADDR
  pcihp: make pci_read() mmio calback compatible with legacy ACPI
    hotplug
  pcihp: remove unused AcpiPciHpPciStatus.device_present field
  hw:piix4:acpi: reuse pcihp code for legacy PCI hotplug

 hw/acpi/pcihp.c         |   64 +++++++-------
 hw/acpi/piix4.c         |  220 ++++-------------------------------------------
 include/hw/acpi/pcihp.h |    3 +-
 include/hw/i386/pc.h    |    4 +-
 4 files changed, 57 insertions(+), 234 deletions(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]