mbox series

[0/2] Improve error handling during INIT_EX file initialization

Message ID 20220802185534.735338-1-jackyli@google.com
Headers show
Series Improve error handling during INIT_EX file initialization | expand

Message

Jacky Li Aug. 2, 2022, 6:55 p.m. UTC
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.

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                  | 52 ++++++++++++-------
 2 files changed, 35 insertions(+), 22 deletions(-)