KVM: Remove memory alias support
[deliverable/linux.git] / arch / x86 / kvm / paging_tmpl.h
index 863920f649fbeb4ed2f15b5c8ddcf707e04a6c63..a21a86ef9e203d94917c474a71b283ec9a38b3da 100644 (file)
@@ -576,7 +576,6 @@ static void FNAME(prefetch_page)(struct kvm_vcpu *vcpu,
  * Using the cached information from sp->gfns is safe because:
  * - The spte has a reference to the struct page, so the pfn for a given gfn
  *   can't change unless all sptes pointing to it are nuked first.
- * - Alias changes zap the entire shadow cache.
  */
 static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
                            bool clear_unsync)
@@ -611,7 +610,7 @@ static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
                        return -EINVAL;
 
                gfn = gpte_to_gfn(gpte);
-               if (unalias_gfn(vcpu->kvm, gfn) != sp->gfns[i] ||
+               if (gfn != sp->gfns[i] ||
                      !is_present_gpte(gpte) || !(gpte & PT_ACCESSED_MASK)) {
                        u64 nonpresent;
 
This page took 0.02352 seconds and 5 git commands to generate.