ia64/xen-unstable

changeset 14188:b703aa29424f

[XEN] Fix cset 14166
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Thu Mar 01 09:52:40 2007 +0000 (2007-03-01)
parents 3379f667c3a6
children d5c4d43da89e 1966270d89d7
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Wed Feb 28 12:35:36 2007 -0800
     1.2 +++ b/xen/arch/x86/domain.c	Thu Mar 01 09:52:40 2007 +0000
     1.3 @@ -501,11 +501,9 @@ int arch_set_info_guest(
     1.4      unsigned long flags;
     1.5      int i, rc = 0, compat;
     1.6  
     1.7 -    /* The context is a compat-mode one if *either* the calling domain 
     1.8 -     * or the target domain is compat-mode: if the caller is compat, it
     1.9 -     * won't know to make a native context, and if the target is compat,
    1.10 -     * the tools will have made a compat-mode context for it. */
    1.11 -    compat = IS_COMPAT(d) || IS_COMPAT(current->domain);
    1.12 +    /* The context is a compat-mode one if the target domain is compat-mode;
    1.13 +     * we expect the tools to DTRT even in compat-mode callers. */
    1.14 +    compat = IS_COMPAT(d);
    1.15  
    1.16  #ifdef CONFIG_COMPAT
    1.17  #define c(fld) (compat ? (c.cmp->fld) : (c.nat->fld))