linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] nosnp sev command line support
@ 2024-09-03  0:35 Pavan Kumar Paluri
  2024-09-03  0:35 ` [PATCH v2 1/2] x86, KVM:SVM: Move sev specific parsing into arch/x86/virt/svm Pavan Kumar Paluri
  2024-09-03  0:35 ` [PATCH v2 2/2] x86 KVM:SVM: Provide "nosnp" boot option for sev kernel command line Pavan Kumar Paluri
  0 siblings, 2 replies; 5+ messages in thread
From: Pavan Kumar Paluri @ 2024-09-03  0:35 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:

v1->v2:
  * Pick R-b from Tom.
  * Include only those headers that provide the necessary definitions (Boris)
  * Provide appropriate references to SEV, SNP and RMP (Matthew)

---
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             | 30 +++++++++++++
 arch/x86/virt/svm/Makefile                    |  1 +
 arch/x86/virt/svm/cmdline.c                   | 39 ++++++++++++++++
 5 files changed, 73 insertions(+), 44 deletions(-)
 create mode 100644 arch/x86/virt/svm/cmdline.c


base-commit: a85536e1bce722cb184abbac98068217874bdd6e
-- 
2.34.1


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

end of thread, other threads:[~2024-09-03 20:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-03  0:35 [PATCH v2 0/2] nosnp sev command line support Pavan Kumar Paluri
2024-09-03  0:35 ` [PATCH v2 1/2] x86, KVM:SVM: Move sev specific parsing into arch/x86/virt/svm Pavan Kumar Paluri
2024-09-03  8:44   ` kernel test robot
2024-09-03 20:38     ` Paluri, PavanKumar
2024-09-03  0:35 ` [PATCH v2 2/2] x86 KVM:SVM: Provide "nosnp" boot option for sev kernel command line Pavan Kumar Paluri

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).