From d5a656f2fe0e7aea8f56a4b4c59dcc3d5e906411 Mon Sep 17 00:00:00 2001 Message-Id: From: Jiri Denemark Date: Fri, 21 Jun 2019 09:25:49 +0200 Subject: [PATCH] tests: Add domain capabilities case for QEMU 4.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jiri Denemark Reviewed-by: Ján Tomko (cherry picked from commit 9ceee2f4bb5d6cefa24c3aedcb7addbe7907c60b) https://bugzilla.redhat.com/show_bug.cgi?id=1697627 Conflicts: tests/domaincapstest.c - several cases are missing tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml - some capabilities are not reported in domaincaps Signed-off-by: Jiri Denemark Message-Id: <87edadf46f7d4d7ad161b2ab433632f9d0f66920.1561068591.git.jdenemar@redhat.com> Reviewed-by: Ján Tomko --- .../qemu_4.1.0.x86_64.xml | 148 ++++++++++++++++++ tests/domaincapstest.c | 4 + 2 files changed, 152 insertions(+) create mode 100644 tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml diff --git a/tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml b/tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml new file mode 100644 index 0000000000..47aed6a43a --- /dev/null +++ b/tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml @@ -0,0 +1,148 @@ + + /usr/bin/qemu-system-x86_64 + kvm + pc-i440fx-4.1 + x86_64 + + + + + /usr/share/AAVMF/AAVMF_CODE.fd + /usr/share/AAVMF/AAVMF32_CODE.fd + /usr/share/OVMF/OVMF_CODE.fd + + rom + pflash + + + yes + no + + + + + + + Skylake-Client + Intel + + + + + + + + + + + + qemu64 + qemu32 + phenom + pentium3 + pentium2 + pentium + n270 + kvm64 + kvm32 + coreduo + core2duo + athlon + Westmere-IBRS + Westmere + Skylake-Server-IBRS + Skylake-Server + Skylake-Client-IBRS + Skylake-Client + SandyBridge-IBRS + SandyBridge + Penryn + Opteron_G5 + Opteron_G4 + Opteron_G3 + Opteron_G2 + Opteron_G1 + Nehalem-IBRS + Nehalem + IvyBridge-IBRS + IvyBridge + Icelake-Server + Icelake-Client + Haswell-noTSX-IBRS + Haswell-noTSX + Haswell-IBRS + Haswell + EPYC-IBPB + EPYC + Conroe + Cascadelake-Server + Broadwell-noTSX-IBRS + Broadwell-noTSX + Broadwell-IBRS + Broadwell + 486 + + + + + + disk + cdrom + floppy + lun + + + ide + fdc + scsi + virtio + usb + sata + + + + + sdl + vnc + spice + + + + + + subsystem + + + default + mandatory + requisite + optional + + + usb + pci + scsi + + + + default + kvm + vfio + + + + + + + + + + diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c index 06e77fd586..30e7eea3cb 100644 --- a/tests/domaincapstest.c +++ b/tests/domaincapstest.c @@ -504,6 +504,10 @@ mymain(void) "/usr/bin/qemu-system-s390x", NULL, "s390x", VIR_DOMAIN_VIRT_KVM); + DO_TEST_QEMU("4.1.0", "caps_4.1.0", + "/usr/bin/qemu-system-x86_64", NULL, + "x86_64", VIR_DOMAIN_VIRT_KVM); + virObjectUnref(cfg); #endif /* WITH_QEMU */ -- 2.22.0