Module snp

Source
Expand description

AMD SEV-SNP specific definitions.

Structs§

GhcbHypercallParameters
Struct representing GHCB hypercall parameters. These are located at the GHCB page starting at GHCB_PAGE_HYPERCALL_PARAMETERS_OFFSET.
GhcbInfo
GhcbMsr
GhcbUsage
GuestFieldSelect
Indicate which guest-selectable fields will be mixed into the key. See GUEST_FIELD_SELECT in Table 19, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.
HvPspCpuidLeaf
PSP data structures.
HvPspCpuidPage
MovCrxDrxInfo
SevEventInjectInfo
SevExitCode
SevFeatures
SevInvlpgbEcx
SevInvlpgbEdx
SevInvlpgbRax
SevIoAccessInfo
SevNpfInfo
SevRmpAdjust
SevSelector
A X64 selector register.
SevStatusMsr
SevVirtualInterruptControl
SevVmsa
SEV VMSA structure representing CPU state
SevXmmRegister
An X64 XMM register.
SnpDerivedKeyReq
Request structure for the SNP_GET_DERIVED_KEY request. See MSG_KEY_REQ in Table 18, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.
SnpDerivedKeyResp
Response structure for the SNP_GET_DERIVED_KEY request. See MSG_KEY_RSP in Table 20, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.
SnpPageInfo
Structure describing the pages being read during SNP ID block measurement. Each structure is hashed with the previous structures digest to create a final measurement
SnpPageType
The type of page described by SnpPageInfo
SnpPspIdBlock
Structure containing the completed SNP measurement of the IGVM file. The signature of the hash of this struct is the id_key_signature for igvm_defs::IGVM_VHS_SNP_ID_BLOCK.
SnpReport
Report structure. See ATTESTATION_REPORT in Table 22, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.
SnpReportReq
Request structure for the SNP_GET_REPORT request. See MSG_REPORT_REQ in Table 21, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.
SnpReportResp
Response structure for the SNP_GET_REPORT request. See MSG_REPORT_RSP in Table 24, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.

Enums§

Vmpl

Constants§

GHCB_DATA_PAGE_STATE_LARGE_PAGE
GHCB_DATA_PAGE_STATE_MASK
GHCB_DATA_PAGE_STATE_PRIVATE
GHCB_DATA_PAGE_STATE_PSMASH
GHCB_DATA_PAGE_STATE_SHARED
GHCB_DATA_PAGE_STATE_UNSMASH
GHCB_PAGE_HYPERCALL_OUTPUT_OFFSET
GHCB_PAGE_HYPERCALL_PARAMETERS_OFFSET
HV_PSP_CPUID_LEAF_COUNT_MAX
REG_TWEAK_BITMAP_OFFSET
REG_TWEAK_BITMAP_SIZE
SEV_INTR_TYPE_EXCEPT
SEV_INTR_TYPE_EXT
SEV_INTR_TYPE_NMI
SEV_INTR_TYPE_SW
SNP_DERIVED_KEY_SIZE
See DERIVED_KEY in Table 20, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.
SNP_GUEST_REQ_MSG_VERSION
Value for the msg_version member in SNP_GUEST_REQ_MSG_VERSION. Use 1 for now.
SNP_REPORT_DATA_SIZE
Size of report_data member in SnpReport.
SNP_REPORT_RESP_DATA_SIZE
SNP_REPORT_SIZE
Size of the SnpReport.