OSDN Git Service

hw/pci: factor PCI reserve resources to a separate structure
authorJing Liu <jing2.liu@linux.intel.com>
Tue, 21 Aug 2018 03:18:06 +0000 (11:18 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Sep 2018 21:05:18 +0000 (17:05 -0400)
commit9e8993991ec002f36e642f9c24e80ab5845366f8
treea1f1c592b1676083b945f295895bf8f838f6c4ff
parentdb812c4073c77c8a64db8d6663b3416a587c7b4a
hw/pci: factor PCI reserve resources to a separate structure

Factor "bus_reserve", "io_reserve", "mem_reserve", "pref32_reserve"
and "pref64_reserve" fields of the "GenPCIERootPort" structure out
to "PCIResReserve" structure, so that other PCI bridges can
reuse it to add resource reserve capability.

Signed-off-by: Jing Liu <jing2.liu@linux.intel.com>
Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci-bridge/gen_pcie_root_port.c
hw/pci/pci_bridge.c
include/hw/pci/pci_bridge.h