check_for_xen() should return xen version rather than
boolean true if signature XenVMM is found.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
diff --git a/tools/misc/xen-detect.c b/tools/misc/xen-detect.c
--- a/tools/misc/xen-detect.c
+++ b/tools/misc/xen-detect.c
@@ -69,7 +69,7 @@
found:
cpuid(base + 1, &eax, &ebx, &ecx, &edx, pv_context);
- return 1;
+ return eax;
}
static jmp_buf sigill_jmp;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel