Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm into next
[cascardo/linux.git] / arch / powerpc / kvm / book3s_hv_rm_mmu.c
index ac840c6..6e62243 100644 (file)
@@ -235,7 +235,7 @@ long kvmppc_do_h_enter(struct kvm *kvm, unsigned long flags,
                pte_size = psize;
                pte = lookup_linux_pte_and_update(pgdir, hva, writing,
                                                  &pte_size);
-               if (pte_present(pte)) {
+               if (pte_present(pte) && !pte_numa(pte)) {
                        if (writing && !pte_write(pte))
                                /* make the actual HPTE be read-only */
                                ptel = hpte_make_readonly(ptel);