aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiahui Cen <cenjiahui@huawei.com>2020-11-19 09:48:35 +0800
committerMichael S. Tsirkin <mst@redhat.com>2020-12-08 13:48:57 -0500
commit09fad16744480938543c0e39cfbaecbbd162c39b (patch)
treec9f888e2ec957d54da6ad0c8b48e0b5aacdb1ee4 /include
parent0abd38885ac0fcdb08653922f339849cad387961 (diff)
downloadqemu-09fad16744480938543c0e39cfbaecbbd162c39b.zip
qemu-09fad16744480938543c0e39cfbaecbbd162c39b.tar.gz
qemu-09fad16744480938543c0e39cfbaecbbd162c39b.tar.bz2
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')
-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 aad6d69..abf54fa 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)