aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-02-03 09:42:45 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-02-03 09:42:45 +0000
commit1921835bf441b67b4d35b1e49ef32163359a7752 (patch)
treeef971e68707b9e23d9c811e44ff20207299e8efb /tools/misc
parent049ad7d34ef8b54b1fea42d50d235b1c0608de70 (diff)
downloadxen-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.c2
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;