]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/vmx: Make vmx_set_intercept_for_msr() non-static
authorLike Xu <like.xu@linux.intel.com>
Mon, 1 Feb 2021 05:10:29 +0000 (13:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:23 +0000 (05:27 -0500)
commit5cf5459dd62119fbf1fb2e46dc2a3d58c330dca3
tree40d53100f1c6d18438904524bbc8f133bfa03e3b
parent7d62e409a95d0938d1ec119bde17d0b7bb85b473
KVM: x86/vmx: Make vmx_set_intercept_for_msr() non-static

To make code responsibilities clear, we may resue and invoke the
vmx_set_intercept_for_msr() in other vmx-specific files (e.g. pmu_intel.c),
so expose it to passthrough LBR msrs later.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Message-Id: <20210201051039.255478-2-like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h