]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2xmltest: Modernize 'aarch64-gic*' test cases
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Mar 2023 15:47:03 +0000 (16:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 11 Apr 2023 08:08:32 +0000 (10:08 +0200)
Use real capabilities for them.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
16 files changed:
tests/qemuxml2xmloutdata/aarch64-gic-default-both.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-default-both.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-default-v2.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-none-v2.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-default-v3.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-none-both.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-default.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-default-v3.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-default.xml [deleted file]
tests/qemuxml2xmloutdata/aarch64-gic-host.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-host.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-none-both.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-none-v3.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.xml with 93% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-none-v2.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-default-v2.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-none-v3.aarch64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/aarch64-gic-none.aarch64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/aarch64-gic-v2.aarch64-latest.xml [moved from tests/qemuxml2xmloutdata/aarch64-gic-none.xml with 92% similarity]
tests/qemuxml2xmloutdata/aarch64-gic-v2.xml [deleted file]
tests/qemuxml2xmloutdata/aarch64-gic-v3.aarch64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/aarch64-gic-v3.xml [deleted file]
tests/qemuxml2xmltest.c

similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-default-both.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-default-both.aarch64-latest.xml
index 247d6025f71751f089d077120b969f80571dd0bf..5b2fb7df753d2203e08f10379f7d1554d2a1f053 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-none-v2.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-default-v2.aarch64-latest.xml
index 474e641ccdbb726932df774f2d41211813772c13..d2148fefa0c28defa014e695df98bc7730441746 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-none-both.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-default-v3.aarch64-latest.xml
index 247d6025f71751f089d077120b969f80571dd0bf..5b2fb7df753d2203e08f10379f7d1554d2a1f053 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-default-v3.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-default.aarch64-latest.xml
index 247d6025f71751f089d077120b969f80571dd0bf..5b2fb7df753d2203e08f10379f7d1554d2a1f053 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
diff --git a/tests/qemuxml2xmloutdata/aarch64-gic-default.xml b/tests/qemuxml2xmloutdata/aarch64-gic-default.xml
deleted file mode 100644 (file)
index 474e641..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<domain type='kvm'>
-  <name>aarch64test</name>
-  <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
-  <memory unit='KiB'>1048576</memory>
-  <currentMemory unit='KiB'>1048576</currentMemory>
-  <vcpu placement='static'>1</vcpu>
-  <os>
-    <type arch='aarch64' machine='virt'>hvm</type>
-    <boot dev='hd'/>
-  </os>
-  <features>
-    <gic version='2'/>
-  </features>
-  <cpu mode='host-passthrough' check='none'/>
-  <clock offset='utc'/>
-  <on_poweroff>destroy</on_poweroff>
-  <on_reboot>restart</on_reboot>
-  <on_crash>destroy</on_crash>
-  <devices>
-    <emulator>/usr/bin/qemu-system-aarch64</emulator>
-    <controller type='usb' index='0' model='none'/>
-    <audio id='1' type='none'/>
-    <memballoon model='none'/>
-  </devices>
-</domain>
similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-host.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-host.aarch64-latest.xml
index 0598473318faed26bd0c94f82dbaae4a489026eb..eb3b0531cde31836bffd593abceb6d8a2e20b994 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-none-v3.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-none-both.aarch64-latest.xml
index 247d6025f71751f089d077120b969f80571dd0bf..5b2fb7df753d2203e08f10379f7d1554d2a1f053 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
similarity index 93%
rename from tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-none-tcg.aarch64-latest.xml
index c71b1cde626125b2f472e0b4fc1b93526d058bf0..ab274a1ef19df767be4c0971b82ea53c03e02ca7 100644 (file)
@@ -21,6 +21,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-default-v2.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-none-v2.aarch64-latest.xml
index 474e641ccdbb726932df774f2d41211813772c13..d2148fefa0c28defa014e695df98bc7730441746 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
diff --git a/tests/qemuxml2xmloutdata/aarch64-gic-none-v3.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-gic-none-v3.aarch64-latest.xml
new file mode 100644 (file)
index 0000000..5b2fb7d
--- /dev/null
@@ -0,0 +1,26 @@
+<domain type='kvm'>
+  <name>aarch64test</name>
+  <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
+  <memory unit='KiB'>1048576</memory>
+  <currentMemory unit='KiB'>1048576</currentMemory>
+  <vcpu placement='static'>1</vcpu>
+  <os>
+    <type arch='aarch64' machine='virt'>hvm</type>
+    <boot dev='hd'/>
+  </os>
+  <features>
+    <gic version='3'/>
+  </features>
+  <cpu mode='host-passthrough' check='none'/>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>destroy</on_crash>
+  <devices>
+    <emulator>/usr/bin/qemu-system-aarch64</emulator>
+    <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
+    <audio id='1' type='none'/>
+    <memballoon model='none'/>
+  </devices>
+</domain>
diff --git a/tests/qemuxml2xmloutdata/aarch64-gic-none.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-gic-none.aarch64-latest.xml
new file mode 100644 (file)
index 0000000..5b2fb7d
--- /dev/null
@@ -0,0 +1,26 @@
+<domain type='kvm'>
+  <name>aarch64test</name>
+  <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
+  <memory unit='KiB'>1048576</memory>
+  <currentMemory unit='KiB'>1048576</currentMemory>
+  <vcpu placement='static'>1</vcpu>
+  <os>
+    <type arch='aarch64' machine='virt'>hvm</type>
+    <boot dev='hd'/>
+  </os>
+  <features>
+    <gic version='3'/>
+  </features>
+  <cpu mode='host-passthrough' check='none'/>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>destroy</on_crash>
+  <devices>
+    <emulator>/usr/bin/qemu-system-aarch64</emulator>
+    <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
+    <audio id='1' type='none'/>
+    <memballoon model='none'/>
+  </devices>
+</domain>
similarity index 92%
rename from tests/qemuxml2xmloutdata/aarch64-gic-none.xml
rename to tests/qemuxml2xmloutdata/aarch64-gic-v2.aarch64-latest.xml
index 474e641ccdbb726932df774f2d41211813772c13..d2148fefa0c28defa014e695df98bc7730441746 100644 (file)
@@ -19,6 +19,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-aarch64</emulator>
     <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
     <audio id='1' type='none'/>
     <memballoon model='none'/>
   </devices>
diff --git a/tests/qemuxml2xmloutdata/aarch64-gic-v2.xml b/tests/qemuxml2xmloutdata/aarch64-gic-v2.xml
deleted file mode 100644 (file)
index 474e641..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<domain type='kvm'>
-  <name>aarch64test</name>
-  <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
-  <memory unit='KiB'>1048576</memory>
-  <currentMemory unit='KiB'>1048576</currentMemory>
-  <vcpu placement='static'>1</vcpu>
-  <os>
-    <type arch='aarch64' machine='virt'>hvm</type>
-    <boot dev='hd'/>
-  </os>
-  <features>
-    <gic version='2'/>
-  </features>
-  <cpu mode='host-passthrough' check='none'/>
-  <clock offset='utc'/>
-  <on_poweroff>destroy</on_poweroff>
-  <on_reboot>restart</on_reboot>
-  <on_crash>destroy</on_crash>
-  <devices>
-    <emulator>/usr/bin/qemu-system-aarch64</emulator>
-    <controller type='usb' index='0' model='none'/>
-    <audio id='1' type='none'/>
-    <memballoon model='none'/>
-  </devices>
-</domain>
diff --git a/tests/qemuxml2xmloutdata/aarch64-gic-v3.aarch64-latest.xml b/tests/qemuxml2xmloutdata/aarch64-gic-v3.aarch64-latest.xml
new file mode 100644 (file)
index 0000000..5b2fb7d
--- /dev/null
@@ -0,0 +1,26 @@
+<domain type='kvm'>
+  <name>aarch64test</name>
+  <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
+  <memory unit='KiB'>1048576</memory>
+  <currentMemory unit='KiB'>1048576</currentMemory>
+  <vcpu placement='static'>1</vcpu>
+  <os>
+    <type arch='aarch64' machine='virt'>hvm</type>
+    <boot dev='hd'/>
+  </os>
+  <features>
+    <gic version='3'/>
+  </features>
+  <cpu mode='host-passthrough' check='none'/>
+  <clock offset='utc'/>
+  <on_poweroff>destroy</on_poweroff>
+  <on_reboot>restart</on_reboot>
+  <on_crash>destroy</on_crash>
+  <devices>
+    <emulator>/usr/bin/qemu-system-aarch64</emulator>
+    <controller type='usb' index='0' model='none'/>
+    <controller type='pci' index='0' model='pcie-root'/>
+    <audio id='1' type='none'/>
+    <memballoon model='none'/>
+  </devices>
+</domain>
diff --git a/tests/qemuxml2xmloutdata/aarch64-gic-v3.xml b/tests/qemuxml2xmloutdata/aarch64-gic-v3.xml
deleted file mode 100644 (file)
index 247d602..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<domain type='kvm'>
-  <name>aarch64test</name>
-  <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
-  <memory unit='KiB'>1048576</memory>
-  <currentMemory unit='KiB'>1048576</currentMemory>
-  <vcpu placement='static'>1</vcpu>
-  <os>
-    <type arch='aarch64' machine='virt'>hvm</type>
-    <boot dev='hd'/>
-  </os>
-  <features>
-    <gic version='3'/>
-  </features>
-  <cpu mode='host-passthrough' check='none'/>
-  <clock offset='utc'/>
-  <on_poweroff>destroy</on_poweroff>
-  <on_reboot>restart</on_reboot>
-  <on_crash>destroy</on_crash>
-  <devices>
-    <emulator>/usr/bin/qemu-system-aarch64</emulator>
-    <controller type='usb' index='0' model='none'/>
-    <audio id='1' type='none'/>
-    <memballoon model='none'/>
-  </devices>
-</domain>
index 23239fdbba48b02f83c745d3ea0507e316f2f7d9..61474ecb0dadb455b7eb8cdb999374f92ccdf451 100644 (file)
@@ -961,27 +961,69 @@ mymain(void)
             QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
             QEMU_CAPS_VNC);
 
-    DO_TEST_FULL("aarch64-gic-none", "", WHEN_BOTH, ARG_GIC, GIC_NONE, ARG_END);
-    DO_TEST_FULL("aarch64-gic-none-v2", "", WHEN_BOTH, ARG_GIC, GIC_V2, ARG_END);
-    DO_TEST_FULL("aarch64-gic-none-v3", "", WHEN_BOTH, ARG_GIC, GIC_V3, ARG_END);
-    DO_TEST_FULL("aarch64-gic-none-both", "", WHEN_BOTH, ARG_GIC, GIC_BOTH, ARG_END);
-    DO_TEST_FULL("aarch64-gic-none-tcg", "", WHEN_BOTH, ARG_GIC, GIC_BOTH, ARG_END);
-    DO_TEST_FULL("aarch64-gic-default", "", WHEN_BOTH, ARG_GIC, GIC_NONE, ARG_END);
-    DO_TEST_FULL("aarch64-gic-default-v2", "", WHEN_BOTH, ARG_GIC, GIC_V2, ARG_END);
-    DO_TEST_FULL("aarch64-gic-default-v3", "", WHEN_BOTH, ARG_GIC, GIC_V3, ARG_END);
-    DO_TEST_FULL("aarch64-gic-default-both", "", WHEN_BOTH, ARG_GIC, GIC_BOTH, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v2", "", WHEN_BOTH, ARG_GIC, GIC_NONE, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v2", "", WHEN_BOTH, ARG_GIC, GIC_V2, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v2", "", WHEN_BOTH, ARG_GIC, GIC_V3, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v2", "", WHEN_BOTH, ARG_GIC, GIC_BOTH, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v3", "", WHEN_BOTH, ARG_GIC, GIC_NONE, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v3", "", WHEN_BOTH, ARG_GIC, GIC_V2, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v3", "", WHEN_BOTH, ARG_GIC, GIC_V3, ARG_END);
-    DO_TEST_FULL("aarch64-gic-v3", "", WHEN_BOTH, ARG_GIC, GIC_BOTH, ARG_END);
-    DO_TEST_FULL("aarch64-gic-host", "", WHEN_BOTH, ARG_GIC, GIC_NONE, ARG_END);
-    DO_TEST_FULL("aarch64-gic-host", "", WHEN_BOTH, ARG_GIC, GIC_V2, ARG_END);
-    DO_TEST_FULL("aarch64-gic-host", "", WHEN_BOTH, ARG_GIC, GIC_V3, ARG_END);
-    DO_TEST_FULL("aarch64-gic-host", "", WHEN_BOTH, ARG_GIC, GIC_BOTH, ARG_END);
+    DO_TEST_FULL("aarch64-gic-none", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_NONE, ARG_END);
+    DO_TEST_FULL("aarch64-gic-none-v2", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V2, ARG_END);
+    DO_TEST_FULL("aarch64-gic-none-v3", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V3, ARG_END);
+    DO_TEST_FULL("aarch64-gic-none-both", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_BOTH, ARG_END);
+    DO_TEST_FULL("aarch64-gic-none-tcg", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_BOTH, ARG_END);
+    DO_TEST_FULL("aarch64-gic-default", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_NONE, ARG_END);
+    DO_TEST_FULL("aarch64-gic-default-v2", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V2, ARG_END);
+    DO_TEST_FULL("aarch64-gic-default-v3", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V3, ARG_END);
+    DO_TEST_FULL("aarch64-gic-default-both", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_BOTH, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v2", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_NONE, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v2", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V2, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v2", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V3, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v2", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_BOTH, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v3", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_NONE, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v3", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V2, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v3", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V3, ARG_END);
+    DO_TEST_FULL("aarch64-gic-v3", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_BOTH, ARG_END);
+    DO_TEST_FULL("aarch64-gic-host", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_NONE, ARG_END);
+    DO_TEST_FULL("aarch64-gic-host", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V2, ARG_END);
+    DO_TEST_FULL("aarch64-gic-host", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_V3, ARG_END);
+    DO_TEST_FULL("aarch64-gic-host", ".aarch64-latest", WHEN_BOTH,
+                 ARG_CAPS_ARCH, "aarch64", ARG_CAPS_VER, "latest",
+                 ARG_GIC, GIC_BOTH, ARG_END);
 
     /* SVE aarch64 CPU features work on modern QEMU */
     DO_TEST_CAPS_ARCH_LATEST("aarch64-features-sve", "aarch64");