From b298fc142f9637161659bf50533ddf16af0f41b4 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Thu, 22 Jul 2021 15:06:03 +0200 Subject: [PATCH] tests: Test pcie-expander-bus for aarch64/virt guests Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik --- ...e-expander-bus-aarch64.aarch64-latest.args | 32 +++++++++++++++++++ .../pcie-expander-bus-aarch64.xml | 15 +++++++++ tests/qemuxml2argvtest.c | 1 + ...ie-expander-bus-aarch64.aarch64-latest.xml | 32 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 5 files changed, 81 insertions(+) create mode 100644 tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch64-latest.args create mode 100644 tests/qemuxml2argvdata/pcie-expander-bus-aarch64.xml create mode 100644 tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarch64-latest.xml diff --git a/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch64-latest.args b/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch64-latest.args new file mode 100644 index 0000000000..d3b7f724aa --- /dev/null +++ b/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch64-latest.args @@ -0,0 +1,32 @@ +LC_ALL=C \ +PATH=/bin \ +HOME=/tmp/lib/domain--1-pcie-expander-bus-te \ +USER=test \ +LOGNAME=test \ +XDG_DATA_HOME=/tmp/lib/domain--1-pcie-expander-bus-te/.local/share \ +XDG_CACHE_HOME=/tmp/lib/domain--1-pcie-expander-bus-te/.cache \ +XDG_CONFIG_HOME=/tmp/lib/domain--1-pcie-expander-bus-te/.config \ +/usr/bin/qemu-system-aarch64 \ +-name guest=pcie-expander-bus-test,debug-threads=on \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tmp/lib/domain--1-pcie-expander-bus-te/master-key.aes"}' \ +-machine virt,accel=tcg,usb=off,dump-guest-core=off,gic-version=2,memory-backend=mach-virt.ram \ +-cpu cortex-a15 \ +-m 2048 \ +-object '{"qom-type":"memory-backend-ram","id":"mach-virt.ram","size":2147483648}' \ +-overcommit mem-lock=off \ +-smp 16,sockets=16,cores=1,threads=1 \ +-uuid 11dbdcdd-4c3b-482b-8903-9bdb8c0a2774 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=charmonitor,fd=1729,server=on,wait=off \ +-mon chardev=charmonitor,id=monitor,mode=control \ +-rtc base=utc \ +-no-shutdown \ +-no-acpi \ +-boot strict=on \ +-device pxb-pcie,bus_nr=254,id=pci.1,bus=pcie.0,addr=0x1 \ +-audiodev id=audio1,driver=none \ +-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ +-msg timestamp=on diff --git a/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.xml b/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.xml new file mode 100644 index 0000000000..da27fc5abe --- /dev/null +++ b/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.xml @@ -0,0 +1,15 @@ + + pcie-expander-bus-test + 11dbdcdd-4c3b-482b-8903-9bdb8c0a2774 + 2097152 + 16 + + hvm + + + /usr/bin/qemu-system-aarch64 + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 67c056b887..b552f5deed 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2847,6 +2847,7 @@ mymain(void) DO_TEST_PARSE_ERROR("pcie-expander-bus-bad-bus", QEMU_CAPS_DEVICE_IOH3420, QEMU_CAPS_DEVICE_PXB_PCIE); + DO_TEST_CAPS_ARCH_LATEST("pcie-expander-bus-aarch64", "aarch64"); DO_TEST_CAPS_VER("hostdev-scsi-lsi", "4.1.0"); DO_TEST_CAPS_LATEST("hostdev-scsi-lsi"); diff --git a/tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarch64-latest.xml b/tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarch64-latest.xml new file mode 100644 index 0000000000..f68203f3fe --- /dev/null +++ b/tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarch64-latest.xml @@ -0,0 +1,32 @@ + + pcie-expander-bus-test + 11dbdcdd-4c3b-482b-8903-9bdb8c0a2774 + 2097152 + 2097152 + 16 + + hvm + + + + + + + cortex-a15 + + + destroy + restart + destroy + + /usr/bin/qemu-system-aarch64 + + + + +
+ +