ia64/xen-unstable

changeset 14183:8ba425b640b3

[XEN][SHADOW] Use slow method for early-unshadow

The "fast" method fails a significant portion of the time.
unshadow will still use the "fast" method, but will fall
back to a brute-force method if it fails.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
author George Dunlap <gdunlap@xensource.com>
date Wed Feb 28 11:13:49 2007 -0500 (2007-02-28)
parents 7b35a9682d81
children c3c03089c59e
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Wed Feb 28 11:11:22 2007 -0500
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Wed Feb 28 11:13:49 2007 -0500
     1.3 @@ -2522,7 +2522,7 @@ static inline void check_for_early_unsha
     1.4          if ( !(flags & (SHF_L2_32|SHF_L2_PAE|SHF_L2H_PAE|SHF_L4_64)) )
     1.5          {
     1.6              perfc_incrc(shadow_early_unshadow);
     1.7 -            sh_remove_shadows(v, gmfn, 1, 0 /* Fast, can fail to unshadow */ );
     1.8 +            sh_remove_shadows(v, gmfn, 0, 0 /* Slow, can fail to unshadow */ );
     1.9          } 
    1.10      }
    1.11      v->arch.paging.shadow.last_emulated_mfn = mfn_x(gmfn);