From: Peter Krempa Date: Fri, 3 Mar 2023 13:17:06 +0000 (+0100) Subject: qemuxml2argvdata: Convert test cases for 'ppc' architecture to latest caps X-Git-Tag: v9.2.0-rc1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fe04562ff7603b2538d0753674825eb725b899;p=thirdparty%2Flibvirt.git qemuxml2argvdata: Convert test cases for 'ppc' architecture to latest caps Convert the 'ppc-dtb' and 'ppce500-serial' to use real capabilities albeit captured from a non-native machine. Thus the XML needs to be converted to use virt type 'qemu'. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tests/qemuxml2argvdata/ppc-dtb.args b/tests/qemuxml2argvdata/ppc-dtb.ppc-latest.args similarity index 63% rename from tests/qemuxml2argvdata/ppc-dtb.args rename to tests/qemuxml2argvdata/ppc-dtb.ppc-latest.args index 3f63febd42..217406aa28 100644 --- a/tests/qemuxml2argvdata/ppc-dtb.args +++ b/tests/qemuxml2argvdata/ppc-dtb.ppc-latest.args @@ -9,10 +9,11 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \ /usr/bin/qemu-system-ppc \ -name guest=QEMUGuest1,debug-threads=on \ -S \ --object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes \ --machine ppce500,usb=off,dump-guest-core=off \ --accel kvm \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine ppce500,usb=off,dump-guest-core=off,memory-backend=mpc8544ds.ram \ +-accel tcg \ -m 256 \ +-object '{"qom-type":"memory-backend-ram","id":"mpc8544ds.ram","size":268435456}' \ -overcommit mem-lock=off \ -smp 1,sockets=1,cores=1,threads=1 \ -uuid 49545eb3-75e1-2d0a-acdd-f0294406c99e \ @@ -28,9 +29,10 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \ -initrd /media/ram/ramdisk \ -append 'root=/dev/ram rw console=ttyS0,115200' \ -dtb /media/ram/test.dtb \ --usb \ +-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1"}' \ -chardev pty,id=charserial0 \ -serial chardev:charserial0 \ -audiodev '{"id":"audio1","driver":"none"}' \ --device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ +-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","addr":"0x2"}' \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/ppc-dtb.xml b/tests/qemuxml2argvdata/ppc-dtb.xml index 04f0eb6624..37b9b280e7 100644 --- a/tests/qemuxml2argvdata/ppc-dtb.xml +++ b/tests/qemuxml2argvdata/ppc-dtb.xml @@ -1,4 +1,4 @@ - + QEMUGuest1 49545eb3-75e1-2d0a-acdd-f0294406c99e 262144 diff --git a/tests/qemuxml2argvdata/ppce500-serial.args b/tests/qemuxml2argvdata/ppce500-serial.ppc-latest.args similarity index 62% rename from tests/qemuxml2argvdata/ppce500-serial.args rename to tests/qemuxml2argvdata/ppce500-serial.ppc-latest.args index 4418c1f3d8..b51e915a1a 100644 --- a/tests/qemuxml2argvdata/ppce500-serial.args +++ b/tests/qemuxml2argvdata/ppce500-serial.ppc-latest.args @@ -9,10 +9,11 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \ /usr/bin/qemu-system-ppc \ -name guest=QEMUGuest1,debug-threads=on \ -S \ --object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes \ --machine ppce500,usb=off,dump-guest-core=off \ --accel kvm \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \ +-machine ppce500,usb=off,dump-guest-core=off,memory-backend=mpc8544ds.ram \ +-accel tcg \ -m 256 \ +-object '{"qom-type":"memory-backend-ram","id":"mpc8544ds.ram","size":268435456}' \ -overcommit mem-lock=off \ -smp 1,sockets=1,cores=1,threads=1 \ -uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \ @@ -27,9 +28,10 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \ -kernel /media/ram/uImage \ -initrd /media/ram/ramdisk \ -append 'root=/dev/ram rw console=ttyS0,115200' \ --usb \ +-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1"}' \ -chardev pty,id=charserial0 \ -serial chardev:charserial0 \ -audiodev '{"id":"audio1","driver":"none"}' \ --device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2 \ +-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","addr":"0x2"}' \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on diff --git a/tests/qemuxml2argvdata/ppce500-serial.xml b/tests/qemuxml2argvdata/ppce500-serial.xml index 4e656d5ffe..20a3b1e7a8 100644 --- a/tests/qemuxml2argvdata/ppce500-serial.xml +++ b/tests/qemuxml2argvdata/ppce500-serial.xml @@ -1,4 +1,4 @@ - + QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 262144 diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index d13b43df84..89ec07c548 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2179,10 +2179,8 @@ mymain(void) DO_TEST("s390-serial-console", QEMU_CAPS_DEVICE_SCLPCONSOLE); - DO_TEST("ppc-dtb", - QEMU_CAPS_KVM); - DO_TEST("ppce500-serial", - QEMU_CAPS_KVM); + DO_TEST_CAPS_ARCH_LATEST("ppc-dtb", "ppc"); + DO_TEST_CAPS_ARCH_LATEST("ppce500-serial", "ppc"); DO_TEST_CAPS_LATEST("tpm-passthrough"); DO_TEST_CAPS_LATEST("tpm-passthrough-crb");