WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] tools/xen-detect: fix printing xen version
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Feb 2010 01:55:45 -0800
Delivery-date: Wed, 03 Feb 2010 01:58:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] tools/xen-detect: fix printing xen version, Xen patchbot-3.4-testing <=