mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-30 17:45:23 +00:00
Fix detection of Xen sysctl version 9
In commit371ddc98
, I mistakenly added the check for sysctl version 9 after setting the hypercall version to 1, which will fail with error : xenHypervisorDoV1Op:967 : Unable to issue hypervisor ioctl 3166208: Function not implemented This check should be included along with the others that use hypercall version 2. (cherry picked from commit9785f2b6f2
)
This commit is contained in:
parent
ff5a1ea09a
commit
9f85b713fa
@ -2157,13 +2157,6 @@ xenHypervisorInit(struct xenHypervisorVersions *override_versions)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hv_versions.hypervisor = 1;
|
|
||||||
hv_versions.sys_interface = -1;
|
|
||||||
if (virXen_getdomaininfo(fd, 0, &info) == 1) {
|
|
||||||
VIR_DEBUG("Using hypervisor call v1");
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Xen 4.2
|
/* Xen 4.2
|
||||||
* sysctl version 9 -> xen-unstable c/s 24102:dc8e55c90604
|
* sysctl version 9 -> xen-unstable c/s 24102:dc8e55c90604
|
||||||
* domctl version 8 -> unchanged from Xen 4.1
|
* domctl version 8 -> unchanged from Xen 4.1
|
||||||
@ -2177,6 +2170,13 @@ xenHypervisorInit(struct xenHypervisorVersions *override_versions)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hv_versions.hypervisor = 1;
|
||||||
|
hv_versions.sys_interface = -1;
|
||||||
|
if (virXen_getdomaininfo(fd, 0, &info) == 1) {
|
||||||
|
VIR_DEBUG("Using hypervisor call v1");
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* we failed to make the getdomaininfolist hypercall
|
* we failed to make the getdomaininfolist hypercall
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user