diff options
author | Alexander Graf <agraf@suse.de> | 2012-08-03 13:56:33 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-08-16 14:14:53 +0200 |
commit | 249ba1ee0f8fcb4e40caa5fbea11dafde201cc46 (patch) | |
tree | cbe2fcf2c4e0c966afb3a7cacc785b608304a40c /arch/powerpc/mm | |
parent | KVM: PPC: Book3S HV: Fix incorrect branch in H_CEDE code (diff) | |
download | linux-249ba1ee0f8fcb4e40caa5fbea11dafde201cc46.tar.xz 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.c | 1 |
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) { |