]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Update capabilities for QEMU 2.6.0
authorJiri Denemark <jdenemar@redhat.com>
Fri, 18 Nov 2016 09:12:10 +0000 (10:12 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 25 Nov 2016 19:34:27 +0000 (20:34 +0100)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/domaincapsschemadata/qemu_2.6.0.x86_64.xml
tests/domaincapstest.c
tests/qemucapabilitiesdata/caps_2.6.0.x86_64.replies
tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml

index 33c6eda78e63b3df7b058b15e13af048d9dd33b2..a8975e8e53d927f72bee9c0731331f8c27b67255 100644 (file)
@@ -1,6 +1,6 @@
 <domainCapabilities>
   <path>/usr/bin/qemu-system-x86_64</path>
-  <domain>qemu</domain>
+  <domain>kvm</domain>
   <machine>pc-i440fx-2.6</machine>
   <arch>x86_64</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='yes'>
       <model fallback='allow'>Broadwell</model>
     </mode>
index 2ff489c904866378376db6118b5cfbe8231a2cf6..9a55d5557154a5e56a135537e455cef1a04eff0e 100644 (file)
@@ -417,7 +417,7 @@ mymain(void)
 
     DO_TEST_QEMU("2.6.0", "caps_2.6.0",
                  "/usr/bin/qemu-system-x86_64", NULL,
-                 "x86_64", VIR_DOMAIN_VIRT_QEMU);
+                 "x86_64", VIR_DOMAIN_VIRT_KVM);
 
     DO_TEST_QEMU("2.6.0", "caps_2.6.0-gicv2",
                  "/usr/bin/qemu-system-aarch64", NULL,
index 89a87073df00e82850476155cb220d82dc231707..0c285cd951e6445f50fe6bbc687146014e6ef4b5 100644 (file)
 
 {
   "return": {
-    "fd": 14,
+    "fd": 15,
     "fdset-id": 0
   },
   "id": "libvirt-5"
 
 {
   "return": {
-    "enabled": false,
+    "enabled": true,
     "present": true
   },
   "id": "libvirt-7"
   ],
   "id": "libvirt-47"
 }
+
+{
+  "return": {
+  },
+  "id": "libvirt-1"
+}
+
+{
+  "return": [
+    {
+      "name": "Opteron_G5"
+    },
+    {
+      "name": "Opteron_G4"
+    },
+    {
+      "name": "Opteron_G3"
+    },
+    {
+      "name": "Opteron_G2"
+    },
+    {
+      "name": "Opteron_G1"
+    },
+    {
+      "name": "Broadwell"
+    },
+    {
+      "name": "Broadwell-noTSX"
+    },
+    {
+      "name": "Haswell"
+    },
+    {
+      "name": "Haswell-noTSX"
+    },
+    {
+      "name": "IvyBridge"
+    },
+    {
+      "name": "SandyBridge"
+    },
+    {
+      "name": "Westmere"
+    },
+    {
+      "name": "Nehalem"
+    },
+    {
+      "name": "Penryn"
+    },
+    {
+      "name": "Conroe"
+    },
+    {
+      "name": "n270"
+    },
+    {
+      "name": "athlon"
+    },
+    {
+      "name": "pentium3"
+    },
+    {
+      "name": "pentium2"
+    },
+    {
+      "name": "pentium"
+    },
+    {
+      "name": "486"
+    },
+    {
+      "name": "coreduo"
+    },
+    {
+      "name": "kvm32"
+    },
+    {
+      "name": "qemu32"
+    },
+    {
+      "name": "kvm64"
+    },
+    {
+      "name": "core2duo"
+    },
+    {
+      "name": "phenom"
+    },
+    {
+      "name": "qemu64"
+    }
+  ],
+  "id": "libvirt-2"
+}
index ae69ef68f4b18ac08eaf8b5490164d9aade6a6f2..71ffa0083c379001aabc65b7a10a0ad40b97ea0f 100644 (file)
@@ -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'/>
   <kvmVersion>0</kvmVersion>
   <package></package>
   <arch>x86_64</arch>
+  <cpu type='kvm' name='Opteron_G5'/>
+  <cpu type='kvm' name='Opteron_G4'/>
+  <cpu type='kvm' name='Opteron_G3'/>
+  <cpu type='kvm' name='Opteron_G2'/>
+  <cpu type='kvm' name='Opteron_G1'/>
+  <cpu type='kvm' name='Broadwell'/>
+  <cpu type='kvm' name='Broadwell-noTSX'/>
+  <cpu type='kvm' name='Haswell'/>
+  <cpu type='kvm' name='Haswell-noTSX'/>
+  <cpu type='kvm' name='IvyBridge'/>
+  <cpu type='kvm' name='SandyBridge'/>
+  <cpu type='kvm' name='Westmere'/>
+  <cpu type='kvm' name='Nehalem'/>
+  <cpu type='kvm' name='Penryn'/>
+  <cpu type='kvm' name='Conroe'/>
+  <cpu type='kvm' name='n270'/>
+  <cpu type='kvm' name='athlon'/>
+  <cpu type='kvm' name='pentium3'/>
+  <cpu type='kvm' name='pentium2'/>
+  <cpu type='kvm' name='pentium'/>
+  <cpu type='kvm' name='486'/>
+  <cpu type='kvm' name='coreduo'/>
+  <cpu type='kvm' name='kvm32'/>
+  <cpu type='kvm' name='qemu32'/>
+  <cpu type='kvm' name='kvm64'/>
+  <cpu type='kvm' name='core2duo'/>
+  <cpu type='kvm' name='phenom'/>
+  <cpu type='kvm' name='qemu64'/>
   <cpu type='tcg' name='Opteron_G5'/>
   <cpu type='tcg' name='Opteron_G4'/>
   <cpu type='tcg' name='Opteron_G3'/>