From: Jeremy Fitzhardinge Date: Tue, 28 Oct 2008 08:23:06 +0000 (+1100) Subject: xen: make sure stray alias mappings are gone before pinning X-Git-Tag: v2.6.28-rc4~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d05fdf316067cd311d5e7add08da26ded8a58080;p=pandora-kernel.git xen: make sure stray alias mappings are gone before pinning Xen requires that all mappings of pagetable pages are read-only, so that they can't be updated illegally. As a result, if a page is being turned into a pagetable page, we need to make sure all its mappings are RO. If the page had been used for ioremap or vmalloc, it may still have left over mappings as a result of not having been lazily unmapped. This change makes sure we explicitly mop them all up before pinning the page. Unlike aliases created by kmap, the there can be vmalloc aliases even for non-high pages, so we must do the flush unconditionally. Signed-off-by: Jeremy Fitzhardinge Cc: Linux Memory Management List Cc: Nick Piggin Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed