]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Check GIC-related XMLs in qemuxml2xmltest
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 30 Sep 2015 14:36:24 +0000 (16:36 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 6 Oct 2015 13:10:36 +0000 (15:10 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tests/qemuxml2argvdata/qemuxml2argv-aarch64-gic.xml
tests/qemuxml2argvdata/qemuxml2argv-aarch64-gicv3.xml
tests/qemuxml2xmltest.c

index 08d3d714b8c2df4d6fe9615138c45d5034759c13..cb595e4a7a6b1183a49a471728791942f6d9f43e 100644 (file)
@@ -1,26 +1,32 @@
-<domain type="qemu">
+<domain type='qemu'>
   <name>aarch64test</name>
   <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
-  <memory>1048576</memory>
-  <currentMemory>1048576</currentMemory>
-  <vcpu>1</vcpu>
-  <features>
-    <acpi/>
-    <gic version='2'/>
-  </features>
-  <cpu match='exact'>
-    <model>cortex-a53</model>
-  </cpu>
+  <memory unit='KiB'>1048576</memory>
+  <currentMemory unit='KiB'>1048576</currentMemory>
+  <vcpu placement='static'>1</vcpu>
   <os>
-    <type arch="aarch64" machine="virt">hvm</type>
+    <type arch='aarch64' machine='virt'>hvm</type>
     <kernel>/aarch64.kernel</kernel>
     <initrd>/aarch64.initrd</initrd>
     <cmdline>console=ttyAMA0</cmdline>
+    <boot dev='hd'/>
   </os>
+  <features>
+    <acpi/>
+    <gic version='2'/>
+  </features>
+  <cpu mode='custom' match='exact'>
+    <model fallback='allow'>cortex-a53</model>
+  </cpu>
+  <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>
     <interface type='user'>
       <mac address='52:54:00:09:a4:37'/>
+      <model type='virtio'/>
     </interface>
   </devices>
 </domain>
index f8d63c3377555e1356d39637723b452e7d3381f2..72aaaf7fe5cdabd9b02d3f3bc7da41dc71f6d913 100644 (file)
@@ -1,26 +1,32 @@
-<domain type="qemu">
+<domain type='qemu'>
   <name>aarch64test</name>
   <uuid>6ba410c5-1e5c-4d57-bee7-2228e7ffa32f</uuid>
-  <memory>1048576</memory>
-  <currentMemory>1048576</currentMemory>
-  <vcpu>1</vcpu>
-  <features>
-    <acpi/>
-    <gic version='3'/>
-  </features>
-  <cpu match='exact'>
-    <model>cortex-a53</model>
-  </cpu>
+  <memory unit='KiB'>1048576</memory>
+  <currentMemory unit='KiB'>1048576</currentMemory>
+  <vcpu placement='static'>1</vcpu>
   <os>
-    <type arch="aarch64" machine="virt">hvm</type>
+    <type arch='aarch64' machine='virt'>hvm</type>
     <kernel>/aarch64.kernel</kernel>
     <initrd>/aarch64.initrd</initrd>
     <cmdline>console=ttyAMA0</cmdline>
+    <boot dev='hd'/>
   </os>
+  <features>
+    <acpi/>
+    <gic version='3'/>
+  </features>
+  <cpu mode='custom' match='exact'>
+    <model fallback='allow'>cortex-a53</model>
+  </cpu>
+  <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>
     <interface type='user'>
       <mac address='52:54:00:09:a4:37'/>
+      <model type='virtio'/>
     </interface>
   </devices>
 </domain>
index eae153c5e7633f3c061b89b29136366bcd82dfef..5a9c67df7e022c5e3a48d5c4fb342cb2ee9feac9 100644 (file)
@@ -625,6 +625,9 @@ mymain(void)
     DO_TEST("smbios-multiple-type2");
     DO_TEST("aarch64-aavmf-virtio-mmio");
 
+    DO_TEST("aarch64-gic");
+    DO_TEST("aarch64-gicv3");
+
     DO_TEST("memory-hotplug");
     DO_TEST("memory-hotplug-nonuma");
     DO_TEST("memory-hotplug-dimm");