Inferensys

Glossary

AMD SEV

AMD Secure Encrypted Virtualization (SEV) is a hardware-based security feature for AMD EPYC processors that encrypts a virtual machine's memory with a unique, VM-specific key to protect it from a compromised hypervisor or other VMs on the same host.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
SECURE ENCLAVE EXECUTION

What is AMD SEV?

AMD Secure Encrypted Virtualization (SEV) is a hardware-based security feature for AMD EPYC server processors that encrypts a virtual machine's memory using a unique, VM-specific key, isolating it from the hypervisor and other VMs on the same host.

AMD Secure Encrypted Virtualization (SEV) is a set of security extensions built into AMD EPYC CPUs. Its primary function is to provide memory encryption for virtual machines (VMs). Each VM is assigned a unique encryption key by the processor's secure hardware, making its memory contents inaccessible to the hypervisor, other VMs, or any malicious software with high-level system privileges. This transforms the hypervisor from a trusted component into a potentially untrusted one, significantly reducing the attack surface for multi-tenant cloud environments.

SEV is a cornerstone of confidential computing, enabling Confidential VMs (CVMs). It protects data in use, complementing encryption for data at rest and in transit. The technology includes Secure Nested Paging (SNP) to prevent hypervisor-based memory integrity attacks and supports remote attestation, allowing a remote party to cryptographically verify that a VM is running securely on genuine SEV hardware. This makes SEV critical for secure, multi-tenant cloud infrastructure and for isolating sensitive workloads like AI agent tool execution.

CONFIDENTIAL COMPUTING

Key Features of AMD SEV

AMD Secure Encrypted Virtualization (SEV) is a hardware-based security feature set for AMD EPYC processors that encrypts a virtual machine's memory with a unique, VM-specific key, isolating it from the hypervisor and other VMs.

01

Transparent Memory Encryption

AMD SEV provides transparent memory encryption for virtual machines. Each VM is assigned a unique encryption key, generated and managed by the secure AMD Secure Processor (ASP). This key is used by the on-die Memory Controller to automatically encrypt all data written to RAM and decrypt it upon reading, making the encryption process invisible to the guest OS and applications.

  • Key Isolation: The hypervisor never has access to the VM's memory encryption keys.
  • Hardware-Based: Encryption/decryption occurs in the memory controller, minimizing performance overhead.
  • Protection Scope: Encrypts the entire VM state in memory, including CPU registers (with SEV-ES and SEV-SNP).
02

Secure Encrypted Virtualization with Encrypted State (SEV-ES)

SEV-ES extends base SEV by adding protection for the CPU register state. When a VM is interrupted (e.g., for I/O), the hypervisor must save its register context. SEV-ES encrypts this register state before the hypervisor can access it, closing a significant attack vector.

  • Register Protection: Encrypts guest register state (RAX, RBX, etc.) on a #VC (VMM Communication) exception.
  • Hypervisor Blindness: The hypervisor handles an encrypted blob of register data, preventing it from reading or manipulating the VM's execution state.
  • Minimal Guest Modifications: Requires paravirtualized drivers in the guest OS to handle the secure communication protocol.
03

Secure Nested Paging (SEV-SNP)

SEV-SNP is the most advanced iteration, introducing strong integrity protections to prevent hypervisor-based attacks like data replay, memory re-mapping, and corruption. It adds hardware-enforced Reverse Map (RMP) tables and guest page validation.

  • Memory Integrity: Guarantees that encrypted memory pages have not been altered, swapped, or replayed by a malicious hypervisor.
  • Isolated Execution Environment: Protects against attestation replay attacks by cryptographically tying a VM's launch measurement to its current state.
  • Foundation for Confidential VMs: SEV-SNP is the basis for Confidential VMs (CVMs) in major cloud platforms like Google Cloud Confidential Computing and Microsoft Azure Confidential VMs.
04

Remote Attestation

A critical feature for deploying SEV-protected workloads in untrusted environments (e.g., public cloud). Remote Attestation allows a remote party to cryptographically verify the integrity and security state of a VM running on SEV hardware.

  • Proof of Launch: The verifier receives a signed report from the AMD Secure Processor (ASP) containing a measurement of the VM's initial state (firmware, bootloader, kernel).
  • Trust Chain: This measurement is rooted in the hardware's fused-in certificate, establishing a chain of trust from the silicon to the launched software.
  • Runtime Reporting: With SEV-SNP, attestation reports can also include runtime measurements, proving the VM is running with integrity protections active.
05

Reduced Trusted Computing Base (TCB)

A primary security goal of AMD SEV is to dramatically shrink the Trusted Computing Base (TCB). The TCB is the set of software/hardware that must be trusted for the system to be secure.

  • Traditional VM: TCB includes the entire hypervisor, host OS, and firmware.
  • SEV-Protected VM: The TCB is reduced to the AMD Secure Processor (ASP) silicon and the guest VM's own software. The hypervisor is removed from the TCB.
  • Security Benefit: This architecture mitigates risk from hypervisor vulnerabilities, compromised host administrators, and malicious co-tenants on the same physical server.
06

Hypervisor Transparency & Minimal Guest Modifications

AMD SEV is designed for practical deployment. It requires minimal changes to the hypervisor and guest operating system, especially with later generations (SEV, SEV-ES).

  • Hypervisor Role: The hypervisor retains its management functions (scheduling, resource allocation) but is blinded to VM memory and register content.
  • Guest OS Support: Base SEV often requires no guest OS changes. SEV-ES and SEV-SNP require paravirtualized drivers (e.g., sev-guest driver in Linux) to handle secure communication with the ASP.
  • Compatibility: Enables the protection of unmodified, legacy applications within an encrypted VM, a key advantage for enterprise lift-and-shift scenarios to confidential computing clouds.
HARDWARE-BASED ISOLATION

How AMD SEV Works

AMD Secure Encrypted Virtualization (SEV) is a processor-level security feature that encrypts a virtual machine's memory using a unique, hardware-generated key to protect it from a compromised hypervisor and other VMs.

AMD SEV works by integrating a dedicated security processor, the AMD Secure Processor (ASP), into the EPYC CPU. For each virtual machine, the ASP generates a unique AES encryption key, which is never exposed to the hypervisor or system software. All VM memory pages are transparently encrypted and decrypted by the on-die memory controller as data moves between the CPU and RAM. This creates a hardware-enforced boundary where even a malicious or compromised hypervisor cannot access a protected VM's memory in plaintext.

The technology extends to SEV-Encrypted State (SEV-ES), which also encrypts the CPU register state during hypervisor transitions, and SEV-Secure Nested Paging (SEV-SNP), which adds integrity protection to prevent malicious hypervisor memory remapping attacks. Remote Attestation allows a remote party to cryptographically verify that a VM is running on genuine SEV hardware with a specific initial state. This enables Confidential Computing scenarios in cloud environments, where a tenant's workload and data remain encrypted during processing, inaccessible to the cloud provider's infrastructure software.

AMD SECURE ENCRYPTED VIRTUALIZATION

Frequently Asked Questions

AMD Secure Encrypted Virtualization (SEV) is a critical hardware security feature for confidential computing. These FAQs address its core mechanisms, use cases, and how it compares to other trusted execution environments.

AMD Secure Encrypted Virtualization (SEV) is a hardware-based security feature on AMD EPYC processors that encrypts a virtual machine's (VM) memory with a unique, VM-specific key generated by the processor's secure hardware, isolating it from the hypervisor and other VMs. It works by integrating a dedicated security processor, the AMD Secure Processor (ASP), into the System-on-a-Chip (SoC). When SEV is enabled, the ASP generates a unique encryption key for each VM. All memory pages belonging to that VM are transparently encrypted by the memory controller as they leave the CPU die for RAM, and decrypted when read back. The hypervisor manages VM scheduling and memory allocation but cannot access the plaintext data or the VM's encryption key, which never leaves the secure hardware. This creates a hardware-rooted trust boundary that protects VM confidentiality and integrity from a compromised hypervisor, a threat model known as the 'malicious cloud provider'.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.