debuggers.hg

changeset 20930:526af7ddb9bd

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 <yuzg@cn.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 03 09:42:45 2010 +0000 (2010-02-03)
parents a7546e45ca83
children 39424ff0c91c
files tools/misc/xen-detect.c
line diff
     1.1 --- a/tools/misc/xen-detect.c	Wed Feb 03 09:38:57 2010 +0000
     1.2 +++ b/tools/misc/xen-detect.c	Wed Feb 03 09:42:45 2010 +0000
     1.3 @@ -69,7 +69,7 @@ static int check_for_xen(int pv_context)
     1.4  
     1.5   found:
     1.6      cpuid(base + 1, &eax, &ebx, &ecx, &edx, pv_context);
     1.7 -    return 1;
     1.8 +    return eax;
     1.9  }
    1.10  
    1.11  static jmp_buf sigill_jmp;