Skip to main content

Module snp

Module snp 

Source
Expand description

SEV-SNP launch helpers.

vmsa_from_initial_regs is used by the shared direct-boot loader for SNP backends, including KVM and MSHV. state_from_vmsa is currently used by KVM to apply the loader-built VMSA through KVM’s register-based launch path; MSHV imports the VMSA page directly.

Structs§

SnpVmsaConfig
Configuration for a direct-boot SNP VMSA.
SnpVmsaState
The subset of initial VP state represented by a direct-boot SNP VMSA.

Enums§

SnpVmsaError
An error parsing a direct-boot SNP VMSA.

Functions§

snp_id_auth
Builds the PSP ID authentication page for id_block.
snp_id_block
Builds the PSP ID block for id_block and the launch policy.
state_from_vmsa
Parses and validates a direct-boot SNP VMSA.
vmsa_from_initial_regs
Builds the direct-boot SNP VMSA corresponding to initial.