KVM: PPC: Add cache flush on page map
authorAlexander Graf <agraf@suse.de>
Fri, 3 Aug 2012 11:56:33 +0000 (13:56 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 16 Aug 2012 12:14:53 +0000 (14:14 +0200)
commit249ba1ee0f8fcb4e40caa5fbea11dafde201cc46
treecbe2fcf2c4e0c966afb3a7cacc785b608304a40c
parent04f995a544d1289ffb8108849cd71b1325c5af6a
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>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_32_mmu_host.c
arch/powerpc/kvm/book3s_64_mmu_host.c
arch/powerpc/kvm/e500_tlb.c
arch/powerpc/mm/mem.c