Introduction
Confidential computing has emerged as a critical paradigm for cloud security, enabling users to execute sensitive workloads in isolated environments known as Realms. In these environments, data is protected even from privileged software like the cloud provider’s operating system or hypervisor. Arm recently addressed this need through its Confidential Computing Architecture (CCA).
However, a significant gap remains: while the CPU is shielded, the GPU—essential for modern AI and high-performance computing—is typically treated as an "untrusted peripheral." If a Realm offloads data to a GPU, a compromised driver or malicious hypervisor could intercept it. While Arm has proposed a hardware-based solution (RME-DA), it is not yet physically available. CAGE (Complementing Arm CCA with GPU Extensions) fills this void by providing a software-driven, hardware-compatible framework to secure unified-memory GPUs on existing Armv9 systems.
System Architecture
CAGE is designed to integrate seamlessly with the Armv9 security model without requiring hardware modifications. It places its core logic within the Monitor, the highest-privilege firmware layer (EL3), ensuring that security primitives remain outside the reach of the untrusted Host OS and Hypervisor.
As shown in the architecture above, CAGE maintains a small Trusted Computing Base (TCB) by keeping the complex GPU driver in the untrusted Normal World while implementing three primary security components in the Monitor: the Shadow Task Mechanism, GPU Environment Protection, and GPT Maintenance Optimization.
Core Mechanisms
Shadow Task Mechanism
To avoid the security risks and complexity of moving a full GPU driver into the secure Realm, CAGE introduces "shadow tasks." The untrusted host OS continues to manage GPU scheduling using "stub" tasks—empty shells that contain no sensitive data.
When the GPU is ready to execute, the CAGE Monitor intercepts the request, as illustrated in the lifecycle above. It swaps the stub task's metadata and pointers with the "real" task containing the Realm's sensitive code and data. This ensures the driver performs the heavy lifting of scheduling without ever seeing the actual workload.
Two-Way Isolation and GPT Optimization
CAGE leverages Granule Protection Checks (GPC), a hardware feature of Armv9, to enforce memory isolation. This creates a "moat" that prevents the host from accessing GPU memory during confidential execution and ensures isolation between different Realms. To mitigate the performance cost of managing memory permissions, CAGE utilizes a hierarchical sub-level Granule Protection Table (GPT) structure. This allows the system to rapidly toggle access for specific GPU buffers without the overhead of re-scanning the entire memory map.
Evaluation and Key Results
The researchers evaluated CAGE using the Arm Fixed Virtual Platform (FVP) for functionality and an Arm Juno R2 development board for performance benchmarking. The workloads included the Rodinia benchmark suite and popular neural networks like LeNet-5, SqueezeNet, and MobileNet-v1.
- Negligible Overhead: Across Rodinia benchmarks, CAGE introduced an average performance overhead of only 2.45%. For AI inference, the overhead remained practical, ranging from 1.24% to 7.64%.
- Efficiency: The GPT optimization techniques reduced memory protection initialization time by up to 96.55% compared to standard approaches.
- Minimal TCB: CAGE adds approximately 1.3k lines of code to the system's trusted components, a fraction of the size of a full GPU driver.
Conclusion and Future Work
CAGE demonstrates that it is possible to extend confidential computing to GPUs using existing hardware primitives. By decoupling the GPU driver from the sensitive data it processes, CAGE provides a high-performance, low-TCB solution for today's Armv9 systems. Future work may extend this architecture to other accelerators like NPUs and DPUs, while also addressing potential side-channel and physical memory attacks through emerging hardware encryption standards.
Summary updated