This episode covers confidential computing: Intel Trust Domain Extensions (TDX) and Software Guard Extensions (SGX), still experimental in Cloud Hypervisor, the direction of confidential VMs, and how attestation/quote works to verify that workloads run in a trusted environment. You'll also learn the limitations and hardware requirements.

So far we've assumed the host is a trusted party. But what if it isn't? In the public cloud, you rent a VM on a server owned by someone else — who guarantees the cloud admin can't read your VM's memory? This is the problem confidential computing answers: guest memory is encrypted at the CPU level so that even the host can't read it.
In episode 14 we cover two Intel technologies — TDX (Trust Domain Extensions) and SGX (Software Guard Extensions) — which Cloud Hypervisor supports experimentally, plus the attestation mechanism for proving that a VM runs in a genuinely trusted environment.
In the traditional security model, the hypervisor/host is considered trusted: it can read VM memory because it allocates it. Confidential computing changes this model: VM memory is encrypted with a key only the CPU knows, so the host (including its kernel, drivers, and admins) can only see ciphertext. If the host tries to read VM memory, all it gets is encrypted data it can't decrypt.
This matters for workloads like AI models with sensitive data, encryption keys, or medical data in the public cloud.
TDX and SGX take different paths:
In the Cloud Hypervisor context, TDX is more relevant because it fits the "entire VM protected" model. SGX is better suited for isolation at the application process level.
TDX support in Cloud Hypervisor is experimental. The architecture: Cloud Hypervisor acts as the VMM for the non-confidential parts (devices), while the confidential part (vCPU, memory) is handled by TDX hardware. Trust Domain memory is encrypted automatically; the VMM can only access allowed regions.
Hardware prerequisites:
grep -o "tdx" /proc/cpuinfo | head -1
ls /dev/tdx_guest /dev/tdx_host 2>/dev/nullThis feature only exists on certain Intel CPU generations (Sapphire Rapids and later), and the host must enable TDX in the BIOS and load the related kernel modules.
Booting a TDX VM is basically the same, with dedicated firmware and flags:
cloud-hypervisor \
--firmware tdx-firmware.fd \
--kernel kernel-tdx \
--disk path=os.raw \
--cpus boot=4 \
--memory size=4G \
--tdx--tdx marks the VM as a Trust Domain. Inside the guest, a TDX-aware kernel sees the encrypted memory transparently — applications don't need changes, because encryption happens in hardware.
Warning
TDX/SGX are still experimental in Cloud Hypervisor — not for production. Use them in a lab with the right CPUs, follow the release guidance, and note that support can change significantly between versions. This isn't a replacement for standard access control; it complements your defenses.
SGX works at the application enclave level, not the whole VM. In Cloud Hypervisor, SGX support lets a guest run applications with hardware-protected enclaves — the host can't read enclave memory.
grep -o "sgx" /proc/cpuinfo | head -1Common SGX use cases: key management, virtual HSMs, and multi-party computation. Because the enclave is inside the guest, the threat from the host is still addressed, but the enclave remains vulnerable to a compromised guest kernel — which is why the TDX + SGX combination is often considered the strongest.
Memory encryption alone isn't enough — how do you know the memory is really encrypted and the VM runs on a legitimate CPU? The answer is attestation: the process of generating a quote — cryptographic proof from the CPU that the environment is running as promised.
VM boot → CPU menghasilkan quote (tanda tangan hardware)
↓
Quote dikirim ke verifier (bisa lokal atau cloud provider)
↓
Verifier memeriksa quote terhadap kebijakan (policy)
↓
Jika valid → kunci/setup dipercaya untuk memulai workloadThe quote is signed with a key embedded in the CPU and is only valid for a specific configuration. Inside the guest, this mechanism is exposed through a tool or library:
tdx-attest --quote /tmp/quote.binThe verifier checks several things: the CPU's identity (via the quote signature), the measurement of the image/firmware, and the allowed policy. After the quote is verified, you can be confident the VM's memory can't be read by the host before you send sensitive data.
Tip
The practical pattern for trusted workloads: "verify before trust" — an application only sends data or accepts keys after attestation succeeds. This pattern is commonly used for extended protocols like TLS (remote attestation) in the confidential cloud.
Key takeaways:
In the next episode, episode 15, we'll run Windows guests in Cloud Hypervisor — booting Windows 10/Server via UEFI (CLOUDHV.fd), installing virtio drivers, the differences between upstream edk2 and the CLOUDHV fork (especially on AArch64), and best practices for stable Windows on virtio. From Linux, we jump into the Windows world!