Skip to content

Add SEV_INIT_EX support

Peter Gonda linux-crypto lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 1 replyIn review
  2. v55 patches 2 repliesSuperseded
  3. v45 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v34 patches27 repliesSuperseded
v24 patches4 repliesSuperseded
v14 patches14 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: ccp - Add SEV_INIT rc error logging on initdrivers/crypto/ccp/sev-dev.c+2 -10 replies
2/5crypto: ccp - Move SEV_INIT retry for corrupted datadrivers/crypto/ccp/sev-dev.c+16 -140 replies
3/5crypto: ccp - Refactor out sev_fw_alloc()drivers/crypto/ccp/sev-dev.c+13 -70 replies
4/5crypto: ccp - Add psp_init_on_probe module parameterdrivers/crypto/ccp/sev-dev.c+12 -70 replies
5/5crypto: ccp - Add SEV_INIT_EX supportDocumentation/virt/kvm/amd-memory-encryption.rst drivers/crypto/ccp/sev-dev.c include/linux/psp-sev.h+205 -150 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc OrrDavid RientjesBrijesh SinghTom Lendacky
SeriesR-b A-b A-b
1/5R-b A-b A-b A-b
2/5R-b A-b A-b A-b
3/5R-b A-b A-b
4/5A-b
5/5R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH V6 0/5] Add SEV_INIT_EX support

SEV_INIT requires users to unlock their SPI bus for the PSP's non volatile (NV) storage. Users may wish to lock their SPI bus for numerous reasons, to support this the PSP firmware supports SEV_INIT_EX. INIT_EX allows the firmware to use a region of memory for its NV storage leaving the kernel responsible for actually storing the data in a persistent way. This series adds a new module parameter to ccp allowing users to specify a path to a file for use as the PSP's NV storage. The ccp driver then reads the file into memory for the PSP to use and is responsible for writing the file whenever the PSP modifies the memory region.

V4-5
* Fix make C=1 W=1 warnings.

V3
* Add another module parameter 'psp_init_on_probe' to allow for skipping PSP init on module init.
* Fixes review comments from Sean.
* Fixes missing error checking with file reading.
* Removed setting 'error' to a set value in patch 1.

David Rientjes (1):
crypto: ccp - Add SEV_INIT_EX support

Peter Gonda (4):
crypto: ccp - Add SEV_INIT rc error logging on init
crypto: ccp - Move SEV_INIT retry for corrupted data
crypto: ccp - Refactor out sev_fw_alloc()
crypto: ccp - Add psp_init_on_probe module parameter

 .../virt/kvm/amd-memory-encryption.rst        |   6 +
 drivers/crypto/ccp/sev-dev.c                  | 259 +++++++++++++++---
 include/linux/psp-sev.h                       |  21 ++
 3 files changed, 245 insertions(+), 41 deletions(-)
Signature · 1 line
2.34.1.400.ga245620fadb-goog