Confidential VMs (CVMs) like AMD SEV-SNP and process enclaves like Intel SGX both protect cloud workloads, but they differ sharply in trust, cost, isolation, and programmability. Nesting enclaves inside a CVM could combine their strengths, yet SGX has long suffered from weak intra-enclave protection, costly transitions, slow cloning, and a restrictive model for library OSes.

The paper introduces TEEVisor, a CVM-resident security monitor plus kernel driver that uses SEV-SNP's Virtual Machine Privilege Levels to create hardware-protected, process-level enclaves inside a guest CVM. It runs in two modes: one that is binary-compatible with existing SGX applications, and an extended SGX (eSGX) mode that optimizes slow paths and offers richer enclave programming.

On commercial AMD EPYC hardware, TEEVisor adds under 5% overhead for compute- and memory-bound workloads and about 12% for I/O-heavy applications, while accelerating enclave cloning to 93 µs per MB of enclave size. The authors argue these results show eSGX semantics inside a CVM are practical for production use, addressing long-standing SGX limitations without sacrificing compatibility.