KVM: x86: rename update_bp_intercept to update_exception_bitmap
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 15:48:06 +0000 (17:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 17:20:18 +0000 (13:20 -0400)
commit6986982fef86ae71a27d6309739a0c38b562a5c0
treefa1dbce9d27e0a71b5b4c297bc7ab86b00bcc5f1
parentec7771ab471ba6a945350353617e2e3385d0e013
KVM: x86: rename update_bp_intercept to update_exception_bitmap

We would like to introduce a callback to update the #PF intercept
when CPUID changes.  Just reuse update_bp_intercept since VMX is
already using update_exception_bitmap instead of a bespoke function.

While at it, remove an unnecessary assignment in the SVM version,
which is already done in the caller (kvm_arch_vcpu_ioctl_set_guest_debug)
and has nothing to do with the exception bitmap.

Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c