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

[Xen-changelog] [PATCH] vmx-smsw.patch



ChangeSet 1.1578, 2005/05/28 09:54:12+01:00, arun.sharma@xxxxxxxxx

        [PATCH] vmx-smsw.patch
        
        Handle vmexits from the SMSW instruction correctly.
        
        Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>



 vmx.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


diff -Nru a/xen/arch/x86/vmx.c b/xen/arch/x86/vmx.c
--- a/xen/arch/x86/vmx.c        2005-05-28 05:04:01 -04:00
+++ b/xen/arch/x86/vmx.c        2005-05-28 05:04:01 -04:00
@@ -986,10 +986,9 @@
         __vmwrite(CR0_READ_SHADOW, value);
         break;
     case TYPE_LMSW:
-        __vmwrite(CR0_READ_SHADOW, value);
+        __vmread(CR0_READ_SHADOW, &value);
        value = (value & ~0xF) |
-               (((exit_qualification & LMSW_SOURCE_DATA) >> 16) & 0xF) |
-               1 /* CR0.PE == 1 */;
+               (((exit_qualification & LMSW_SOURCE_DATA) >> 16) & 0xF);
        return vmx_set_cr0(value);
         break;
     default:

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