This patch serial is about PCI resource reserve capability.
First patch refactors the resource reserve fields in GenPCIERoorPort
structure out to another new structure, called "PCIResReserve". Modify
the parameter list of pci_bridge_qemu_reserve_cap_init().
Second patch enables the resource reserve capability for legacy PCI bridge
so that firmware can reserve additional resources for this bridge.
Change Logs:
v3 -> v2
* remove the teardown patch because only need pci_del_capability
* keep the names to be consistent with firmware counterpart
* some minor fixes
v2 -> v1
* add refactoring patch
* add teardown function
* some other fixes
Jing Liu (2):
hw/pci: factor PCI reserve resources to a separate structure
hw/pci: add PCI resource reserve capability to legacy PCI bridge
hw/pci-bridge/gen_pcie_root_port.c | 33 +++++++++++++++++----------------
hw/pci-bridge/pci_bridge_dev.c | 24 ++++++++++++++++++++++++
hw/pci/pci_bridge.c | 38 +++++++++++++++++---------------------
include/hw/pci/pci_bridge.h | 18 +++++++++++++-----
4 files changed, 71 insertions(+), 42 deletions(-)
--
1.8.3.1