]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Replace MSR_IA32_RTIT_OUTPUT_BASE_MASK with helper function
authorSean Christopherson <sean.j.christopherson@intel.com>
Thu, 24 Sep 2020 19:42:48 +0000 (12:42 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:26 +0000 (07:57 -0400)
commit1f9e74ef97c3b85c20f246b97ccaa6ba8ddea720
treec8b77ee65e677bb1ebe5ded44269971acf571854
parented16d52413458ed3fd2f86ee016b0c5063301c8a
KVM: VMX: Replace MSR_IA32_RTIT_OUTPUT_BASE_MASK with helper function

Replace the subtly not-a-constant MSR_IA32_RTIT_OUTPUT_BASE_MASK with a
proper helper function to check whether or not the specified base is
valid.  Blindly referencing the local 'vcpu' is especially nasty.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200924194250.19137-4-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c