# HG changeset patch # User Keir Fraser # Date 1265190165 0 # Node ID 526af7ddb9bd82d49f0fe6aafe10761864d002e2 # Parent a7546e45ca8352f9ea62416d53a44abeef365c85 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 diff -r a7546e45ca83 -r 526af7ddb9bd tools/misc/xen-detect.c --- a/tools/misc/xen-detect.c Wed Feb 03 09:38:57 2010 +0000 +++ b/tools/misc/xen-detect.c Wed Feb 03 09:42:45 2010 +0000 @@ -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;