]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: e500: Implement TLB1-in-TLB0 mapping
authorAlexander Graf <agraf@suse.de>
Thu, 17 Jan 2013 16:54:36 +0000 (17:54 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 24 Jan 2013 18:23:32 +0000 (19:23 +0100)
commitf1c0996b27215d497735ac9b1fcdb6d82a07cc9e
tree7f18a3e8eab2c9af305bf16bb03342b064325183
parent80b0a6449725c2c2b5122025377a620eeef28bbc
KVM: PPC: e500: Implement TLB1-in-TLB0 mapping

When a host mapping fault happens in a guest TLB1 entry today, we
map the translated guest entry into the host's TLB1.

This isn't particularly clever when the guest is mapped by normal 4k
pages, since these would be a lot better to put into TLB0 instead.

This patch adds the required logic to map 4k TLB1 shadow maps into
the host's TLB0.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/e500.h
arch/powerpc/kvm/e500_mmu_host.c