diff options
author | Sean Christopherson <[email protected]> | 2024-06-05 16:19:15 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-08-22 11:25:52 -0700 |
commit | 92e648042c237c3bba223ab7f7e1a76f41ab3ef7 (patch) | |
tree | 3075ec22e5b8b43c9247f9664b5aaf268d893561 /drivers/fpga/fpga-mgr.c | |
parent | c97b106fa8aa500823695abfda7c9bdefb42a648 (diff) |
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 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions