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

[Xen-changelog] [xen-3.2-testing] x86: Intel wants the TSS busy flag set when we do a vmentry.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1214582422 -3600
# Node ID 6e20e634ccd654ccb8e2802d25f3c66f0d98bd01
# Parent  faa7826701560a1d394d54573612441114368e30
x86: Intel wants the TSS busy flag set when we do a vmentry.

Signed-off-by: Jean Guyader <jean.guyader@xxxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   17876:666f5196f0fcb01fb5550aba492f6ebf7fcc01fc
xen-unstable date:        Wed Jun 18 09:46:36 2008 +0100
---
 xen/arch/x86/hvm/vmx/vmx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r faa782670156 -r 6e20e634ccd6 xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c        Fri Jun 27 16:59:50 2008 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c        Fri Jun 27 17:00:22 2008 +0100
@@ -952,7 +952,8 @@ static void vmx_set_segment_register(str
         __vmwrite(GUEST_TR_SELECTOR, reg->sel);
         __vmwrite(GUEST_TR_LIMIT, reg->limit);
         __vmwrite(GUEST_TR_BASE, reg->base);
-        __vmwrite(GUEST_TR_AR_BYTES, attr);
+        /* VMX checks that the the busy flag (bit 1) is set. */
+        __vmwrite(GUEST_TR_AR_BYTES, attr | 2);
         break;
     case x86_seg_gdtr:
         __vmwrite(GUEST_GDTR_LIMIT, reg->limit);

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