Back to Articles

Confidential Computing: SEV-SNP and TDX

Contents

What Confidential Computing Is

Confidential computing is a set of hardware features that create a trust boundary around a VM: the guest's memory is encrypted with keys the hypervisor does not hold, and the platform can attest — cryptographically prove to a remote party — exactly what is running inside. The two properties that matter:

  • Confidentiality and integrity. A malicious or compromised hypervisor cannot read or tamper with the guest's memory.
  • Attestation. A remote verifier can confirm the guest is running the expected code on a genuine, trusted platform before handing it secrets.

The defining change of mental model: you stop trusting the hypervisor. That is a big shift for infrastructure teams whose whole job has been to run and trust the hypervisor.

The Threat Model It Closes

Confidential computing does not make a guest invulnerable — it closes a specific class of threat. The threats it addresses:

  • A compromised hypervisor or host OS reading VM memory.
  • A malicious insider with host-level access (a cloud operator, a rogue admin) exfiltrating tenant data from memory.
  • A malicious co-tenant attacking a shared host's memory.

What it does not address, and what teams consistently over-assume it does:

  • Vulnerabilities inside the guest (a compromised guest app still exposes its own data).
  • Side-channel attacks that leak through timing, power, or cache behavior (SEV-SNP and TDX harden against many, but side channels are an arms race).
  • Availability — the host can still deny service, because it still schedules the VMs.
HOST / HYPERVISOR — UNTRUSTED cannot read what's inside the boundary Cloud operator / rogue admin Co-tenant VM blocked blocked ENCRYPTED VM keys held by the CPU, not the host Guest OS + App compromised guest app still exposed — already inside

The hardware boundary stops the hypervisor and a co-tenant from reading VM memory — that's what "blocked" means above. It doesn't stop a bug inside the guest itself: a compromised guest app never has to cross the boundary, because it's already on the trusted side of it.

Spectre and Meltdown: What Actually Changed

Quick detour, because "side channels are an arms race" deserves an example. Back in January 2018, researchers found two big problems with how modern CPUs work. Both come from the same source: to run faster, your processor guesses ahead. It looks at your code, guesses which path it's about to take, and starts running that path before it even knows if the guess is right. If the guess was wrong, it throws the work away. Sounds harmless — except the "throwaway" work still leaves traces in the CPU's cache on the way, and an attacker can measure those traces to figure out what the CPU was peeking at.[6][7]

  • Meltdown used this trick to read memory it had no business reading — kernel memory, from an ordinary user program. The good news: this one's basically fixed. Intel and AMD redesigned newer chips so the permission check happens before the guessing, not after. The old fix — a software patch called kernel page-table isolation — slowed everything down, and you don't need it on current hardware anymore.
  • Spectre is trickier, and it isn't fixed — just managed. Instead of skipping a permission check, it tricks a program into leaking its own secrets through that same guessing-ahead behavior. The catch is that "guessing ahead" is the whole reason CPUs are fast, so you can't just switch it off. Chip makers patch around it instead, and new variants keep turning up: Intel disclosed two more in May 2025, hitting CPUs as recent as Raptor Lake Refresh — the generation shipping right now.[8]

So where does that leave SEV-SNP and TDX? They do their job — a hypervisor or another tenant genuinely can't read your VM's memory anymore. But they don't touch speculative execution, and they were never built to fix Spectre. Intel and AMD patch that separately, the same way they did before confidential computing existed.

AMD SEV-SNP

AMD's SEV (Secure Encrypted Virtualization) encrypts guest memory with per-VM keys. SEV-SNP (Secure Nested Paging) adds the parts that make it a real confidential-computing platform rather than "encryption only"[1]:

  • Memory integrity. Encryption alone stops the host from reading guest memory, but the host still decides which physical memory a guest address points at — so it could quietly point the guest back at a stale copy of a page it already replaced, or point two different guest addresses at the same physical page and watch one of them change the other. Secure nested paging closes that: the hardware records which guest owns each page of physical memory and rejects accesses that don't match, so what the guest reads back is what the guest wrote. Those are the remapping and aliasing attacks, and they are the reason SEV-SNP exists on top of plain SEV encryption.
  • Attestation. On request, the guest produces an attestation report — a measurement of what was actually loaded into that VM, signed by a separate security processor built into the AMD chip that the host has no control over. A remote party checks that signature against AMD's published keys. If it verifies, the report genuinely came from AMD silicon running a real SEV-SNP guest, rather than from a host that is only claiming to offer one.

SEV-SNP requires an AMD EPYC processor that supports SNP, with the feature enabled in firmware/BIOS, and a hypervisor that supports it (KVM/QEMU, and later vSphere builds[5]).

Intel TDX

Intel's TDX (Trust Domain Extensions) is the Intel answer, with a similar shape: a trust domain is a VM isolated from the hypervisor, with encrypted, integrity-protected memory and remote attestation backed by the platform. The philosophy is the same as SEV-SNP — hardware-enforced isolation of the guest from the host — implemented on Intel silicon (Sapphire Rapids and later).[2]

AMD SEV-SNPIntel TDX
VendorAMDIntel
Core mechanismPer-VM memory encryption + secure nested pagingTrust domains isolated from the hypervisor
AttestationSigned report via AMD secure processorSigned quote via TDX module
RequiresEPYC with SNP enabled; supported hypervisorIntel TDX-capable CPU; supported hypervisor

Check your exact CPU and hypervisor. Both technologies are gated by specific processor SKUs, firmware/BIOS settings, and hypervisor support — and the support matrix changes by generation and release. The descriptions here are the architecture; before you plan a deployment, confirm your exact CPU supports the feature, that the BIOS exposes it, and that your hypervisor version enables it. "SEV" and "SEV-SNP" are not the same, and not every EPYC that does SEV does SNP.

A Worked Example: Enabling SEV-SNP on a VM

The shape of the workflow on a KVM/libvirt host with an SNP-capable EPYC. The exact XML and flags vary by libvirt/QEMU version.

  1. Confirm the host supports it. The host should report SNP capability:
# Check the host for SEV/SEV-SNP capability
dmesg | grep -i sev
virsh capabilities | grep -i sev
  1. Define the VM with a confidential launch. In the VM's libvirt domain XML, add the launchSecurity element[3] for SEV-SNP (or SEV-ES on older platforms):
<domain>
  <launchSecurity type='sev-snp'>
    <policy>0x30000</policy>
  </launchSecurity>
  ...
</domain>
  1. Boot and verify from inside the guest. The guest kernel should report memory encryption is active[4]:
# Inside the guest — confirm encrypted memory is in use
dmesg | grep -i "SEV\|memory encryption"
  1. Attest the guest before trusting it with secrets. In a real deployment, a remote service requests an attestation report and verifies it against AMD's keys before delivering secrets. This is the step that turns "encrypted" into "provably what I think it is."

Rule of Thumb: Adopt confidential computing for the workloads whose memory is the sensitive asset — regulated data, secrets-management infrastructure, multi-tenant services you must isolate from your own operators — and skip it for single-tenant on-premises workloads where you already trust your admins and your hypervisor. It is a specific answer to a specific threat model, not a general hardening default, and the operational cost is real. You have to build and run something that requests attestation reports, checks them, and withholds secrets from any guest whose report doesn't verify — that service becomes production infrastructure you now own. And the routine hypervisor operations that work by reading guest memory, live migration and memory snapshots above all, either need explicit support for encrypted VMs or stop being available to you, because the host can no longer simply copy those memory pages somewhere else in readable form.

Make Attestation an Operating Control

Memory encryption answers only half of the trust question. The relying service also needs evidence that the workload booted with the expected firmware, policy, and code before it releases a key or sensitive input.

  • Define which measurements and security-version values are acceptable, who approves a new value after patching, and how long that approval remains valid.
  • Fail a measurement deliberately and confirm the key broker denies the request. A dashboard showing attestation succeeded once does not prove enforcement.
  • Patch firmware and the guest image in a test ring. Confirm how measurements change and how the new approved state reaches every verifier without creating an outage.
  • Document the degraded path. Decide whether an attestation-service outage stops new workloads, permits a time-limited cached decision, or invokes a manual exception.

Trust boundary: if the application receives its decryption key before attestation is checked, confidential-computing hardware has not protected the release decision. Put the policy check on the key path.

When It Matters (and When It Doesn't)

The decision is threat-model-driven, not "security best practice" driven:

ScenarioConfidential computing?
Multi-tenant public cloud, regulated tenant dataYes — it is the strongest available isolation from the cloud operator
Secrets-management or key-holding infrastructureYes — protect the keys even from host-level compromise
Single-tenant on-prem, trusted admins, trusted hypervisorUsually no — the threat it closes is not the threat you have
Performance-critical workloads with frequent migration/snapshotWeigh carefully — attestation and encrypted memory add operational friction

Confidential computing protects guest memory from parts of the infrastructure and its operators. That is a narrow threat model with real value for some workloads and real operational cost. Require it when that isolation appears in the threat model; do not make it a general hardening checkbox.


References

  1. AMD — "AMD SEV-SNP" and "Secure Encrypted Virtualization" documentation: the SNP feature set and attestation model. AMD Technical Documentation, current.
  2. Intel — "Intel Trust Domain Extensions (TDX)" documentation: trust domains, isolation, and attestation. Intel Technical Documentation, current.
  3. QEMU/libvirt — "Confidential guest support" documentation: launchSecurity configuration for SEV/SEV-SNP/TDX. libvirt Documentation, current.
  4. Linux kernel — "AMD Memory Encryption" and "Confidential Computing" documentation. Linux kernel documentation, current.
  5. VMware/Broadcom — "Confidential VMs on vSphere" documentation (for the vSphere-supported path). Broadcom Technical Documentation, current.
  6. Kocher, P., Horn, J., Fogh, A., et al. — "Spectre Attacks: Exploiting Speculative Execution." 40th IEEE Symposium on Security and Privacy (S&P), 2019 (originally disclosed January 2018).
  7. Lipp, M., Schwarz, M., Gruss, D., et al. — "Meltdown: Reading Kernel Memory from User Space." 27th USENIX Security Symposium, 2018.
  8. ETH Zurich, COMSEC Group — Branch Predictor Race Condition (BPRC) and Branch Privilege Injection (BPI) disclosures, affecting Intel CPUs from Coffee Lake Refresh through Raptor Lake Refresh. Reported May 2025.
← Back to Articles ← Previous: CXL and Memory Pooling Next: Post-Quantum Cryptography →