summaryrefslogtreecommitdiffstats
path: root/include/hw/arm
diff options
context:
space:
mode:
authorJiahui Cen2020-11-19 02:48:35 +0100
committerMichael S. Tsirkin2020-12-08 19:48:57 +0100
commit09fad16744480938543c0e39cfbaecbbd162c39b (patch)
treec9f888e2ec957d54da6ad0c8b48e0b5aacdb1ee4 /include/hw/arm
parentfw_cfg: Refactor extra pci roots addition (diff)
downloadqemu-09fad16744480938543c0e39cfbaecbbd162c39b.tar.gz
qemu-09fad16744480938543c0e39cfbaecbbd162c39b.tar.xz
qemu-09fad16744480938543c0e39cfbaecbbd162c39b.zip
hw/arm/virt: Write extra pci roots into fw_cfg
Add bus property to virt machine for primary PCI root bus and use it to add extra pci roots behind it. Signed-off-by: Jiahui Cen <cenjiahui@huawei.com> Signed-off-by: Yubo Miao <miaoyubo@huawei.com> Message-Id: <20201119014841.7298-4-cenjiahui@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/arm')
-rw-r--r--include/hw/arm/virt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h
index aad6d69841..abf54fab49 100644
--- a/include/hw/arm/virt.h
+++ b/include/hw/arm/virt.h
@@ -163,6 +163,7 @@ struct VirtMachineState {
DeviceState *gic;
DeviceState *acpi_dev;
Notifier powerdown_notifier;
+ PCIBus *bus;
};
#define VIRT_ECAM_ID(high) (high ? VIRT_HIGH_PCIE_ECAM : VIRT_PCIE_ECAM)