]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: VMX: Open code VMX preemption timer rate mask in its accessor
authorXin Li <xin3.li@intel.com>
Wed, 5 Jun 2024 23:19:17 +0000 (16:19 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 22 Aug 2024 18:25:54 +0000 (11:25 -0700)
commit8f56b14e9fa0f91daf4d3be05988abf336255dc6
tree962f8eedb2ccf374f64e545fca673678d212a95b
parentdc1e67f70f6d4e336da06cb61bf6669d6fa39869
KVM: VMX: Open code VMX preemption timer rate mask in its accessor

Use vmx_misc_preemption_timer_rate() to get the rate in hardware_setup(),
and open code the rate's bitmask in vmx_misc_preemption_timer_rate() so
that the function looks like all the helpers that grab values from
VMX_BASIC and VMX_MISC MSR values.

No functional change intended.

Cc: Shan Kang <shan.kang@intel.com>
Cc: Kai Huang <kai.huang@intel.com>
Signed-off-by: Xin Li <xin3.li@intel.com>
[sean: split to separate patch, write changelog]
Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20240605231918.2915961-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/vmx.h
arch/x86/kvm/vmx/vmx.c