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)
commit252e365eb28ddf49eb31cec1a5d99e708c73f57b
tree40d53100f1c6d18438904524bbc8f133bfa03e3b
parentd855066f81726155caf766e47eea58ae10b1fd57
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