From: Avi Kivity Date: Thu, 21 Jun 2007 08:54:45 +0000 (+0300) Subject: KVM: VMX: Remove unnecessary code in vmx_tlb_flush() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=796fd1b23e463e98b3e2fc86ed571db06dc945bb;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git KVM: VMX: Remove unnecessary code in vmx_tlb_flush() A vmexit implicitly flushes the tlb; the code is bogus. Noted by Shaohua Li. Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 42a916379ce2..7d04ffaaf94a 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -1987,7 +1987,6 @@ static int dm_request_for_irq_injection(struct kvm_vcpu *vcpu, static void vmx_flush_tlb(struct kvm_vcpu *vcpu) { - vmcs_writel(GUEST_CR3, vmcs_readl(GUEST_CR3)); } static int vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)