Skip to content

Improve error handling during INIT_EX file initialization

Jacky Li linux-crypto lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- refactor around __sev_init_ex_locked() and fix format.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: ccp - Initialize PSP when reading psp data file failedDocumentation/virt/kvm/x86/amd-memory-encryption.rst drivers/crypto/ccp/sev-dev.c+24 -172 replies
2/2crypto: ccp - Fail the PSP initialization when writing psp data file faileddrivers/crypto/ccp/sev-dev.c+15 -112 replies

Reviews trailers per patch

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

PatchDavid RientjesTom Lendacky
1/2A-b A-b
2/2A-b A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Improve error handling during INIT_EX file initialization

Currently the PSP initialization fails when the INIT_EX file is missing or invalid, while the initialization continues when the OS fails to write the INIT_EX file. This series handles both cases in a more robust way by resolving the file read error as well as throwing the write error to the caller.
---
Changelog since v1:
- refactor around __sev_init_ex_locked() and fix format.

Jacky Li (2):
crypto: ccp - Initialize PSP when reading psp data file failed
crypto: ccp - Fail the PSP initialization when writing psp data file
failed

 .../virt/kvm/x86/amd-memory-encryption.rst    |  5 +-
 drivers/crypto/ccp/sev-dev.c                  | 62 +++++++++++--------
 2 files changed, 39 insertions(+), 28 deletions(-)
Signature · 1 line
2.37.1.595.g718a3a8f04-goog