summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-08-03 13:56:33 +0200
committerAlexander Graf <agraf@suse.de>2012-08-16 14:14:53 +0200
commit249ba1ee0f8fcb4e40caa5fbea11dafde201cc46 (patch)
treecbe2fcf2c4e0c966afb3a7cacc785b608304a40c /arch/powerpc/mm
parent04f995a544d1289ffb8108849cd71b1325c5af6a (diff)
downloadblackbird-op-linux-249ba1ee0f8fcb4e40caa5fbea11dafde201cc46.tar.gz
blackbird-op-linux-249ba1ee0f8fcb4e40caa5fbea11dafde201cc46.zip
KVM: PPC: Add cache flush on page map
When we map a page that wasn't icache cleared before, do so when first mapping it in KVM using the same information bits as the Linux mapping logic. That way we are 100% sure that any page we map does not have stale entries in the icache. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index baaafde7d135..fbdad0e3929a 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -469,6 +469,7 @@ void flush_dcache_icache_page(struct page *page)
__flush_dcache_icache_phys(page_to_pfn(page) << PAGE_SHIFT);
#endif
}
+EXPORT_SYMBOL(flush_dcache_icache_page);
void clear_user_page(void *page, unsigned long vaddr, struct page *pg)
{
OpenPOWER on IntegriCloud