Re: [PATCH v8 08/10] KVM VMX: Move MSR_IA32_VMX_MISC bit defines to asm/vmx.h

From: Xiaoyao Li
Date: Tue Jun 11 2024 - 21:53:28 EST


On 6/6/2024 7:19 AM, Sean Christopherson wrote:
Move the handful of MSR_IA32_VMX_MISC bit defines that are currently in
msr-indx.h to vmx.h so that all of the VMX_MISC defines and wrappers can
be found in a single location.

Opportunistically use BIT_ULL() instead of open coding hex values, add
defines for feature bits that are architecturally defined, and move the
defines down in the file so that they are colocated with the helpers for
getting fields from VMX_MISC.

No functional change intended.

Cc: Shan Kang <shan.kang@xxxxxxxxx>
Cc: Kai Huang <kai.huang@xxxxxxxxx>
Signed-off-by: Xin Li <xin3.li@xxxxxxxxx>
[sean: split to separate patch, write changelog]
Reviewed-by: Zhao Liu <zhao1.liu@xxxxxxxxx>
Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>

Reviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>

Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>