crypto: ccp - Name -1 return value as SEV_RET_NO_FW_CALL
authorPeter Gonda <pgonda@google.com>
Tue, 7 Mar 2023 19:24:39 +0000 (20:24 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 21 Mar 2023 10:37:32 +0000 (11:37 +0100)
commitefb339a83368ab25de1a18c0fdff85e01c13a1ea
treed6a2d9ffeaefb71d5a1942020b71020a4ca1852f
parente8d018dd0257f744ca50a729e3d042cf2ec9da65
crypto: ccp - Name -1 return value as SEV_RET_NO_FW_CALL

The PSP can return a "firmware error" code of -1 in circumstances where
the PSP has not actually been called. To make this protocol unambiguous,
name the value SEV_RET_NO_FW_CALL.

  [ bp: Massage a bit. ]

Signed-off-by: Peter Gonda <pgonda@google.com>
Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20221207010210.2563293-2-dionnaglaze@google.com
Documentation/virt/coco/sev-guest.rst
drivers/crypto/ccp/sev-dev.c
include/uapi/linux/psp-sev.h