[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] tools/xen-detect: fix printing xen version



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265190817 0
# Node ID 35a62fbdb74d621d2b629fcfda5d871431650729
# Parent  bd7e0b7c7d1d257a2ca38edbf6659016347abe53
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>
xen-unstable changeset:   20884:526af7ddb9bd
xen-unstable date:        Wed Feb 03 09:42:45 2010 +0000
---
 tools/misc/xen-detect.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r bd7e0b7c7d1d -r 35a62fbdb74d tools/misc/xen-detect.c
--- a/tools/misc/xen-detect.c   Wed Feb 03 09:53:11 2010 +0000
+++ b/tools/misc/xen-detect.c   Wed Feb 03 09:53:37 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.