CVA6-VMRT: A Modular Approach Towards Time-Predictable Virtual Memory in a 64-bit Application Class RISC-V Processor

Christopher Reinwardt, Robert Balas, Alessandro Ottaviano, Angelo Garofalo, Luca Benini

Abstract

Modern autonomous systems are increasingly consolidating mixed-criticality tasks onto single, high-performance Systems-on-Chip (SoCs). However, shared hardware resources like Translation Look-aside Buffers (TLBs) and caches introduce significant timing unpredictability due to inter-task interference. This paper presents CVA6-VMRT, a set of modular hardware extensions for the open-source CVA6 RISC-V core designed to ensure time-predictable memory access. By implementing TLB partitioning, entry locking, and a hybrid cache/scratchpad memory, the proposed architecture reduces execution time variability for critical tasks by up to 94% with a negligible 3.7% area overhead.

Introduction

In the design of modern autonomous systems, such as self-driving vehicles, there is a significant architectural shift away from utilizing dozens of discrete Electronic Control Units (ECUs) toward a centralized, powerful SoC. While virtualization allows multiple "guest" operating systems to coexist on a single chip, these guests must share underlying hardware resources.

This sharing leads to the "noisy neighbor" problem: a non-critical task, such as a background media player, can evict the memory translations or data of a safety-critical task, such as emergency braking, from the hardware buffers. Such interference results in unpredictable execution times, making it difficult to provide the strict timing guarantees required for safety-critical certifications. While software-based isolation exists, it often incurs heavy performance penalties. CVA6-VMRT addresses this by introducing surgical hardware modifications to the memory management unit (MMU) and cache subsystem.

Hardware Architecture

The CVA6-VMRT architecture extends the 64-bit RISC-V CVA6 application-class processor through three primary modular modifications:

1. Partitioned PLRU TLB

The standard Pseudo Least-Recently Used (PLRU) replacement policy in the TLB was modified to support partitioning. By introducing a bitmap-based control register, the hypervisor can restrict the TLB's replacement logic to specific "subtrees" of the buffer. This effectively creates hardware-enforced walls within the TLB, preventing a non-critical VM from evicting the address translations of a critical VM.

2. CSR-based TLB Locking

To further enhance predictability, the researchers added Control and Status Registers (CSRs) that allow software to manually "lock" specific address translations into the TLB. This ensures that critical memory regions benefit from single-cycle address translation by bypassing the costly hardware page table walk entirely.

3. Hybrid L1 Cache/Scratchpad Memory (SPM)

Rather than adding dedicated, area-intensive on-chip memory, CVA6-VMRT modifies the existing L1 data and instruction caches. The system can dynamically reconfigure cache ways to function as Scratchpad Memory (SPM)—software-managed memory with guaranteed, constant access times. This approach reuses existing SRAM macros, maintaining a low area footprint while providing deterministic data access.

Experimental Evaluation

The system was evaluated using the Cheshire platform, a Linux-capable RISC-V host, running the Xvisor hypervisor. The design was synthesized using a commercial 16nm FinFET technology node, achieving a clock frequency of 600 MHz.

To test the efficacy of the isolation, the researchers utilized:

  • Synthetic Benchmarks: Designed to stress the TLB by accessing a high volume of virtual memory pages.
  • TACLeBench (powerwindow): A real-world benchmark modeling a vehicle's power window control system.
  • Interference Source: A Linux VM running memory-intensive "noise" processes to simulate a worst-case shared-resource scenario.

Results and Discussion

The experimental results demonstrate that CVA6-VMRT successfully mitigates the impact of resource contention:

  • Predictability: In the presence of heavy interference, the execution time standard deviation (variability) of critical tasks was reduced by 94%. The average execution time for critical tasks remained nearly identical to their isolated execution time, even under heavy system load.
  • Resource Efficiency: The hardware modifications resulted in only a 3.7% increase in total silicon area, primarily concentrated in the MMU and cache controllers.
  • Timing Integrity: The modifications were designed to avoid the critical timing path, ensuring no impact on the maximum achievable clock frequency of the processor.

Conclusion

CVA6-VMRT demonstrates that significant gains in real-time predictability can be achieved through modular, surgical strikes on the memory subsystem of standard application-class cores. By reusing existing resources like cache ways for SPM and partitioning the TLB, the architecture provides safety-critical guarantees with minimal area overhead.

Future work will address the manual management requirements currently placed on the hypervisor and explore dynamic SPM partitioning. Additionally, while CVA6-VMRT secures core-local resources, a complete system-wide guarantee will require pairing these core-level protections with memory-bus-level solutions to manage interference at the shared interconnect and DRAM controller.

Summary updated

BibTeX
@inproceedings{reinwardt2025cva,
  author = {Christopher Reinwardt and Robert Balas and Alessandro Ottaviano and Angelo Garofalo and Luca Benini},
  title = {{CVA6-VMRT: A Modular Approach Towards Time-Predictable Virtual Memory in a 64-bit Application Class RISC-V Processor}},
  booktitle = {CF},
  year = {2025},
  doi = {10.1145/3719276.3725172},
}
Figure