17#ifndef __FAM17_MSR_H__
18#define __FAM17_MSR_H__
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 GhcbPhysicalAddress;
79#define GHCB_INFO_SEV_INFO 1
80#define GHCB_INFO_SEV_INFO_GET 2
81#define GHCB_INFO_CPUID_REQUEST 4
82#define GHCB_INFO_CPUID_RESPONSE 5
83#define GHCB_INFO_GHCB_GPA_REGISTER_REQUEST 18
84#define GHCB_INFO_GHCB_GPA_REGISTER_RESPONSE 19
85#define GHCB_INFO_SNP_PAGE_STATE_CHANGE_REQUEST 20
86#define GHCB_INFO_SNP_PAGE_STATE_CHANGE_RESPONSE 21
87#define GHCB_HYPERVISOR_FEATURES_REQUEST 128
88#define GHCB_HYPERVISOR_FEATURES_RESPONSE 129
89#define GHCB_INFO_TERMINATE_REQUEST 256
91#define GHCB_TERMINATE_GHCB 0
92#define GHCB_TERMINATE_GHCB_GENERAL 0
93#define GHCB_TERMINATE_GHCB_PROTOCOL 1
99#define MSR_SEV_STATUS 0xc0010131
124 UINT32 Reserved2 : 29;