diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-02-03 09:42:45 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-02-03 09:42:45 +0000 |
commit | 1921835bf441b67b4d35b1e49ef32163359a7752 (patch) | |
tree | ef971e68707b9e23d9c811e44ff20207299e8efb /tools/misc | |
parent | 049ad7d34ef8b54b1fea42d50d235b1c0608de70 (diff) | |
download | xen-1921835bf441b67b4d35b1e49ef32163359a7752.tar.gz xen-1921835bf441b67b4d35b1e49ef32163359a7752.tar.bz2 xen-1921835bf441b67b4d35b1e49ef32163359a7752.zip |
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>
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/xen-detect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |