Linux Documentation
 help / color / mirror / Atom feed
* [PATCH v5 0/2] nosnp sev command line support
@ 2024-09-30 23:11 Pavan Kumar Paluri
  2024-09-30 23:11 ` [PATCH v5 1/2] x86, KVM:SVM: Move sev specific parsing into arch/x86/virt/svm Pavan Kumar Paluri
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Pavan Kumar Paluri @ 2024-09-30 23:11 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-doc, Borislav Petkov, Thomas Gleixner, Ingo Molnar,
	Dave Hansen, Eric Van Tassell, Tom Lendacky, Ashish Kalra,
	Michael Roth, H . Peter Anvin, Peter Zijlstra, Pavan Kumar Paluri

Provide "nosnp" boot option via "sev=nosnp" kernel command line to
prevent SEV-SNP[1] capable host kernel from enabling SEV-SNP and
initializing Reverse Map Table (RMP) [1].

On providing sev=nosnp via kernel command line:
cat /sys/module/kvm_amd/parameters/sev_snp should be "N".

This patchset is based on tip/master.

Reference:
[1] https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/programmer-references/24593.pdf

Changelog:
=========
v4->v5:
  * Move __read_mostly attribute to place where sev_cfg is declared (Tom)

v3->v4:
  * Remove an irrelevant header (Boris)
  * Rebase on latest tip/master
  * Link: https://lore.kernel.org/all/20240922033626.29038-1-papaluri@amd.com/

Pavan Kumar Paluri (2):
  x86, KVM:SVM: Move sev specific parsing into arch/x86/virt/svm
  x86 KVM:SVM: Provide "nosnp" boot option for sev kernel command line

 .../arch/x86/x86_64/boot-options.rst          |  3 ++
 arch/x86/coco/sev/core.c                      | 44 -------------------
 arch/x86/include/asm/sev-common.h             | 29 ++++++++++++
 arch/x86/virt/svm/Makefile                    |  1 +
 arch/x86/virt/svm/cmdline.c                   | 39 ++++++++++++++++
 5 files changed, 72 insertions(+), 44 deletions(-)
 create mode 100644 arch/x86/virt/svm/cmdline.c


base-commit: d1b8f40d000887720e0c123c382d75e7fbb75cb6
-- 
2.34.1


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

end of thread, other threads:[~2024-10-01  0:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-30 23:11 [PATCH v5 0/2] nosnp sev command line support Pavan Kumar Paluri
2024-09-30 23:11 ` [PATCH v5 1/2] x86, KVM:SVM: Move sev specific parsing into arch/x86/virt/svm Pavan Kumar Paluri
2024-09-30 23:11 ` [PATCH v5 2/2] x86 KVM:SVM: Provide "nosnp" boot option for sev kernel command line Pavan Kumar Paluri
2024-09-30 23:25 ` [PATCH v5 0/2] nosnp sev command line support Dave Hansen
2024-10-01  0:09   ` Paluri, PavanKumar
2024-10-01  0:14     ` Dave Hansen
2024-10-01  0:18       ` Paluri, PavanKumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox