ia64/xen-unstable

changeset 16964:3787e70b2ab2

x86 shadow: Fix cross-page write emulation failure.
Signed-off-by: Disheng Su <disheng.su@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Feb 01 11:21:27 2008 +0000 (2008-02-01)
parents 396ab902b02d
children d29d74d4eeac
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Fri Feb 01 11:18:15 2008 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Fri Feb 01 11:21:27 2008 +0000
     1.3 @@ -4076,7 +4076,7 @@ static void *emulate_map_dest(struct vcp
     1.4          sh_ctxt->mfn2 = emulate_gva_to_mfn(v, (vaddr + bytes - 1) & PAGE_MASK,
     1.5                                             sh_ctxt);
     1.6          if ( !mfn_valid(sh_ctxt->mfn2) ) 
     1.7 -            return ((mfn_x(sh_ctxt->mfn1) == BAD_GVA_TO_GFN) ?
     1.8 +            return ((mfn_x(sh_ctxt->mfn2) == BAD_GVA_TO_GFN) ?
     1.9                      MAPPING_EXCEPTION : MAPPING_UNHANDLEABLE);
    1.10  
    1.11          /* Cross-page writes mean probably not a pagetable */