Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Confidential Virtual Machine (CVM)

CNCF Confidential Containers

A Confidential Virtual Machine (CVM) is a virtual machine that runs inside a hardware Trusted Execution Environment (TEE), protecting the guest’s memory and execution from inspection or tampering by the hypervisor, host OS, and other privileged software.

CVMs impose the least restrictions of any CC deployment model: existing applications run unmodified inside a CVM, with no code changes required.

Confidential Virtual Machine architecture

References: Red Hat — Introduction to Confidential Virtual Machines, Edgeless Systems — CVMs


CVM Threat Model

The untrusted components include the host OS, KVM hypervisor, other VMs on the same host, other processes on the host machine.

Application code vulnerabilities, availability attacks, and software TEEs are out of scope.

What a CVM Protects

CVMs provide workload confidentiality. The data in use is isolated from higher-privilege layers:

LayerCan it read CVM memory?
Hypervisor✗ No
Host OS✗ No
Host administrators✗ No
DMA-capable host devices✗ No
Other VMs on the same host✗ No
Guest OS (within the CVM)✔ Yes
The workload itself✔ Yes
CVM protections

What CVMs Do NOT Protect Against


Memory Encryption

The hardware memory controller transparently encrypts all guest physical memory pages with a key held inside the CPU. The hypervisor sees only ciphertext when it accesses guest memory.

AMD SEV-SNP uses a dedicated processor called AMD Secure Processor (ASP), also known as AMD Platform Security Processor or PSP, to manage its security features. ASP is an ARM-based processor separated from the main x86 cores but directly integrated into the CPU die, creating a hardware root-of-trust. The ASP securely manages SEV-SNP VM encryption keys and the reverse map table to ensure the integrity of the guest address translation.

Intel introduces two new components: a new CPU operation mode Secure Arbitration Mode (SEAM), and special trusted software the TDX module. A Trust Domain (TD) is a virtual machine that runs in a secure environment under the control of the TDX module.

Data at rest in a CVM also requires protection — the host controls storage access, so full disk encryption (e.g., LUKS) is mandatory for any sensitive data persisted to disk.


Boot Chain Security

A critical risk in CVMs: even with memory encryption, a malicious host could swap binaries before they are loaded into protected memory. Every executable must therefore be authenticated before execution.

UEFI Secure Boot

Secure Boot ensures only vendor-signed code executes during boot:

Unified Kernel Image (UKI)

A UKI bundles the kernel, initramfs, and kernel command line into one signed UEFI binary, extending trust to components that were previously unsigned:

ComponentStandard BootUKI
Kernel✔ Signed✔ Signed
initramfs✗ Unsigned✔ Signed (part of UKI)
Kernel command line✗ Unprotected✔ Signed (part of UKI)

Trade-offs: the initramfs and kernel command line are fixed at build time — they cannot be modified dynamically (e.g., root= cannot be set at runtime).

Measured Boot and the Root Volume Key

Even with Secure Boot, a signed kernel could be paired with a crafted initramfs to extract a volume decryption key. The solution is PCR-gated key unsealing:

  1. Each boot component extends a PCR register: PCR_new = SHA256(PCR_old || component_hash)

  2. The volume decryption key is sealed to a TPM policy requiring specific PCR values

  3. The hardware evaluates the policy — if any boot component changed, PCRs differ and the key is not released

  4. A compromised guest OS cannot circumvent this because the hardware enforces it

Key PCRs for CVMs:

PCRWhat it covers
PCR4Boot manager code and boot attempts
PCR7Secure Boot policy (PK/KEK/db/dbx + the db entry used to authorize each loaded image)
PCR11 (UKI via systemd-stub)Kernel, initramfs, command line, all UKI sections

The vTPM Role

A virtual TPM backed by hardware (rather than managed by the hypervisor) enables:

When the vTPM is placed inside the TEE (via SVSM on AMD SEV-SNP, or natively on Azure CVMs), the hypervisor is completely excluded from the trust chain.


Remote Attestation for CVMs

The hardware generates a signed attestation report containing the boot measurements. A remote party can use this to verify:

  1. The VM is genuinely running inside a hardware TEE (not a software simulation)

  2. The correct guest OS was booted (measurements match expected values)

  3. The hardware is at the required firmware/patch level


Hardware Technologies

All major CPU vendors support CVMs.

VendorTechnology
AMDSEV-SNP
AMDSEV-ES
AMDSEV
IntelTDX
IBM ZSecure Execution
IBM PowerProtected Execution Facility (PEF)
ARMCCA (Confidential Compute Architecture)
RISC-VCoVE (Confidential VM Extensions)

Cloud Availability

CloudTechnologyStatus
Microsoft AzureAMD SEV-SNPGA
Microsoft AzureIntel TDXGA
Google CloudAMD SEV-SNPGA
Google CloudIntel TDXGA
AWSAMD SEV-SNPGA
IBM CloudIBM Secure ExecutionGA
IBM CloudAMD SEV-SNPGA
IBM CloudIntel TDXGA

Performance and Operational Considerations

A common first question: what does the encryption cost? The honest answer is “usually little, but it depends on the workload”, and the overhead is rarely where people expect it. Published measurements cluster around 5% overall: across nearly 200 benchmarks on Azure EPYC 9005 confidential VMs, Phoronix measured SEV-SNP guests at 95% of the performance of regular VMs, and Intel’s own testing of TDX on 4th Gen Xeon concludes roughly 5% for CPU- and memory-intensive workloads.

Runtime overhead

Always benchmark your workload; published numbers vary widely with kernel version, I/O pattern, and hardware generation, and the worst numbers above come from deliberately unfavorable configurations (saturated vCPUs, undersized database buffers).

References: Performance Considerations of Intel TDX on 4th Gen Xeon (Intel), Confidential Computing Performance with AMD SEV-SNP on Google Cloud N2D (AMD), AMD EPYC 9005 SEV-SNP benchmarks (Phoronix), Evaluating Intel TDX for Production Workloads (OpenMetal)

Boot and startup latency

Operational restrictions


CVMs as the Foundation for CoCo

CVMs are Pillar 1 of the Confidential Computing stack. The CNCF Confidential Containers (CoCo) project builds directly on CVMs:

The chapters that follow cover how CoCo build on this foundation.