]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: PPC: BOOK3S: HV: Use base page size when comparing against slb value
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 15 Jun 2014 18:47:07 +0000 (00:17 +0530)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Jun 2014 12:07:06 +0000 (14:07 +0200)
commit341acbb3aabbcfbf069d7de4ad35f51b58176faf
treef6ea84649db60b6bc5a56bf2e062c8db29046bbd
parent511c66818d87db2a8931e7f7f92c7904bdd84f72
KVM: PPC: BOOK3S: HV: Use base page size when comparing against slb value

With guests supporting Multiple page size per segment (MPSS),
hpte_page_size returns the actual page size used. Add a new function to
return base page size and use that to compare against the the page size
calculated from SLB. Without this patch a hpte lookup can fail since
we are comparing wrong page size in kvmppc_hv_find_lock_hpte.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s_64.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_rm_mmu.c