AMD SEV

AMD Secure Encrypted Virtualization (SEV) is a hardware-based confidential computing technology developed by AMD Corporation that encrypts virtual machines in memory

circle-info

AMD Secure Encrypted Virtualization technology provides confidentriality of Virtual Machine during runtime, and - EPYC3 or newer - integrity of the running workload against the hypervisor.

Prerequisites

Before enabling SEV, ensure he following requirements are met.

CPU Support

Feature
Minimum EPYC Generation

SEV

EPYC 7001 (Naples)

SEV-ES

EPYC 7002 (Rome)

SEV-SNP

EPYC 7003 (Milan)

SEV-SNP + TIO

EPYC 7004 (Genua)

Check your CPU

lscpu

BIOS Version

  • Update to the latest BIOS firmware

  • Update PSP firmware

  • Reset BIOS to defaults after update (recommended)

SEV-SNP especially requires modern firmware.

Step-by-Step: Enable SEV in BIOS

triangle-exclamation

Step 1 — Enter BIOS

  1. Reboot the server

  2. Press one of the following during boot

    • DEL

    • F2

    • F10

    • ESC

(depending on vendor)

Step 2 — Enable SVM Mode

Navigate to

Set

SVM (Secure Virtual Machine) must be enabled before SEV can be used.

Step 3 — Enable SEV

Navigate to

Set

Step 4 — Enable SEV-ES (EPYC2)

circle-info

SEV-ES encrypts CPU register state.

If available

Step 5 — Enable SEV-SNP (EPYC3+)

circle-info

SEV-SNP protects a virtual machine not only by encrypting its memory, but also by ensuring memory integrity and ownership validation.

If supported

Sometimes called

  • Secure Nested Paging

  • SNP

  • SEV Secure Nested Paging

  • Memory Encryption → SNP

Additional Required BIOS Settings

Some systems require the following to be enabled

Verify SEV in Linux

After booting into Linux, check

Expected output

Also verify

And

If output is

SEV is enabled in KVM.

Troubleshooting

Problem
Possible Cause
Solution

SEV not visible

Old BIOS

Update BIOS

SEV-ES missing

CPU too old

Check EPYC generation

SEV-SNP missing

PSP firmware outdated

Update firmware

VM fails to start

IOMMU disabled

Enable IOMMU

Last updated

Was this helpful?