summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/e500.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2013-01-17 17:54:36 +0100
committerAlexander Graf <agraf@suse.de>2013-01-24 19:23:32 +0100
commitc015c62b13498629809185eb0ff04e3f13d1afb6 (patch)
tree7f18a3e8eab2c9af305bf16bb03342b064325183 /arch/powerpc/kvm/e500.h
parentb71c9e2fb72cf538aadbc59ea719639a1e2191fa (diff)
downloadlinux-stable-c015c62b13498629809185eb0ff04e3f13d1afb6.tar.gz
linux-stable-c015c62b13498629809185eb0ff04e3f13d1afb6.tar.bz2
linux-stable-c015c62b13498629809185eb0ff04e3f13d1afb6.zip
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>
Diffstat (limited to 'arch/powerpc/kvm/e500.h')
-rw-r--r--arch/powerpc/kvm/e500.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h
index c70d37ed770a..41cefd43655f 100644
--- a/arch/powerpc/kvm/e500.h
+++ b/arch/powerpc/kvm/e500.h
@@ -28,6 +28,7 @@
#define E500_TLB_VALID 1
#define E500_TLB_BITMAP 2
+#define E500_TLB_TLB0 (1 << 2)
struct tlbe_ref {
pfn_t pfn;