]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit237e31e352b99527feccee137f97204e3e057721
treefa1dbce9d27e0a71b5b4c297bc7ab86b00bcc5f1
parentcf17af3c28f702f332d2e88b52aabd0008a24a37
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