Files
cloud-hypervisor/docs/amd_sev_snp.md
Wei Liu 2a3512fb71 docs: update SEV-SNP build information
sev_snp no longer selects a hypervisor backend implicitly.

Assisted-by: Copilot:GPT-5.5
Signed-off-by: Wei Liu <liuwe@microsoft.com>
2026-07-06 23:29:52 +00:00

1.5 KiB

AMD SEV-SNP

AMD Secure Encrypted Virtualization & Secure Nested Paging (SEV-SNP) is an AMD technology designed to add strong memory integrity protection to help prevent malicious hypervisor-based attacks like data replay, memory-remapping and more in order to create an isolated execution environment. Here are some useful links:

  • SNP Homepage: more information about SEV-SNP technical aspects, design and specification.

Cloud Hypervisor support

A machine with AMD SEV-SNP support which is enabled in the BIOS is required.

On the Cloud Hypervisor side, build the project with the sev_snp and igvm and the hypervisor backend you want to use. For the MSHV SEV-SNP build:

cargo build --no-default-features --features "mshv,sev_snp,igvm"

Change mshv to kvm for the KVM backend. You can enable both at the same time.

Note Please note that sev_snp cannot be enabled in conjunction with the tdx feature flag.

SEV-SNP is also supported on KVM with an IGVM stage0 image and a guest kernel provided through fw_cfg. Build that configuration with:

cargo build --no-default-features --features "kvm,igvm,sev_snp,fw_cfg"

You can run a SEV-SNP VM using the following command:

./cloud-hypervisor \
     --platform sev_snp=on \
     --cpus boot=1 \
     --memory size=1G \
     --disk path=ubuntu.img

For more information related to Microsoft Hypervisor, please see mshv.md.