ia64/xen-unstable

changeset 12435:d6f54576ac22

[XEN] Don't use shadow linear maps in sh_set_toplevel_shadow()
because they will not be there.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Nov 14 11:47:26 2006 +0000 (2006-11-14)
parents 8f09c7d6bad1
children bcebb04c65c8
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Tue Nov 14 10:56:07 2006 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Tue Nov 14 11:47:26 2006 +0000
     1.3 @@ -3266,8 +3266,9 @@ sh_set_toplevel_shadow(struct vcpu *v,
     1.4      }
     1.5      else
     1.6      {
     1.7 -        /* This guest MFN is a pagetable.  Must revoke write access. */
     1.8 -        if ( shadow_remove_write_access(v, gmfn, GUEST_PAGING_LEVELS, 0) != 0 )
     1.9 +        /* This guest MFN is a pagetable.  Must revoke write access 
    1.10 +         * (and can't use heuristics because we have no linear map here). */
    1.11 +        if ( shadow_remove_write_access(v, gmfn, 0, 0) != 0 )
    1.12              flush_tlb_mask(v->domain->domain_dirty_cpumask); 
    1.13          /* Make sure there's enough free shadow memory. */
    1.14          shadow_prealloc(d, SHADOW_MAX_ORDER);