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-devel

[Xen-devel] [PATCH] Missing start_vmx call

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Missing start_vmx call
From: Leendert van Doorn <leendert@xxxxxxxxxxxxxx>
Date: Thu, 26 May 2005 21:40:15 -0400
Delivery-date: Fri, 27 May 2005 02:11:42 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM T.J. Watson Research Center
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Start_vmx was removed by accident. This patch puts it back. start_vmx
is used to initialize the VMX subsystem, without it VMX operations result
in bad opcode traps and crash Xen.

Signed-Off-By: Leendert van Doorn <leendert@xxxxxxxxxxxxxx>

--- xeno-unstable.orig/xen/arch/x86/cpu/intel.c 2005-05-26 13:34:33.000000000 
-0400
+++ xeno-unstable.mine/xen/arch/x86/cpu/intel.c 2005-05-26 22:03:30.000000000 
-0400
@@ -10,6 +10,7 @@
 #include <asm/mpspec.h>
 #include <asm/apic.h>
 #include <mach_apic.h>
+#include <asm/vmx_vmcs.h>
 
 #include "cpu.h"
 
@@ -162,6 +163,10 @@
                set_bit(X86_FEATURE_P4, c->x86_capability);
        if (c->x86 == 6) 
                set_bit(X86_FEATURE_P3, c->x86_capability);
+
+#ifdef CONFIG_VMX
+       start_vmx();
+#endif
 }
 
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Missing start_vmx call, Leendert van Doorn <=