24#define MSR_SEV_ES_GHCB 0xc0010130
32 UINT32 Reserved1 : 20;
33 UINT32 Reserved2 : 32;
38 UINT8 SevEncryptionBitPos;
39 UINT16 SevEsProtocolMin;
40 UINT16 SevEsProtocolMax;
45 UINT32 ReasonCodeSet : 4;
46 UINT32 ReasonCode : 8;
48 UINT32 Reserved2 : 32;
54 } GhcbHypervisorFeatures;
58 UINT64 GuestFrameNumber : 52;
63 UINT64 GuestFrameNumber : 40;
66 } SnpPageStateChangeRequest;
72 } SnpPageStateChangeResponse;
76 UINT64 Reserved1 : 20;
78 UINT64 Reserved2 : 56;
89 UINT64 GhcbPhysicalAddress;
94#define GHCB_INFO_SEV_INFO 1
95#define GHCB_INFO_SEV_INFO_GET 2
96#define GHCB_INFO_CPUID_REQUEST 4
97#define GHCB_INFO_CPUID_RESPONSE 5
98#define GHCB_INFO_GHCB_GPA_REGISTER_REQUEST 18
99#define GHCB_INFO_GHCB_GPA_REGISTER_RESPONSE 19
100#define GHCB_INFO_SNP_PAGE_STATE_CHANGE_REQUEST 20
101#define GHCB_INFO_SNP_PAGE_STATE_CHANGE_RESPONSE 21
102#define GHCB_INFO_SNP_VMPL_REQUEST 22
103#define GHCB_INFO_SNP_VMPL_RESPONSE 23
104#define GHCB_HYPERVISOR_FEATURES_REQUEST 128
105#define GHCB_HYPERVISOR_FEATURES_RESPONSE 129
106#define GHCB_INFO_TERMINATE_REQUEST 256
108#define GHCB_TERMINATE_GHCB 0
109#define GHCB_TERMINATE_GHCB_GENERAL 0
110#define GHCB_TERMINATE_GHCB_PROTOCOL 1
116#define MSR_SEV_STATUS 0xc0010131
221 UINT32 Reserved2 : 4;
228 UINT32 Reserved3 : 8;
UINT32 DebugVirtualization
UINT32 AlternateInjection
UINT32 RestrictedInjection