]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: VMX: Remove unnecessary code in vmx_tlb_flush()
authorAvi Kivity <avi@qumranet.com>
Thu, 21 Jun 2007 08:54:45 +0000 (11:54 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:49 +0000 (12:05 +0300)
A vmexit implicitly flushes the tlb; the code is bogus.

Noted by Shaohua Li.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c

index 42a916379ce29654e55dac5f1817873fc6d783f1..7d04ffaaf94a66d9c91db7df07e55771c1ab42dc 100644 (file)
@@ -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)