summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/svm/svm.c
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-03-20 14:28:13 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-04-21 09:12:50 -0400
commit72b38320872666f7fb6ff9564bf91139c685c234 (patch)
tree2a1f1f4fc70e101e053d3308f3e8c384ec684fcf /arch/x86/kvm/svm/svm.c
parentf55ac304ca47039368a5971fa61ebc8160c90659 (diff)
downloadlwn-72b38320872666f7fb6ff9564bf91139c685c234.tar.gz
lwn-72b38320872666f7fb6ff9564bf91139c685c234.zip
KVM: SVM: Wire up ->tlb_flush_guest() directly to svm_flush_tlb()
Use svm_flush_tlb() directly for kvm_x86_ops->tlb_flush_guest() now that the @invalidate_gpa param to ->tlb_flush() is gone, i.e. the wrapper for ->tlb_flush_guest() is no longer necessary. No functional change intended. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Message-Id: <20200320212833.3507-18-sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
-rw-r--r--arch/x86/kvm/svm/svm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
index aafd18589fda..2ad6a8d1a77f 100644
--- a/arch/x86/kvm/svm/svm.c
+++ b/arch/x86/kvm/svm/svm.c
@@ -3170,11 +3170,6 @@ static void svm_flush_tlb_gva(struct kvm_vcpu *vcpu, gva_t gva)
invlpga(gva, svm->vmcb->control.asid);
}
-static void svm_flush_tlb_guest(struct kvm_vcpu *vcpu)
-{
- svm_flush_tlb(vcpu);
-}
-
static void svm_prepare_guest_switch(struct kvm_vcpu *vcpu)
{
}
@@ -3944,7 +3939,7 @@ static struct kvm_x86_ops svm_x86_ops __initdata = {
.tlb_flush = svm_flush_tlb,
.tlb_flush_gva = svm_flush_tlb_gva,
- .tlb_flush_guest = svm_flush_tlb_guest,
+ .tlb_flush_guest = svm_flush_tlb,
.run = svm_vcpu_run,
.handle_exit = handle_exit,