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

[Xen-changelog] Add 'hvm' capability to indicate whether hardware VTI feature is on.



# HG changeset patch
# User djm@xxxxxxxxxxxxxxx
# Node ID 1507c5499a92a7701db9cc3b0bf9ac5fb3fa8ee2
# Parent  f31cb5961db35871309c9fc92b2243eea3a33082
Add 'hvm' capability to indicate whether hardware VTI feature is on.
Control panel will query this cap to decide whether legible to create
VTI domain on an ia64 box.

Signed-off-by Kevin Tian <kevin.tian@xxxxxxxxx>

diff -r f31cb5961db3 -r 1507c5499a92 xen/arch/ia64/xen/xensetup.c
--- a/xen/arch/ia64/xen/xensetup.c      Thu Jan  5 16:16:29 2006
+++ b/xen/arch/ia64/xen/xensetup.c      Fri Jan  6 18:39:28 2006
@@ -21,6 +21,7 @@
 #include <asm/page.h>
 #include <asm/setup.h>
 #include <xen/string.h>
+#include <asm/vmx.h>
 
 unsigned long xenheap_phys_end;
 
@@ -446,9 +447,10 @@
 {
     char *p=info;
 
-    *p=0;
-
-    p+=sprintf(p,"xen_%d.%d_ia64 ",XEN_VERSION,XEN_SUBVERSION);
+    p += sprintf(p,"xen-%d.%d-ia64 ", XEN_VERSION, XEN_SUBVERSION);
+
+    if (vmx_enabled)
+        p += sprintf(p,"hvm-%d.%d-ia64 ", XEN_VERSION, XEN_SUBVERSION);
 
     *(p-1) = 0;
 

_______________________________________________
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®.