]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit14a9bebcc2cae4493250c27ae80b0210ba490e59
treecbe2fcf2c4e0c966afb3a7cacc785b608304a40c
parentcc32e522984ecbff778f0dc8f5a307b57e8f6417
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