mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tests: enable virtio tests on SPAPR
but disable MSI-X tests on SPAPR as we can't check the result (the memory region used on PC is not readable on SPAPR). Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a980f7f2c2
commit
30ca440eec
7 changed files with 88 additions and 13 deletions
|
@ -20,8 +20,13 @@ static void pci_nop(void)
|
|||
|
||||
static void hotplug(void)
|
||||
{
|
||||
const char *arch = qtest_get_arch();
|
||||
|
||||
qpci_plug_device_test("virtio-rng-pci", "rng1", PCI_SLOT_HP, NULL);
|
||||
qpci_unplug_acpi_device_test("rng1", PCI_SLOT_HP);
|
||||
|
||||
if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
|
||||
qpci_unplug_acpi_device_test("rng1", PCI_SLOT_HP);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue