aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2011-09-22 04:56:58 -0400
committerAvi Kivity <avi@redhat.com>2011-12-27 04:16:58 -0500
commitf8734352c6f9c4f3d85f0c97b7731b7f925c62fd (patch)
treec3bf5e4938aaef0976ce5c5667561c78b5d873f9 /arch/x86/kvm
parentf57f2ef58f6703e6df70ed52a198920cb3e8edba (diff)
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 <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/mmu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index c01137f10c6b..7e57938bb86a 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -3590,7 +3590,6 @@ void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,
3590 */ 3590 */
3591 mmu_topup_memory_caches(vcpu); 3591 mmu_topup_memory_caches(vcpu);
3592 spin_lock(&vcpu->kvm->mmu_lock); 3592 spin_lock(&vcpu->kvm->mmu_lock);
3593 kvm_mmu_free_some_pages(vcpu);
3594 ++vcpu->kvm->stat.mmu_pte_write; 3593 ++vcpu->kvm->stat.mmu_pte_write;
3595 trace_kvm_mmu_audit(vcpu, AUDIT_PRE_PTE_WRITE); 3594 trace_kvm_mmu_audit(vcpu, AUDIT_PRE_PTE_WRITE);
3596 if (gfn == vcpu->arch.last_pt_write_gfn 3595 if (gfn == vcpu->arch.last_pt_write_gfn