Skip to content

Commit 61aa9a0

Browse files
bjzhjingsuryasaimadhu
authored andcommitted
x86/kvm: Expose TSX Suspend Load Tracking feature
TSX suspend load tracking instruction is supported by the Intel uarch Sapphire Rapids. It aims to give a way to choose which memory accesses do not need to be tracked in the TSX read set. It's availability is indicated as CPUID.(EAX=7,ECX=0):EDX[bit 16]. Expose TSX Suspend Load Address Tracking feature in KVM CPUID, so KVM could pass this information to guests and they can make use of this feature accordingly. Signed-off-by: Cathy Zhang <cathy.zhang@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Link: https://lkml.kernel.org/r/1598316478-23337-3-git-send-email-cathy.zhang@intel.com
1 parent 18ec63f commit 61aa9a0

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
@@ -371,7 +371,7 @@ void kvm_set_cpu_caps(void)
371371
F(AVX512_4VNNIW) | F(AVX512_4FMAPS) | F(SPEC_CTRL) |
372372
F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES) | F(INTEL_STIBP) |
373373
F(MD_CLEAR) | F(AVX512_VP2INTERSECT) | F(FSRM) |
374-
F(SERIALIZE)
374+
F(SERIALIZE) | F(TSXLDTRK)
375375
);
376376

377377
/* TSC_ADJUST and ARCH_CAPABILITIES are emulated in software. */

0 commit comments

Comments
 (0)