From 5cbc7dbe68ca1743a45567d4bb9d15ad3b8687d9 Mon Sep 17 00:00:00 2001 Message-ID: <5cbc7dbe68ca1743a45567d4bb9d15ad3b8687d9.1784297532.git.jdenemar@redhat.com> From: Peter Krempa Date: Mon, 8 Jun 2026 17:30:50 +0200 Subject: [PATCH] qemustatusxml2xml: Add test case capturing virtio video device Add example of two running configs with distinct recorded capabilities (presence of QEMU_CAPS_DEVICE_VIRTIO_VGA at startup) which will demonstrate the recording of the picked actual device type on the commandline. Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik (cherry picked from commit 7d4b510bc7f18fc0605efa1cb9aac282c3c24fe6) https://redhat.atlassian.net/browse/RHEL-186019 Conflicts: - tests/qemustatusxml2xmldata/virtio-vga-upgrade-in.xml - tests/qemustatusxml2xmldata/virtio-vga-upgrade-missing-in.xml - tests/qemustatusxml2xmldata/virtio-vga-upgrade-missing-out.xml - tests/qemustatusxml2xmldata/virtio-vga-upgrade-out.xml Context; some qemu capabilities weren't yet backported upstream. They are not essential to the test https://redhat.atlassian.net/browse/RHEL-177646 (rhel-9.9) --- .../virtio-vga-upgrade-in.xml | 461 ++++++++++++++++++ .../virtio-vga-upgrade-missing-in.xml | 459 +++++++++++++++++ .../virtio-vga-upgrade-missing-out.xml | 452 +++++++++++++++++ .../virtio-vga-upgrade-out.xml | 454 +++++++++++++++++ tests/qemuxmlactivetest.c | 6 + 5 files changed, 1832 insertions(+) create mode 100644 tests/qemustatusxml2xmldata/virtio-vga-upgrade-in.xml create mode 100644 tests/qemustatusxml2xmldata/virtio-vga-upgrade-missing-in.xml create mode 100644 tests/qemustatusxml2xmldata/virtio-vga-upgrade-missing-out.xml create mode 100644 tests/qemustatusxml2xmldata/virtio-vga-upgrade-out.xml diff --git a/tests/qemustatusxml2xmldata/virtio-vga-upgrade-in.xml b/tests/qemustatusxml2xmldata/virtio-vga-upgrade-in.xml new file mode 100644 index 0000000000..9be9e920f3 --- /dev/null +++ b/tests/qemustatusxml2xmldata/virtio-vga-upgrade-in.xml @@ -0,0 +1,461 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -2 + + virtio-vga-test + 9ccb5ed0-fda4-4760-a38c-83e5f9eba7cf + + + + + + 4194304 + 4194304 + 2 + + /machine + + + hvm + + + + + + + + + + + + + + destroy + restart + destroy + + + + + + /usr/bin/qemu-system-x86_64 + + +
+ + + + + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + + + +
+ + + +
+ + + +
+ + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + +