ia64/xen-unstable

changeset 3389:6223f62df1d8

bitkeeper revision 1.1159.212.9 (41dde2eagwOCuLzt_7mdSFXqA992dg)

VMX bug fixes - disable errant safety check.
author iap10@labyrinth.cl.cam.ac.uk
date Fri Jan 07 01:16:26 2005 +0000 (2005-01-07)
parents ef529c8bd197
children 2afa7aa0076f
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Thu Jan 06 23:46:53 2005 +0000
     1.2 +++ b/xen/arch/x86/domain.c	Fri Jan 07 01:16:26 2005 +0000
     1.3 @@ -363,9 +363,10 @@ int arch_final_setup_guestos(struct exec
     1.4       * #GP. If DS, ES, FS, GS are DPL 0 then they'll be cleared automatically.
     1.5       * If SS RPL or DPL differs from CS RPL then we'll #GP.
     1.6       */
     1.7 -    if ( ((d->thread.user_ctxt.cs & 3) == 0) ||
     1.8 -         ((d->thread.user_ctxt.ss & 3) == 0) )
     1.9 -        return -EINVAL;
    1.10 +    if (!(c->flags & ECF_VMX_GUEST)) 
    1.11 +        if ( ((d->thread.user_ctxt.cs & 3) == 0) ||
    1.12 +             ((d->thread.user_ctxt.ss & 3) == 0) )
    1.13 +                return -EINVAL;
    1.14  
    1.15      memcpy(&d->thread.i387,
    1.16             &c->fpu_ctxt,
    1.17 @@ -412,10 +413,8 @@ int arch_final_setup_guestos(struct exec
    1.18          }
    1.19      }
    1.20  
    1.21 -#ifdef CONFIG_VMX
    1.22      if (c->flags & ECF_VMX_GUEST)
    1.23          return vmx_final_setup_guestos(d, c);
    1.24 -#endif
    1.25  
    1.26      return 0;
    1.27  }