|
@@ -1791,12 +1791,8 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *shadow_pte,
|
|
|
pgprintk("hfn old %lx new %lx\n",
|
|
|
spte_to_pfn(*shadow_pte), pfn);
|
|
|
rmap_remove(vcpu->kvm, shadow_pte);
|
|
|
- } else {
|
|
|
- if (largepage)
|
|
|
- was_rmapped = is_large_pte(*shadow_pte);
|
|
|
- else
|
|
|
- was_rmapped = 1;
|
|
|
- }
|
|
|
+ } else
|
|
|
+ was_rmapped = 1;
|
|
|
}
|
|
|
if (set_spte(vcpu, shadow_pte, pte_access, user_fault, write_fault,
|
|
|
dirty, largepage, global, gfn, pfn, speculative, true)) {
|