mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Removed debug, oops, Daniel
This commit is contained in:
parent
86247f2c23
commit
4028abe6b3
@ -862,7 +862,9 @@ int xenHypervisorInit(void)
|
|||||||
ret = ioctl(fd, cmd, (unsigned long) &hc);
|
ret = ioctl(fd, cmd, (unsigned long) &hc);
|
||||||
|
|
||||||
if ((ret != -1) && (ret != 0)) {
|
if ((ret != -1) && (ret != 0)) {
|
||||||
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "Using new hypervisor call: %X\n", ret);
|
fprintf(stderr, "Using new hypervisor call: %X\n", ret);
|
||||||
|
#endif
|
||||||
hv_version = ret;
|
hv_version = ret;
|
||||||
xen_ioctl_hypercall_cmd = cmd;
|
xen_ioctl_hypercall_cmd = cmd;
|
||||||
goto detect_v2;
|
goto detect_v2;
|
||||||
@ -877,7 +879,9 @@ int xenHypervisorInit(void)
|
|||||||
cmd = _IOC(_IOC_NONE, 'P', 0, sizeof(v0_hypercall_t));
|
cmd = _IOC(_IOC_NONE, 'P', 0, sizeof(v0_hypercall_t));
|
||||||
ret = ioctl(fd, cmd, (unsigned long) &v0_hc);
|
ret = ioctl(fd, cmd, (unsigned long) &v0_hc);
|
||||||
if ((ret != -1) && (ret != 0)) {
|
if ((ret != -1) && (ret != 0)) {
|
||||||
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "Using old hypervisor call: %X\n", ret);
|
fprintf(stderr, "Using old hypervisor call: %X\n", ret);
|
||||||
|
#endif
|
||||||
hv_version = ret;
|
hv_version = ret;
|
||||||
xen_ioctl_hypercall_cmd = cmd;
|
xen_ioctl_hypercall_cmd = cmd;
|
||||||
hypervisor_version = 0;
|
hypervisor_version = 0;
|
||||||
@ -905,13 +909,17 @@ detect_v2:
|
|||||||
sys_interface_version = 2; /* XEN_SYSCTL_INTERFACE_VERSION */
|
sys_interface_version = 2; /* XEN_SYSCTL_INTERFACE_VERSION */
|
||||||
dom_interface_version = 3; /* XEN_DOMCTL_INTERFACE_VERSION */
|
dom_interface_version = 3; /* XEN_DOMCTL_INTERFACE_VERSION */
|
||||||
if (virXen_getdomaininfolist(fd, 0, 1, &info) == 1) {
|
if (virXen_getdomaininfolist(fd, 0, 1, &info) == 1) {
|
||||||
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "Using hypervisor call v2, sys version 2\n");
|
fprintf(stderr, "Using hypervisor call v2, sys version 2\n");
|
||||||
|
#endif
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
hypervisor_version = 1;
|
hypervisor_version = 1;
|
||||||
sys_interface_version = -1;
|
sys_interface_version = -1;
|
||||||
if (virXen_getdomaininfolist(fd, 0, 1, &info) == 1) {
|
if (virXen_getdomaininfolist(fd, 0, 1, &info) == 1) {
|
||||||
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "Using hypervisor call v1\n");
|
fprintf(stderr, "Using hypervisor call v1\n");
|
||||||
|
#endif
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -929,7 +937,6 @@ done:
|
|||||||
close(fd);
|
close(fd);
|
||||||
in_init = 0;
|
in_init = 0;
|
||||||
return(0);
|
return(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef PROXY
|
#ifndef PROXY
|
||||||
|
Loading…
Reference in New Issue
Block a user