mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemuxml2argvtest: Modernize 'balloon-mmio-deflate'
Use real capabilities and mask-out support for PCIe. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b7f0487184
commit
d66fb85fb5
@ -9,11 +9,12 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-aarch64test/.config \
|
|||||||
/usr/bin/qemu-system-aarch64 \
|
/usr/bin/qemu-system-aarch64 \
|
||||||
-name guest=aarch64test,debug-threads=on \
|
-name guest=aarch64test,debug-threads=on \
|
||||||
-S \
|
-S \
|
||||||
-object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain--1-aarch64test/master-key.aes \
|
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-aarch64test/master-key.aes"}' \
|
||||||
-machine virt,usb=off,gic-version=2,dump-guest-core=off \
|
-machine virt,usb=off,gic-version=2,dump-guest-core=off,memory-backend=mach-virt.ram \
|
||||||
-accel tcg \
|
-accel tcg \
|
||||||
-cpu cortex-a53 \
|
-cpu cortex-a53 \
|
||||||
-m 1024 \
|
-m 1024 \
|
||||||
|
-object '{"qom-type":"memory-backend-ram","id":"mach-virt.ram","size":1073741824}' \
|
||||||
-overcommit mem-lock=off \
|
-overcommit mem-lock=off \
|
||||||
-smp 1,sockets=1,cores=1,threads=1 \
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
-uuid 496d7ea8-9739-544b-4ebd-ef08be936e8b \
|
-uuid 496d7ea8-9739-544b-4ebd-ef08be936e8b \
|
||||||
@ -31,5 +32,6 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-aarch64test/.config \
|
|||||||
-append 'earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait' \
|
-append 'earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait' \
|
||||||
-dtb /aarch64.dtb \
|
-dtb /aarch64.dtb \
|
||||||
-audiodev '{"id":"audio1","driver":"none"}' \
|
-audiodev '{"id":"audio1","driver":"none"}' \
|
||||||
-device virtio-balloon-device,id=balloon0,deflate-on-oom=on \
|
-device '{"driver":"virtio-balloon-device","id":"balloon0","deflate-on-oom":true}' \
|
||||||
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
||||||
-msg timestamp=on
|
-msg timestamp=on
|
@ -1703,9 +1703,13 @@ mymain(void)
|
|||||||
DO_TEST("balloon-device-deflate",
|
DO_TEST("balloon-device-deflate",
|
||||||
QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE);
|
QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE);
|
||||||
DO_TEST_CAPS_ARCH_LATEST("balloon-ccw-deflate", "s390x");
|
DO_TEST_CAPS_ARCH_LATEST("balloon-ccw-deflate", "s390x");
|
||||||
DO_TEST("balloon-mmio-deflate",
|
DO_TEST_FULL("balloon-mmio-deflate", ".aarch64-latest",
|
||||||
QEMU_CAPS_DEVICE_VIRTIO_MMIO,
|
ARG_CAPS_ARCH, "aarch64",
|
||||||
QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE);
|
ARG_CAPS_VER, "latest",
|
||||||
|
ARG_QEMU_CAPS_DEL,
|
||||||
|
QEMU_CAPS_OBJECT_GPEX, QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||||
|
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE, QEMU_CAPS_DEVICE_IOH3420,
|
||||||
|
QEMU_CAPS_LAST, ARG_END);
|
||||||
DO_TEST("balloon-device-deflate-off",
|
DO_TEST("balloon-device-deflate-off",
|
||||||
QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE);
|
QEMU_CAPS_VIRTIO_BALLOON_AUTODEFLATE);
|
||||||
DO_TEST_NOCAPS("balloon-device-auto");
|
DO_TEST_NOCAPS("balloon-device-auto");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user