[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools/xen-detect: fix printing xen version
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # 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 <yuzg@xxxxxxxxxxxxxx> --- tools/misc/xen-detect.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) 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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |