From 1921835bf441b67b4d35b1e49ef32163359a7752 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 3 Feb 2010 09:42:45 +0000 Subject: tools/xen-detect: fix printing xen version check_for_xen() should return xen version rather than boolean true if signature XenVMM is found. Signed-off-by: Yu Zhiguo --- tools/misc/xen-detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/misc/xen-detect.c') diff --git a/tools/misc/xen-detect.c b/tools/misc/xen-detect.c index 1a1607fa85..3e8f2d9f07 100644 --- a/tools/misc/xen-detect.c +++ b/tools/misc/xen-detect.c @@ -69,7 +69,7 @@ static int check_for_xen(int pv_context) found: cpuid(base + 1, &eax, &ebx, &ecx, &edx, pv_context); - return 1; + return eax; } static jmp_buf sigill_jmp; -- cgit v1.2.3