diff options
author | Mihai Caraman <mihai.caraman@freescale.com> | 2012-10-11 06:13:25 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-12-06 01:34:15 +0100 |
commit | e9666ea1b3d11509b76f8ff5b9776d8d30709b19 (patch) | |
tree | 67db843e94b9c6f72ecbc4807692560e72fcee75 /arch/powerpc/kvm | |
parent | 9e2fa646936160eca525bcb80c2cce05faa9b208 (diff) | |
download | op-kernel-dev-e9666ea1b3d11509b76f8ff5b9776d8d30709b19.zip op-kernel-dev-e9666ea1b3d11509b76f8ff5b9776d8d30709b19.tar.gz |
KVM: PPC: booke: Extend MAS2 EPN mask for 64-bit
Extend MAS2 EPN mask to retain most significant bits on 64-bit hosts.
Use this mask in tlb effective address accessor.
Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/e500.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h index 32e98a7..c70d37e 100644 --- a/arch/powerpc/kvm/e500.h +++ b/arch/powerpc/kvm/e500.h @@ -154,7 +154,7 @@ get_tlb_size(const struct kvm_book3e_206_tlb_entry *tlbe) static inline gva_t get_tlb_eaddr(const struct kvm_book3e_206_tlb_entry *tlbe) { - return tlbe->mas2 & 0xfffff000; + return tlbe->mas2 & MAS2_EPN; } static inline u64 get_tlb_bytes(const struct kvm_book3e_206_tlb_entry *tlbe) |