From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Zhiguo Subject: [PATCH] tools/xen-detect: return xen version Date: Tue, 02 Feb 2010 09:57:01 +0800 Message-ID: <4B67866D.1020107@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org check_for_xen() should return xen version rather than boolean true if signature XenVMM is found. Signed-off-by: Yu Zhiguo 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;