]> rtime.felk.cvut.cz Git - linux-imx.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)
commitc015c62b13498629809185eb0ff04e3f13d1afb6
tree7f18a3e8eab2c9af305bf16bb03342b064325183
parentb71c9e2fb72cf538aadbc59ea719639a1e2191fa
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