[Paper Review] ACAI: Protecting Accelerator Execution with Arm Confidential Computing Architecture
ACAI mechanisms extend Arm CCA to securely attach and manage PCIe accelerators (GPU/FPGA) for confidential VMs, achieving end-to-end device isolation with modest overhead.
Trusted execution environments in several existing and upcoming CPUs demonstrate the success of confidential computing, with the caveat that tenants cannot securely use accelerators such as GPUs and FPGAs. In this paper, we reconsider the Arm Confidential Computing Architecture (CCA) design, an upcoming TEE feature in Armv9-A, to address this gap. We observe that CCA offers the right abstraction and mechanisms to allow confidential VMs to use accelerators as a first-class abstraction. We build ACAI, a CCA-based solution, with a principled approach of extending CCA security invariants to device-side access to address several critical security gaps. Our experimental results on GPU and FPGA demonstrate the feasibility of ACAI while maintaining security guarantees.
Motivation & Objective
- Motivate the need for confidential computing with accelerators in VM-based clouds.
- Propose a principled extension of Arm CCA to enable secure, first-class access of accelerators to realm VMs.
- Define invariants and mechanisms to isolate device access and protect memory in the presence of untrusted hypervisors and devices.
- Demonstrate feasibility through a prototype on Arm simulation/board and evaluate performance with GPUs and FPGAs.
Proposed method
- Extend Arm CCA security invariants to device-side access for PCIe peripherals.
- Define Acai invariants: INV id (identity), INV own (exclusive ownership), INV bind (shared mappings), INV host (1:1 host-guest mappings), INV dev (no overlapping protected memory).
- Architect a protected memory region shared between realm VM and accelerator, synchronized via RMM and SMMU stage-2 translations (INV bind).
- Guard SMMU configuration against hypervisor tampering by marking SMMU data structures as root-only and exposing selective update interfaces.
- Use PCIe-5 IDE for unique accelerator identities and device attestation to enforce INV id and INV own via root-port keys, plus SPDM-based attestation.
- Attach/detach accelerators at realm VM creation/destruction to enforce lifecycle invariants and preserve compatibility.
Experimental results
Research questions
- RQ1How can Arm CCA be extended to securely mount and manage PCIe accelerators for realm VMs?
- RQ2What invariants and synchronization mechanisms are required to maintain end-to-end memory and I/O isolation for devices in confidential computing with accelerators?
- RQ3What is the performance impact of Acai on GPUs and FPGAs compared with non-TEE execution?
- RQ4How can device attestation and IDE-based identity be integrated into the Acai workflow to prevent device spoofing and TOCTOU issues?
Key findings
- Acai demonstrates secure PCIe device access for Arm CCA-based confidential VMs without hardware changes to existing accelerators.
- Acai achieves end-to-end isolation by extending CCA invariants to device-side protection and synchronizing host and device MMUs (RMM and SMMU).
- Evaluation shows average overheads of 43.5% for GPUs and 12.1% for FPGAs when protecting CPU+accelerator execution, with minimal system-wide overhead of 3.8% (GPU) and 1.9% (FPGA).
- Enclosures where Acai preserves compatibility with untrusted hypervisors and existing software stacks, enabling confidential acceleration with minimal API changes.
- IDE-based device identity and attestation are integral to enforcing unique accelerator identities and preventing spoofing within the Acai workflow.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.