]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Remove code handling the QEMU_CAPS_DOMID capability
authorJán Tomko <jtomko@redhat.com>
Wed, 18 Feb 2015 15:33:50 +0000 (16:33 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 2 Mar 2015 06:39:09 +0000 (07:39 +0100)
This option is xenner-only (since commit b81a7ece),
and we dropped support for xenner in commit de9be0a.

src/qemu/qemu_command.c
tests/qemuxml2argvtest.c
tests/qemuxmlnstest.c

index 32f17aa9fa3ed99675ffa3e2a7e187784d8062c4..490120580649ca5346b29202e783c6090d896ce3 100644 (file)
@@ -8449,10 +8449,7 @@ qemuBuildCommandLine(virConnectPtr conn,
     if (def->virtType == VIR_DOMAIN_VIRT_XEN ||
         STREQ(def->os.type, "xen") ||
         STREQ(def->os.type, "linux")) {
-        if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DOMID)) {
-            virCommandAddArg(cmd, "-domid");
-            virCommandAddArgFormat(cmd, "%d", def->id);
-        } else if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_XEN_DOMID)) {
+        if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_XEN_DOMID)) {
             virCommandAddArg(cmd, "-xen-attach");
             virCommandAddArg(cmd, "-xen-domid");
             virCommandAddArgFormat(cmd, "%d", def->id);
index 50283862c78b5ff34d845e7756b6fb8a94c04b46..582671ed475c25d7bbee2b8e4377acda8c8cb5b9 100644 (file)
@@ -287,10 +287,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
         goto out;
     }
 
-    if (virQEMUCapsGet(extraFlags, QEMU_CAPS_DOMID))
-        vmdef->id = 6;
-    else
-        vmdef->id = -1;
+    vmdef->id = -1;
 
     memset(&monitor_chr, 0, sizeof(monitor_chr));
     monitor_chr.type = VIR_DOMAIN_CHR_TYPE_UNIX;
index 4220737e84907114a4988685752e3ad34b3732f8..09b3d3199657919b6e7ac2412a0e3d6ee38c8c15 100644 (file)
@@ -84,10 +84,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
             goto fail;
     }
 
-    if (virQEMUCapsGet(extraFlags, QEMU_CAPS_DOMID))
-        vmdef->id = 6;
-    else
-        vmdef->id = -1;
+    vmdef->id = -1;
 
     memset(&monitor_chr, 0, sizeof(monitor_chr));
     monitor_chr.type = VIR_DOMAIN_CHR_TYPE_UNIX;