25typedef PACKED
struct {
31 UINT32 SvsmMaxVersion;
36typedef PACKED
struct {
37 UINT8 SvsmCallPending;
38 UINT8 SvsmMemAvailable;
45 UINT8 SvsmBuffer[SIZE_4KB - 8];
48#define SVSM_SUCCESS 0x00000000
49#define SVSM_ERR_INCOMPLETE 0x80000000
50#define SVSM_ERR_UNSUPPORTED_PROTOCOL 0x80000001
51#define SVSM_ERR_UNSUPPORTED_CALL 0x80000002
52#define SVSM_ERR_INVALID_ADDRESS 0x80000003
53#define SVSM_ERR_INVALID_FORMAT 0x80000004
54#define SVSM_ERR_INVALID_PARAMETER 0x80000005
55#define SVSM_ERR_INVALID_REQUEST 0x80000006
56#define SVSM_ERR_BUSY 0x80000007
58#define SVSM_ERR_PVALIDATE_FAIL_INPUT 0x80001001
59#define SVSM_ERR_PVALIDATE_FAIL_SIZE_MISMATCH 0x80001006
60#define SVSM_ERR_PVALIDATE_FAIL_NO_CHANGE 0x80001010
62typedef PACKED
struct {
67} SVSM_PVALIDATE_HEADER;
74 UINT64 Reserved_2 : 8;
80typedef PACKED
struct {
81 SVSM_PVALIDATE_HEADER Header;
83} SVSM_PVALIDATE_REQUEST;
85#define SVSM_PVALIDATE_MAX_ENTRY \
86 ((sizeof (((SVSM_CAA *)0)->SvsmBuffer) - sizeof (SVSM_PVALIDATE_HEADER)) / sizeof (SVSM_PVALIDATE_ENTRY))
89 SVSM_PVALIDATE_REQUEST PvalidateRequest;