aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-mul.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-06-05 23:19:15 +0000
committerSean Christopherson <[email protected]>2024-08-22 18:25:52 +0000
commit92e648042c237c3bba223ab7f7e1a76f41ab3ef7 (patch)
tree3075ec22e5b8b43c9247f9664b5aaf268d893561 /lib/crypto/mpi/mpi-mul.c
parentKVM: nVMX: Use macros and #defines in vmx_restore_vmx_basic() (diff)
downloadkernel-92e648042c237c3bba223ab7f7e1a76f41ab3ef7.tar.gz
kernel-92e648042c237c3bba223ab7f7e1a76f41ab3ef7.zip
KVM: nVMX: Add a helper to encode VMCS info in MSR_IA32_VMX_BASIC
Add a helper to encode the VMCS revision, size, and supported memory types in MSR_IA32_VMX_BASIC, i.e. when synthesizing KVM's supported BASIC MSR value, and delete the now unused VMCS size and memtype shift macros. For a variety of reasons, KVM has shifted (pun intended) to using helpers to *get* information from the VMX MSRs, as opposed to defined MASK and SHIFT macros for direct use. Provide a similar helper for the nested VMX code, which needs to *set* information, so that KVM isn't left with a mix of SHIFT macros and dedicated helpers. Reported-by: Xiaoyao Li <[email protected]> Reviewed-by: Xiaoyao Li <[email protected]> Reviewed-by: Kai Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions