* [PATCH] tools/xen-detect: return xen version
@ 2010-02-02 1:57 Yu Zhiguo
0 siblings, 0 replies; only message in thread
From: Yu Zhiguo @ 2010-02-02 1:57 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
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>
diff --git a/tools/misc/xen-detect.c b/tools/misc/xen-detect.c
--- a/tools/misc/xen-detect.c
+++ b/tools/misc/xen-detect.c
@@ -69,7 +69,7 @@
found:
cpuid(base + 1, &eax, &ebx, &ecx, &edx, pv_context);
- return 1;
+ return eax;
}
static jmp_buf sigill_jmp;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-02-02 1:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02 1:57 [PATCH] tools/xen-detect: return xen version Yu Zhiguo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.