Merge tag 'signed-kvm-ppc-next' of git://github.com/agraf/linux-2.6 into kvm
[cascardo/linux.git] / arch / powerpc / kvm / book3s_hv_rm_mmu.c
index e5c6063..084ad54 100644 (file)
@@ -834,13 +834,10 @@ long kvmppc_hv_find_lock_hpte(struct kvm *kvm, gva_t eaddr, unsigned long slb_v,
                        r = be64_to_cpu(hpte[i+1]);
 
                        /*
-                        * Check the HPTE again, including large page size
-                        * Since we don't currently allow any MPSS (mixed
-                        * page-size segment) page sizes, it is sufficient
-                        * to check against the actual page size.
+                        * Check the HPTE again, including base page size
                         */
                        if ((v & valid) && (v & mask) == val &&
-                           hpte_page_size(v, r) == (1ul << pshift))
+                           hpte_base_page_size(v, r) == (1ul << pshift))
                                /* Return with the HPTE still locked */
                                return (hash << 3) + (i >> 1);