[PATCH v2 24/31] tests: Update capabilities for QEMU 2.6.0 (aarch64, GICv2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 .../qemu_2.6.0-gicv2-virt.aarch64.xml              |   5 +-
 tests/domaincapsschemadata/qemu_2.6.0.aarch64.xml  |   5 +-
 tests/domaincapstest.c                             |   4 +-
 .../caps_2.6.0-gicv2.aarch64.replies               | 112 ++++++++++++++++++++-
 .../caps_2.6.0-gicv2.aarch64.xml                   |  33 +++++-
 5 files changed, 150 insertions(+), 9 deletions(-)

diff --git a/tests/domaincapsschemadata/qemu_2.6.0-gicv2-virt.aarch64.xml b/tests/domaincapsschemadata/qemu_2.6.0-gicv2-virt.aarch64.xml
index a2702f4..0b5a437 100644
--- a/tests/domaincapsschemadata/qemu_2.6.0-gicv2-virt.aarch64.xml
+++ b/tests/domaincapsschemadata/qemu_2.6.0-gicv2-virt.aarch64.xml
@@ -1,6 +1,6 @@
 <domainCapabilities>
   <path>/usr/bin/qemu-system-aarch64</path>
-  <domain>qemu</domain>
+  <domain>kvm</domain>
   <machine>virt-2.6</machine>
   <arch>aarch64</arch>
   <vcpu max='255'/>
@@ -19,7 +19,7 @@
     </loader>
   </os>
   <cpu>
-    <mode name='host-passthrough' supported='no'/>
+    <mode name='host-passthrough' supported='yes'/>
     <mode name='host-model' supported='no'/>
     <mode name='custom' supported='yes'>
       <model usable='unknown'>pxa262</model>
@@ -38,6 +38,7 @@
       <model usable='unknown'>sa1110</model>
       <model usable='unknown'>arm1176</model>
       <model usable='unknown'>cortex-a53</model>
+      <model usable='unknown'>host</model>
       <model usable='unknown'>sa1100</model>
       <model usable='unknown'>pxa270-c5</model>
       <model usable='unknown'>cortex-a9</model>
diff --git a/tests/domaincapsschemadata/qemu_2.6.0.aarch64.xml b/tests/domaincapsschemadata/qemu_2.6.0.aarch64.xml
index d2a2e7b..201f9e0 100644
--- a/tests/domaincapsschemadata/qemu_2.6.0.aarch64.xml
+++ b/tests/domaincapsschemadata/qemu_2.6.0.aarch64.xml
@@ -1,6 +1,6 @@
 <domainCapabilities>
   <path>/usr/bin/qemu-system-aarch64</path>
-  <domain>qemu</domain>
+  <domain>kvm</domain>
   <machine>integratorcp</machine>
   <arch>aarch64</arch>
   <vcpu max='1'/>
@@ -19,7 +19,7 @@
     </loader>
   </os>
   <cpu>
-    <mode name='host-passthrough' supported='no'/>
+    <mode name='host-passthrough' supported='yes'/>
     <mode name='host-model' supported='no'/>
     <mode name='custom' supported='yes'>
       <model usable='unknown'>pxa262</model>
@@ -38,6 +38,7 @@
       <model usable='unknown'>sa1110</model>
       <model usable='unknown'>arm1176</model>
       <model usable='unknown'>cortex-a53</model>
+      <model usable='unknown'>host</model>
       <model usable='unknown'>sa1100</model>
       <model usable='unknown'>pxa270-c5</model>
       <model usable='unknown'>cortex-a9</model>
diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
index 9a55d55..34bbb29 100644
--- a/tests/domaincapstest.c
+++ b/tests/domaincapstest.c
@@ -421,11 +421,11 @@ mymain(void)
 
     DO_TEST_QEMU("2.6.0", "caps_2.6.0-gicv2",
                  "/usr/bin/qemu-system-aarch64", NULL,
-                 "aarch64", VIR_DOMAIN_VIRT_QEMU);
+                 "aarch64", VIR_DOMAIN_VIRT_KVM);
 
     DO_TEST_QEMU("2.6.0-gicv2", "caps_2.6.0-gicv2",
                  "/usr/bin/qemu-system-aarch64", "virt",
-                 "aarch64", VIR_DOMAIN_VIRT_QEMU);
+                 "aarch64", VIR_DOMAIN_VIRT_KVM);
 
     DO_TEST_QEMU("2.6.0-gicv3", "caps_2.6.0-gicv3",
                  "/usr/bin/qemu-system-aarch64", "virt",
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.replies b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.replies
index 66977ba..219616a 100644
--- a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.replies
+++ b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.replies
@@ -454,7 +454,7 @@
 
 {
   "return": {
-    "fd": 15,
+    "fd": 17,
     "fdset-id": 0
   },
   "id": "libvirt-5"
@@ -470,7 +470,7 @@
 
 {
   "return": {
-    "enabled": false,
+    "enabled": true,
     "present": true
   },
   "id": "libvirt-7"
@@ -1526,6 +1526,9 @@
       "name": "digic-uart"
     },
     {
+      "name": "host-arm-cpu"
+    },
+    {
       "name": "i82557c"
     },
     {
@@ -3882,6 +3885,9 @@
       "name": "cortex-a53"
     },
     {
+      "name": "host"
+    },
+    {
       "name": "sa1100"
     },
     {
@@ -12965,3 +12971,105 @@
   ],
   "id": "libvirt-48"
 }
+
+{
+  "return": {
+  },
+  "id": "libvirt-1"
+}
+
+{
+  "return": [
+    {
+      "name": "pxa262"
+    },
+    {
+      "name": "pxa270-a0"
+    },
+    {
+      "name": "arm1136"
+    },
+    {
+      "name": "cortex-a15"
+    },
+    {
+      "name": "pxa260"
+    },
+    {
+      "name": "arm1136-r2"
+    },
+    {
+      "name": "pxa261"
+    },
+    {
+      "name": "pxa255"
+    },
+    {
+      "name": "arm926"
+    },
+    {
+      "name": "arm11mpcore"
+    },
+    {
+      "name": "pxa250"
+    },
+    {
+      "name": "ti925t"
+    },
+    {
+      "name": "cortex-a57"
+    },
+    {
+      "name": "sa1110"
+    },
+    {
+      "name": "arm1176"
+    },
+    {
+      "name": "cortex-a53"
+    },
+    {
+      "name": "sa1100"
+    },
+    {
+      "name": "pxa270-c5"
+    },
+    {
+      "name": "cortex-a9"
+    },
+    {
+      "name": "cortex-a8"
+    },
+    {
+      "name": "pxa270-c0"
+    },
+    {
+      "name": "arm1026"
+    },
+    {
+      "name": "pxa270-b1"
+    },
+    {
+      "name": "cortex-m3"
+    },
+    {
+      "name": "cortex-m4"
+    },
+    {
+      "name": "pxa270-b0"
+    },
+    {
+      "name": "arm946"
+    },
+    {
+      "name": "cortex-r5"
+    },
+    {
+      "name": "pxa270-a1"
+    },
+    {
+      "name": "pxa270"
+    }
+  ],
+  "id": "libvirt-2"
+}
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
index debee6d..e858dc6 100644
--- a/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
+++ b/tests/qemucapabilitiesdata/caps_2.6.0-gicv2.aarch64.xml
@@ -3,10 +3,10 @@
   <selfctime>0</selfctime>
   <selfvers>0</selfvers>
   <usedQMP/>
+  <flag name='kvm'/>
   <flag name='mem-path'/>
   <flag name='drive-serial'/>
   <flag name='chardev'/>
-  <flag name='enable-kvm'/>
   <flag name='monitor-json'/>
   <flag name='sdl'/>
   <flag name='netdev'/>
@@ -166,6 +166,37 @@
   <kvmVersion>0</kvmVersion>
   <package></package>
   <arch>aarch64</arch>
+  <cpu type='kvm' name='pxa262'/>
+  <cpu type='kvm' name='pxa270-a0'/>
+  <cpu type='kvm' name='arm1136'/>
+  <cpu type='kvm' name='cortex-a15'/>
+  <cpu type='kvm' name='pxa260'/>
+  <cpu type='kvm' name='arm1136-r2'/>
+  <cpu type='kvm' name='pxa261'/>
+  <cpu type='kvm' name='pxa255'/>
+  <cpu type='kvm' name='arm926'/>
+  <cpu type='kvm' name='arm11mpcore'/>
+  <cpu type='kvm' name='pxa250'/>
+  <cpu type='kvm' name='ti925t'/>
+  <cpu type='kvm' name='cortex-a57'/>
+  <cpu type='kvm' name='sa1110'/>
+  <cpu type='kvm' name='arm1176'/>
+  <cpu type='kvm' name='cortex-a53'/>
+  <cpu type='kvm' name='host'/>
+  <cpu type='kvm' name='sa1100'/>
+  <cpu type='kvm' name='pxa270-c5'/>
+  <cpu type='kvm' name='cortex-a9'/>
+  <cpu type='kvm' name='cortex-a8'/>
+  <cpu type='kvm' name='pxa270-c0'/>
+  <cpu type='kvm' name='arm1026'/>
+  <cpu type='kvm' name='pxa270-b1'/>
+  <cpu type='kvm' name='cortex-m3'/>
+  <cpu type='kvm' name='cortex-m4'/>
+  <cpu type='kvm' name='pxa270-b0'/>
+  <cpu type='kvm' name='arm946'/>
+  <cpu type='kvm' name='cortex-r5'/>
+  <cpu type='kvm' name='pxa270-a1'/>
+  <cpu type='kvm' name='pxa270'/>
   <cpu type='tcg' name='pxa262'/>
   <cpu type='tcg' name='pxa270-a0'/>
   <cpu type='tcg' name='arm1136'/>
-- 
2.10.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux