[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEN] Don't use shadow linear maps in sh_set_toplevel_shadow()
# HG changeset patch # User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx> # Node ID d6f54576ac229d3c87d53e8242d45e4695695f0a # Parent 8f09c7d6bad1333fe75e7e77f3957aca0ec70579 [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@xxxxxxxxxxxxx> --- xen/arch/x86/mm/shadow/multi.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -r 8f09c7d6bad1 -r d6f54576ac22 xen/arch/x86/mm/shadow/multi.c --- a/xen/arch/x86/mm/shadow/multi.c Tue Nov 14 10:56:07 2006 +0000 +++ b/xen/arch/x86/mm/shadow/multi.c Tue Nov 14 11:47:26 2006 +0000 @@ -3266,8 +3266,9 @@ sh_set_toplevel_shadow(struct vcpu *v, } else { - /* This guest MFN is a pagetable. Must revoke write access. */ - if ( shadow_remove_write_access(v, gmfn, GUEST_PAGING_LEVELS, 0) != 0 ) + /* This guest MFN is a pagetable. Must revoke write access + * (and can't use heuristics because we have no linear map here). */ + if ( shadow_remove_write_access(v, gmfn, 0, 0) != 0 ) flush_tlb_mask(v->domain->domain_dirty_cpumask); /* Make sure there's enough free shadow memory. */ shadow_prealloc(d, SHADOW_MAX_ORDER); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |