linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for the ERAPS feature
@ 2024-10-31 15:39 Amit Shah
  2024-10-31 15:39 ` [PATCH 1/2] x86: cpu/bugs: add support for AMD " Amit Shah
  2024-10-31 15:39 ` [PATCH 2/2] x86: kvm: svm: add support for ERAPS and FLUSH_RAP_ON_VMRUN Amit Shah
  0 siblings, 2 replies; 24+ messages in thread
From: Amit Shah @ 2024-10-31 15:39 UTC (permalink / raw)
  To: linux-kernel, kvm, x86, linux-doc
  Cc: amit.shah, thomas.lendacky, bp, tglx, peterz, jpoimboe,
	pawan.kumar.gupta, corbet, mingo, dave.hansen, hpa, seanjc,
	pbonzini, daniel.sneddon, kai.huang, sandipan.das,
	boris.ostrovsky, Babu.Moger, david.kaplan

From: Amit Shah <amit.shah@amd.com>

Newer AMD CPUs (Turin+) have the ERAPS feature bit that allows us to remove
the RSB filling loops required during context switches and VM exits.

This patchset implements the feature to:
* remove the need for RSB filling on context switches and VMEXITs in host and
  guests
* allow KVM guests to use the full default RSB stack

Amit Shah (2):
  x86: cpu/bugs: add support for AMD ERAPS feature
  x86: kvm: svm: add support for ERAPS and FLUSH_RAP_ON_VMRUN

 Documentation/admin-guide/hw-vuln/spectre.rst |  5 ++-
 arch/x86/include/asm/cpufeatures.h            |  1 +
 arch/x86/include/asm/nospec-branch.h          | 11 +++++
 arch/x86/include/asm/svm.h                    |  6 ++-
 arch/x86/kernel/cpu/bugs.c                    | 36 ++++++++++-----
 arch/x86/kvm/cpuid.c                          | 15 ++++++-
 arch/x86/kvm/svm/svm.c                        | 44 +++++++++++++++++++
 arch/x86/kvm/svm/svm.h                        | 15 +++++++
 8 files changed, 118 insertions(+), 15 deletions(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2024-11-05 16:25 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 15:39 [PATCH 0/2] Add support for the ERAPS feature Amit Shah
2024-10-31 15:39 ` [PATCH 1/2] x86: cpu/bugs: add support for AMD " Amit Shah
2024-10-31 23:03   ` Pawan Gupta
2024-11-04  8:57     ` Shah, Amit
2024-11-04 14:52       ` Andrew Cooper
2024-11-04 15:00         ` Shah, Amit
2024-10-31 23:11   ` Dave Hansen
2024-11-04  8:58     ` Shah, Amit
2024-11-04 16:11       ` Dave Hansen
2024-11-04 16:13         ` Shah, Amit
2024-11-04 16:26           ` Dave Hansen
2024-11-04 17:22             ` Shah, Amit
2024-11-04 17:45               ` Dave Hansen
2024-11-05  0:04                 ` Andrew Cooper
2024-11-05 10:39                 ` Shah, Amit
2024-11-05 14:54                   ` Kaplan, David
2024-11-05 16:19                   ` Dave Hansen
2024-11-05 16:25                     ` Shah, Amit
2024-10-31 15:39 ` [PATCH 2/2] x86: kvm: svm: add support for ERAPS and FLUSH_RAP_ON_VMRUN Amit Shah
2024-10-31 23:13   ` Pawan Gupta
2024-11-01  4:14   ` kernel test robot
2024-11-01  9:26     ` Amit Shah
2024-11-04  5:18   ` Borislav Petkov
2024-11-04 11:16     ` Shah, Amit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).