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. ]
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -36,6 +36,13 @@ enum { · 35 unmodified lines | ||
| 36 | 36 | * SEV Firmware status code |
| 37 | 37 | */ |
| 38 | 38 | 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, | |
| 39 | 46 | SEV_RET_SUCCESS = 0, |
| 40 | 47 | SEV_RET_INVALID_PLATFORM_STATE, |
| 41 | 48 | SEV_RET_INVALID_GUEST_STATE, |