ia64/xen-unstable

changeset 17882:666f5196f0fc

x86: Intel wants the TSS busy flag set when we do a vmentry.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 18 09:46:36 2008 +0100 (2008-06-18)
parents 97e02365a781
children 52592af0204a
files xen/arch/x86/hvm/vmx/vmx.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Wed Jun 18 09:40:39 2008 +0100
     1.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Wed Jun 18 09:46:36 2008 +0100
     1.3 @@ -838,7 +838,8 @@ static void vmx_set_segment_register(str
     1.4          __vmwrite(GUEST_TR_SELECTOR, reg->sel);
     1.5          __vmwrite(GUEST_TR_LIMIT, reg->limit);
     1.6          __vmwrite(GUEST_TR_BASE, reg->base);
     1.7 -        __vmwrite(GUEST_TR_AR_BYTES, attr);
     1.8 +        /* VMX checks that the the busy flag (bit 1) is set. */
     1.9 +        __vmwrite(GUEST_TR_AR_BYTES, attr | 2);
    1.10          break;
    1.11      case x86_seg_gdtr:
    1.12          __vmwrite(GUEST_GDTR_LIMIT, reg->limit);