diff --git a/tests/qemuxml2argvdata/default-video-type-aarch64.xml b/tests/qemuxml2argvdata/default-video-type-aarch64.xml
new file mode 100644
index 0000000000000000000000000000000000000000..03326d3c9b3a909015cb5c17810292b16f45991a
--- /dev/null
+++ b/tests/qemuxml2argvdata/default-video-type-aarch64.xml
@@ -0,0 +1,16 @@
+
+ default-video-type-aarch64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1
+
+ hvm
+
+
+
+ /usr/bin/qemu-system-aarch64
+
+
+
+
+
diff --git a/tests/qemuxml2argvdata/default-video-type-ppc64.xml b/tests/qemuxml2argvdata/default-video-type-ppc64.xml
new file mode 100644
index 0000000000000000000000000000000000000000..739e07fc19c932f5d3d1ffbf9fa816285bb87557
--- /dev/null
+++ b/tests/qemuxml2argvdata/default-video-type-ppc64.xml
@@ -0,0 +1,16 @@
+
+ default-video-type-ppc64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1
+
+ hvm
+
+
+
+ /usr/bin/qemu-system-ppc64
+
+
+
+
+
diff --git a/tests/qemuxml2argvdata/default-video-type-riscv64.xml b/tests/qemuxml2argvdata/default-video-type-riscv64.xml
new file mode 100644
index 0000000000000000000000000000000000000000..55f6fa9391a48648ba72858e03fb6609cecba577
--- /dev/null
+++ b/tests/qemuxml2argvdata/default-video-type-riscv64.xml
@@ -0,0 +1,16 @@
+
+ default-video-type-riscv64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1
+
+ hvm
+
+
+
+ /usr/bin/qemu-system-riscv64
+
+
+
+
+
diff --git a/tests/qemuxml2argvdata/default-video-type-s390x.xml b/tests/qemuxml2argvdata/default-video-type-s390x.xml
new file mode 100644
index 0000000000000000000000000000000000000000..9eda06a3a158ec2a5834fa02b70b922bd7183c2c
--- /dev/null
+++ b/tests/qemuxml2argvdata/default-video-type-s390x.xml
@@ -0,0 +1,16 @@
+
+ default-video-type-s390x-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1
+
+ hvm
+
+
+
+ /usr/bin/qemu-system-s390x
+
+
+
+
+
diff --git a/tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-0.xml b/tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-0.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2c753fe227fbcfbb1bc1b4475de3b7970ac5721c
--- /dev/null
+++ b/tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-0.xml
@@ -0,0 +1,17 @@
+
+ default-video-type-x86_64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1
+
+ hvm
+
+
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
diff --git a/tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-1.xml b/tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-1.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2c753fe227fbcfbb1bc1b4475de3b7970ac5721c
--- /dev/null
+++ b/tests/qemuxml2argvdata/default-video-type-x86_64-caps-test-1.xml
@@ -0,0 +1,17 @@
+
+ default-video-type-x86_64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1
+
+ hvm
+
+
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 07e711840df9cc64e43721a4cc418c974bfd1100..a2791d0460ac94926cef18a96978c7516089ee39 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -2059,6 +2059,7 @@ mymain(void)
DO_TEST("video-none-device",
QEMU_CAPS_VNC);
DO_TEST_PARSE_ERROR("video-invalid-multiple-devices", NONE);
+ DO_TEST_PARSE_ERROR("default-video-type-x86_64-caps-test-0", NONE);
DO_TEST("virtio-rng-default",
QEMU_CAPS_DEVICE_VIRTIO_RNG,
diff --git a/tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4b660b8d70b962aab4bf576401be2dfcd32c7862
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/default-video-type-aarch64.aarch64-latest.xml
@@ -0,0 +1,42 @@
+
+ default-video-type-aarch64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1048576
+ 1
+
+ hvm
+
+
+
+
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-aarch64
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml
new file mode 100644
index 0000000000000000000000000000000000000000..590a73b456a4ddd662d2d8760df33153ffcac8a6
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/default-video-type-ppc64.ppc64-latest.xml
@@ -0,0 +1,31 @@
+
+ default-video-type-ppc64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1048576
+ 1
+
+ hvm
+
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-ppc64
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml
new file mode 100644
index 0000000000000000000000000000000000000000..ebb3bfe980edac2ce56529bb5e3873ac7d4195d9
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/default-video-type-riscv64.riscv64-latest.xml
@@ -0,0 +1,39 @@
+
+ default-video-type-riscv64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1048576
+ 1
+
+ hvm
+
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-riscv64
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml b/tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml
new file mode 100644
index 0000000000000000000000000000000000000000..21718db1ca9a55658e181411c0d710780489b87f
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/default-video-type-s390x.s390x-latest.xml
@@ -0,0 +1,32 @@
+
+ default-video-type-s390x-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1048576
+ 1
+
+ hvm
+
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-s390x
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml
new file mode 100644
index 0000000000000000000000000000000000000000..645019c23061f316f10724bab602b6b012af7678
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-0.xml
@@ -0,0 +1,31 @@
+
+ default-video-type-x86_64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1048576
+ 1
+
+ hvm
+
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f763b6902eafcedea470ebdac946732d5679a524
--- /dev/null
+++ b/tests/qemuxml2xmloutdata/default-video-type-x86_64-caps-test-1.xml
@@ -0,0 +1,31 @@
+
+ default-video-type-x86_64-test
+ 6ba410c5-1e5c-4d57-bee7-2228e7ffa32f
+ 1048576
+ 1048576
+ 1
+
+ hvm
+
+
+
+
+ destroy
+ restart
+ destroy
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index 2c61d7db8af385072fc6bfc85c01b8a3dbff3c98..8b43f35f06927cc838787646b324776980863840 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -355,6 +355,13 @@ mymain(void)
DO_TEST("graphics-vnc-egl-headless",
QEMU_CAPS_DEVICE_CIRRUS_VGA, QEMU_CAPS_EGL_HEADLESS);
+ DO_TEST_CAPS_ARCH_LATEST("default-video-type-aarch64", "aarch64");
+ DO_TEST_CAPS_ARCH_LATEST("default-video-type-ppc64", "ppc64");
+ DO_TEST_CAPS_ARCH_LATEST("default-video-type-riscv64", "riscv64");
+ DO_TEST_CAPS_ARCH_LATEST("default-video-type-s390x", "s390x");
+ DO_TEST("default-video-type-x86_64-caps-test-0", QEMU_CAPS_DEVICE_VGA);
+ DO_TEST("default-video-type-x86_64-caps-test-1", QEMU_CAPS_DEVICE_CIRRUS_VGA);
+
DO_TEST("graphics-sdl", QEMU_CAPS_DEVICE_VGA);
DO_TEST("graphics-sdl-fullscreen", QEMU_CAPS_DEVICE_CIRRUS_VGA);
DO_TEST("graphics-spice", QEMU_CAPS_DEVICE_QXL);