[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(-)
- [Qemu-devel] [PATCH v3 0/5] pc: make ACPI pcihp more reusable,
Igor Mammedov <=
- [Qemu-devel] [PATCH v3 1/5] pcihp: replace enable|disable_device() with oneliners, Igor Mammedov, 2014/01/31
- [Qemu-devel] [PATCH v3 2/5] pcihp: make PCI hotplug mmio handlers indifferent to PCI_HOTPLUG_ADDR, Igor Mammedov, 2014/01/31
- [Qemu-devel] [PATCH v3 3/5] pcihp: make pci_read() mmio calback compatible with legacy ACPI hotplug, Igor Mammedov, 2014/01/31
- [Qemu-devel] [PATCH v3 4/5] pcihp: remove unused AcpiPciHpPciStatus.device_present field, Igor Mammedov, 2014/01/31
- [Qemu-devel] [PATCH v3 5/5] hw:piix4:acpi: reuse pcihp code for legacy PCI hotplug, Igor Mammedov, 2014/01/31