summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/vmx/vmx.c
diff options
context:
space:
mode:
authorLike Xu <like.xu@linux.intel.com>2021-02-01 13:10:29 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-04 05:27:23 -0500
commit252e365eb28ddf49eb31cec1a5d99e708c73f57b (patch)
tree40d53100f1c6d18438904524bbc8f133bfa03e3b /arch/x86/kvm/vmx/vmx.c
parentd855066f81726155caf766e47eea58ae10b1fd57 (diff)
downloadlwn-252e365eb28ddf49eb31cec1a5d99e708c73f57b.tar.gz
lwn-252e365eb28ddf49eb31cec1a5d99e708c73f57b.zip
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>
Diffstat (limited to 'arch/x86/kvm/vmx/vmx.c')
-rw-r--r--arch/x86/kvm/vmx/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index d4145c57438c..c4b15f9f69b0 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -3790,7 +3790,7 @@ static __always_inline void vmx_enable_intercept_for_msr(struct kvm_vcpu *vcpu,
vmx_set_msr_bitmap_write(msr_bitmap, msr);
}
-static __always_inline void vmx_set_intercept_for_msr(struct kvm_vcpu *vcpu,
+void vmx_set_intercept_for_msr(struct kvm_vcpu *vcpu,
u32 msr, int type, bool value)
{
if (value)