提交 4028abe6 编写于 作者: D Daniel Veillard

Removed debug, oops, Daniel

上级 86247f2c
...@@ -862,7 +862,9 @@ int xenHypervisorInit(void) ...@@ -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) ...@@ -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: ...@@ -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: ...@@ -929,7 +937,6 @@ done:
close(fd); close(fd);
in_init = 0; in_init = 0;
return(0); return(0);
} }
#ifndef PROXY #ifndef PROXY
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册