tests/libqos: Add loongarch virt machine node
authorBibo Mao <maobibo@loongson.cn>
Tue, 28 May 2024 08:20:53 +0000 (16:20 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 6 Jun 2024 03:56:36 +0000 (11:56 +0800)
commitfe43cc5bde32d8bba930242f34ad55002ea4819e
tree042041a382d6ca5c09a42c4f3d57128a51b235a3
parentdb2feb2df8d19592c9859efb3f682404e0052957
tests/libqos: Add loongarch virt machine node

Add loongarch virt machine to the graph. It is a modified copy of
the existing riscv virtmachine in riscv-virt-machine.c

It contains a generic-pcihost controller, and an extra function
loongarch_config_qpci_bus() to configure GPEX pci host controller
information, such as ecam and pio_base addresses.

Also hotplug handle checking about TYPE_VIRTIO_IOMMU_PCI device is
added on loongarch virt machine, since virtio_mmu_pci device requires
it.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20240528082053.938564-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
hw/loongarch/virt.c
tests/qtest/libqos/loongarch-virt-machine.c [new file with mode: 0644]
tests/qtest/libqos/meson.build