Skip to content

Commit f873435

Browse files
Xiao Guangrongavikivity
authored andcommitted
KVM: MMU: remove unnecessary kvm_mmu_free_some_pages
In kvm_mmu_pte_write, we do not need to alloc shadow page, so calling kvm_mmu_free_some_pages is really unnecessary Signed-off-by: Xiao Guangrong <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
1 parent f57f2ef commit f873435

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kvm/mmu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3590,7 +3590,6 @@ void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,
35903590
*/
35913591
mmu_topup_memory_caches(vcpu);
35923592
spin_lock(&vcpu->kvm->mmu_lock);
3593-
kvm_mmu_free_some_pages(vcpu);
35943593
++vcpu->kvm->stat.mmu_pte_write;
35953594
trace_kvm_mmu_audit(vcpu, AUDIT_PRE_PTE_WRITE);
35963595
if (gfn == vcpu->arch.last_pt_write_gfn

0 commit comments

Comments
 (0)