Skip to content

nosnp sev command line support

Pavan Kumar Paluri linux-coco linux-doc lkml 7 versions – Applied

Status from this message: The following commit has been merged into the x86/sev branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 2 repliesApplied
  2. v62 patches 7 repliesSuperseded
  3. v52 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v42 patches2 repliesSuperseded
v32 patches2 repliesSuperseded
v22 patches1 replySuperseded
v12 patches10 repliesSuperseded

Changelog from the cover letter

=========

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/2x86, KVM:SVM: Move sev specific parsing into arch/x86/virt/svmarch/x86/coco/sev/core.c arch/x86/include/asm/sev-common.h arch/x86/virt/svm/Makefile +1 more+61 -440 replies
2/2x86 KVM:SVM: Provide "nosnp" boot option for sev kernel command lineDocumentation/arch/x86/x86_64/boot-options.rst arch/x86/virt/svm/cmdline.c+12 -02 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchTom Lendacky
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/2] nosnp sev command line support

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)

Setting 'nosnp' avoids the RMP check overhead in memory accesses when users do not want to run SEV-SNP guests.

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

The 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:
=========
v6:
* <linux/cache.h> was not included in virt/svm/cmdline.c, which was breaking the progressive build. Fix this issue (Boris)
* Link: https://lore.kernel.org/all/[email protected]/

v5:
* Update cover-letter and Documentation to include information on why nosnp command line option is required (Dave Hansen)
* Remove <asm/cache.h> stray header introduced in the previous versions because of __read_mostly attribute that is now moved into virt/svm/cmdline.c
* Link: https://lore.kernel.org/all/[email protected]/

v4:
* Move __read_mostly attribute to place where sev_cfg is declared (Tom)
* Link: https://lore.kernel.org/all/[email protected]/

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          |  5 +++
 arch/x86/coco/sev/core.c                      | 44 -------------------
 arch/x86/include/asm/sev-common.h             | 27 ++++++++++++
 arch/x86/virt/svm/Makefile                    |  1 +
 arch/x86/virt/svm/cmdline.c                   | 40 +++++++++++++++++
 5 files changed, 73 insertions(+), 44 deletions(-)
 create mode 100644 arch/x86/virt/svm/cmdline.c

base-commit: 00d91979d23c88d3f50870e22fc9cec3f5e26a2a

Signature · 1 line
2.34.1