mirror of https://gitee.com/openkylin/libvirt.git
Remove code handling the QEMU_CAPS_DOMID capability
This option is xenner-only (since commitb81a7ece
), and we dropped support for xenner in commitde9be0a
.
This commit is contained in:
parent
9aa316612a
commit
92572c3d71
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue