|
@@ -243,6 +243,11 @@ next_pteg:
|
|
/* Now tell our Shadow PTE code about the new page */
|
|
/* Now tell our Shadow PTE code about the new page */
|
|
|
|
|
|
pte = kvmppc_mmu_hpte_cache_next(vcpu);
|
|
pte = kvmppc_mmu_hpte_cache_next(vcpu);
|
|
|
|
+ if (!pte) {
|
|
|
|
+ kvm_release_pfn_clean(hpaddr >> PAGE_SHIFT);
|
|
|
|
+ r = -EAGAIN;
|
|
|
|
+ goto out;
|
|
|
|
+ }
|
|
|
|
|
|
dprintk_mmu("KVM: %c%c Map 0x%llx: [%lx] 0x%llx (0x%llx) -> %lx\n",
|
|
dprintk_mmu("KVM: %c%c Map 0x%llx: [%lx] 0x%llx (0x%llx) -> %lx\n",
|
|
orig_pte->may_write ? 'w' : '-',
|
|
orig_pte->may_write ? 'w' : '-',
|