History

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. ]

Peter Gonda committed 3 years ago

Commit efb339a1 parent e8d018d3 files · +14 −5Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/psp-sev.h+7−0
@@ -36,6 +36,13 @@ enum { · 35 unmodified lines
3636 * SEV Firmware status code
3737 */
3838 typedef enum {
39+ /*
40+ * This error code is not in the SEV spec. Its purpose is to convey that
41+ * there was an error that prevented the SEV firmware from being called.
42+ * The SEV API error codes are 16 bits, so the -1 value will not overlap
43+ * with possible values from the specification.
44+ */
45+ SEV_RET_NO_FW_CALL = -1,
3946 SEV_RET_SUCCESS = 0,
4047 SEV_RET_INVALID_PLATFORM_STATE,
4148 SEV_RET_INVALID_GUEST_STATE,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t