Confidential, Attestable, and Efficient Inter-CVM Communication with Arm CCA

Sina Abdollahi, Amir Al Sadi, Marios Kogias, David Kotz, Hamed HaddadiarXiv 2025 · DOI

Abstract

Existing Confidential Virtual Machines (CVMs) isolate memory so strictly that secure, direct data sharing between them is impossible without costly encryption. This paper introduces CAEC, an extension to the Arm Confidential Compute Architecture (CCA) firmware that enables Confidential Shared Memory (CSM) between mutually attested CVMs. By allowing direct plaintext sharing, CAEC reduces inter-CVM communication overhead by up to 209× and significantly lowers memory footprints for collaborative workloads like LLM inference.

Introduction: The Isolation Bottleneck

Confidential Virtual Machines (CVMs)—such as AMD SEV-SNP, Intel TDX, and Arm CCA (where they are called "Realms")—protect sensitive workloads from compromised host operating systems or hypervisors. They typically employ a "disjoint memory model" where memory pages are either private to a single CVM or shared with an untrusted hypervisor.

Comparison of inter-CVM communication models: (a) Hypervisor-mediated, (b) Hypervisor-accessible shared memory, and (c) the proposed Confidential Shared Memory.

While this model ensures strong isolation, it creates a significant bottleneck for compartmentalized applications. When two CVMs need to collaborate, they must route data through hypervisor-accessible memory, necessitating encryption and decryption for every message to maintain confidentiality. This overhead is particularly damaging for high-throughput tasks or memory-intensive workloads like Large Language Model (LLM) inference, where memory deduplication is currently impossible.

CAEC: Enabling Confidential Shared Memory

The authors propose CAEC (Confidential, Attestable, and Efficient Inter-CVM Communication), a system that extends Arm CCA firmware to support Confidential Shared Memory (CSM). CAEC requires no hardware modifications, instead relying on a modest ~4% code size increase (1,062 lines of code) to the trusted Realm Management Monitor (RMM) firmware.

High-level architecture of CAEC, showing inter-realm communication and the role of the RMM in managing shared memory regions.

Key Mechanisms

  • Ownership Model: A "Provider realm" (P-realm) creates a shared memory region and grants access to "Consumer realms" (C-realms) with specific permissions (e.g., read-only vs. read-write).
  • Access Policy Table (APT): The RMM manages this new metadata structure to track the state, ownership, and permissions of every shared region.
  • Secure Realm Identifiers: To prevent Time-of-Check-to-Time-of-Use (TOCTOU) attacks by a malicious hypervisor, CAEC introduces unforgeable, system-wide IDs cryptographically bound to a realm's attestation token. This ensures CVMs can verify the identity of their peers before sharing memory.

Evaluation and Key Results

The system was evaluated using microbenchmarks for message passing and macrobenchmarks using llama.cpp with quantized GPT-2 models to measure memory deduplication and inference latency.

  • Massive Performance Gains: CAEC achieved up to a 209× reduction in CPU cycles compared to standard encrypted communication over hypervisor-shared memory. Latency was reduced by 24×–212×, while throughput increased by 26×–204×.
  • Memory Footprint Reduction: By enabling memory sharing for LLM weights across multiple realms, CAEC reduced the total system memory footprint by 16.6% to 28.3%.
  • Zero Overhead Inference: LLM inference performance from Confidential Shared Memory was identical to private memory (averaging 13.4 seconds in both cases), confirming that shared pages incur no performance penalty.

Discussion and Future Outlook

A key insight of this work is the flexibility of the Arm CCA architecture. Unlike competitors that bake isolation logic into hardware, Arm's reliance on trusted firmware (the RMM) allows for complex features like CSM to be implemented via software updates. By embedding identity into the memory management layer, CAEC bridges the gap between cryptographic trust and physical resource isolation.

Current limitations include the lack of production Arm CCA silicon, requiring evaluation on functional emulators and performance prototypes. Future work will focus on formal verification of the RMM extensions, local attestation to reduce trust establishment latency, and developing secure, hypervisor-independent signaling mechanisms like virtual interrupts to coordinate actions over shared memory.

Summary updated

BibTeX
@misc{abdollahi2025confidential,
  author = {Sina Abdollahi and Amir Al Sadi and Marios Kogias and David Kotz and Hamed Haddadi},
  title = {{Confidential, Attestable, and Efficient Inter-CVM Communication with Arm CCA}},
  year = {2025},
  eprint = {2512.01594},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01594},
}
Figure