Introduction
In modern cloud computing environments, the hypervisor serves as the primary isolation mechanism between different users' virtual machines (VMs). However, popular hypervisors like Xen have grown significantly in complexity, with Xen 4.0 encompassing approximately 270,000 lines of code. This "bloated hypervisor" problem creates a massive attack surface where a vulnerability in a non-essential component, such as a legacy driver, can compromise the entire system's security. This paper introduces SplitVisor, a nested virtualization architecture designed to achieve a small, stable Trusted Computing Base (TCB) without sacrificing functionality.
Architecture
The core innovation of SplitVisor is the use of nested virtualization to decouple security-critical isolation from complex management features. The architecture organizes the system into a three-layer hierarchy:
- SplitVisor (L0 Layer): This is the only component within the TCB. It runs in the processor's highest privilege mode (VMX root mode) and is responsible solely for CPU isolation, memory isolation via Extended Page Tables (EPT), and managing mode transitions. Its narrow scope ensures it remains small and stable.
- GuestVisor (L1 Layer): Each VM is assigned its own dedicated GuestVisor. This layer handles resource-intensive tasks such as hardware emulation, VM lifecycle management, and optional security features like I/O encryption.
- The VM (L2 Layer): The user's operating system runs atop the GuestVisor.
By moving management logic into per-VM GuestVisors, SplitVisor ensures that a compromise in one management component does not affect other users or the underlying hardware.
Memory Management
SplitVisor manages memory isolation through a nested EPT mechanism. The SplitVisor establishes a "default" EPT for each GuestVisor, which then creates a secondary EPT for its managed VM.
As illustrated in the memory mapping diagrams, SplitVisor verifies that the VM's memory accesses remain within the bounds allocated to its GuestVisor. To prevent tampering, SplitVisor marks the VM's page tables as read-only, ensuring that the GuestVisor cannot maliciously alter the VM's memory layout.
Evaluation and Results
The authors evaluated SplitVisor's performance and resource overhead using the SPECjbb2005 benchmark and Amazon EC2 instance profiles.
- Performance: The primary overhead stems from "double VM exits," where traps from the VM must pass through SplitVisor to reach the GuestVisor. Testing showed an average performance overhead of 4.3%, a figure considered acceptable for high-security cloud environments.
- Memory: Each GuestVisor instance requires roughly 64MB of memory. For a "Small" EC2 instance (1.7GB RAM), this represents a 3.8% overhead, while for "Extra Large" instances (15GB RAM), the overhead is a negligible 0.4%.
Conclusion
SplitVisor demonstrates that it is possible to significantly reduce the TCB of a cloud infrastructure by splitting the hypervisor into smaller, specialized components. By isolating management complexity into per-user GuestVisors, the architecture provides a stable security core that can support a wide range of features and user-customizable security profiles with minimal performance impact.
Summary updated