aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/vmx.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-06-21 04:54:45 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-16 05:05:49 -0400
commit796fd1b23e463e98b3e2fc86ed571db06dc945bb (patch)
tree758ae75fddd38aa2a302448dd51539cd97e5fa08 /drivers/kvm/vmx.c
parent88a97f0b2fe1cd08d06390dc2669b709ea96e11a (diff)
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 <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r--drivers/kvm/vmx.c1
1 files changed, 0 insertions, 1 deletions
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,
1987 1987
1988static void vmx_flush_tlb(struct kvm_vcpu *vcpu) 1988static void vmx_flush_tlb(struct kvm_vcpu *vcpu)
1989{ 1989{
1990 vmcs_writel(GUEST_CR3, vmcs_readl(GUEST_CR3));
1991} 1990}
1992 1991
1993static int vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) 1992static int vmx_vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)