summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorJunaid Shahid <junaids@google.com>2018-06-28 00:59:12 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-06 18:58:55 +0300
commitafe828d1de4047d26eb0cd0c0154f5ac3722bf63 (patch)
treedde4847d96f41b66542bcf81c65b351d273a1f6f /arch/x86/kvm/vmx.c
parent50c28f21d045dde8c52548f8482d456b3f0956f5 (diff)
downloadlinux-afe828d1de4047d26eb0cd0c0154f5ac3722bf63.tar.xz
kvm: x86: Add ability to skip TLB flush when switching CR3
Remove the implicit flush from the set_cr3 handlers, so that the callers are able to decide whether to flush the TLB or not. Signed-off-by: Junaid Shahid <junaids@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index c6ea892a610e..903c130bb811 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5029,7 +5029,6 @@ static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)
ept_load_pdptrs(vcpu);
}
- vmx_flush_tlb(vcpu, true);
vmcs_writel(GUEST_CR3, guest_cr3);
}