KVM: do not treat noslot pfn as a error pfn
[deliverable/linux.git] / arch / x86 / kvm / paging_tmpl.h
index d17decaf1db9fafafff86079d072dcb2218c91dd..891eb6d93b8b32b2d4bb7f85c45702d314d14615 100644 (file)
@@ -323,7 +323,7 @@ FNAME(prefetch_gpte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
        protect_clean_gpte(&pte_access, gpte);
        pfn = pte_prefetch_gfn_to_pfn(vcpu, gfn,
                        no_dirty_log && (pte_access & ACC_WRITE_MASK));
-       if (is_invalid_pfn(pfn))
+       if (is_error_pfn(pfn))
                return false;
 
        /*
This page took 0.024141 seconds and 5 git commands to generate.