Skip to content

Commit 703d794

Browse files
robert-hoosean-jc
authored andcommitted
KVM: x86: Advertise and enable LAM (user and supervisor)
LAM is enumerated by CPUID.7.1:EAX.LAM[bit 26]. Advertise the feature to userspace and enable it as the final step after the LAM virtualization support for supervisor and user pointers. SGX LAM support is not advertised yet. SGX LAM support is enumerated in SGX's own CPUID and there's no hard requirement that it must be supported when LAM is reported in CPUID leaf 0x7. Signed-off-by: Robert Hoo <robert.hu@linux.intel.com> Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com> Reviewed-by: Jingqi Liu <jingqi.liu@intel.com> Reviewed-by: Chao Gao <chao.gao@intel.com> Reviewed-by: Kai Huang <kai.huang@intel.com> Tested-by: Xuelian Guo <xuelian.guo@intel.com> Link: https://lore.kernel.org/r/20230913124227.12574-13-binbin.wu@linux.intel.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 3098e6e commit 703d794

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/cpuid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ void kvm_set_cpu_caps(void)
671671
kvm_cpu_cap_mask(CPUID_7_1_EAX,
672672
F(AVX_VNNI) | F(AVX512_BF16) | F(CMPCCXADD) |
673673
F(FZRM) | F(FSRS) | F(FSRC) |
674-
F(AMX_FP16) | F(AVX_IFMA)
674+
F(AMX_FP16) | F(AVX_IFMA) | F(LAM)
675675
);
676676

677677
kvm_cpu_cap_init_kvm_defined(CPUID_7_1_EDX,

0 commit comments

Comments
 (0)