Skip to contentSkip to conversation

tools/xen-detect: return xen version

PATCH New Yu Zhiguo 1 participant 1 message Feb 2, 2010

lore
Share & tools
lore

Yu Zhiguo

author
#0 lore raw

PATCH 1/1 tools/xen-detect: return xen version

check_for_xen() should return xen version rather than boolean true if signature XenVMM is found.

tools/misc/xen-detect.c +1 -1
@@ -69,7 +69,7 @@
 
  found:
     cpuid(base + 1, &eax, &ebx, &ecx, &edx, pv_context);
-    return 1;
+    return eax;
 }
 
 static jmp_buf sigill_jmp;