Skip to main content
QUICK REVIEW

[Paper Review] CVA6 RISC-V Virtualization: Architecture, Microarchitecture, and Design Space Exploration

Bruno Costa Martins de Sá, Luca Valente|arXiv (Cornell University)|Feb 6, 2023
Parallel Computing and Optimization TechniquesComputer Science3 citations
TL;DR

This paper presents a hardware virtualization extension for the open-source RISC-V CVA6 core, introducing a G-Stage TLB and L2 TLB to reduce virtualization overhead. It achieves up to 16% performance speedup with only 0.78% area and 0.33% power overhead through comprehensive design space exploration and post-layout simulations in 22nm FDX technology.

ABSTRACT

Virtualization is a key technology used in a wide range of applications, from cloud computing to embedded systems. Over the last few years, mainstream computer architectures were extended with hardware virtualization support, giving rise to a set of virtualization technologies (e.g., Intel VT, Arm VE) that are now proliferating in modern processors and SoCs. In this article, we describe our work on hardware virtualization support in the RISC-V CVA6 core. Our contribution is multifold and encompasses architecture, microarchitecture, and design space exploration. In particular, we highlight the design of a set of microarchitectural enhancements (i.e., G-Stage Translation Lookaside Buffer (GTLB), L2 TLB) to alleviate the virtualization performance overhead. We also perform a Design Space Exploration (DSE) and accompanying post-layout simulations (based on 22nm FDX technology) to assess Performance, Power ,and Area (PPA). Further, we map design variants on an FPGA platform (Genesys 2) to assess the functional performance-area trade-off. Based on the DSE, we select an optimal design point for the CVA6 with hardware virtualization support. For this optimal hardware configuration, we collected functional performance results by running the MiBench benchmark on Linux atop Bao hypervisor for a single-core configuration. We observed a performance speedup of up to 16% (approx. 12.5% on average) compared with virtualization-aware non-optimized design at the minimal cost of 0.78% in area and 0.33% in power. Finally, all work described in this article is publicly available and open-sourced for the community to further evaluate additional design configurations and software stacks.

Motivation & Objective

  • To implement and evaluate hardware virtualization support in the open-source RISC-V CVA6 core compliant with the ratified v1.0 Hypervisor extension.
  • To reduce virtualization performance overhead through targeted microarchitectural enhancements, particularly in the memory management unit (MMU).
  • To perform a comprehensive Design Space Exploration (DSE) of virtualization-optimized configurations, assessing functional performance, area, power, and area-performance trade-offs.
  • To validate the optimal design point via FPGA prototyping and post-layout simulations in 22nm FDX technology.
  • To release all designs and results as open-source for community evaluation and extension.

Proposed method

  • Extended the vanilla CVA6 microarchitecture with full support for the RISC-V Hypervisor extension v1.0 and Sstc timer extension.
  • Designed a dedicated G-Stage Translation Lookaside Buffer (GTLB) to accelerate nested page table walks on TLB misses.
  • Proposed an L2 TLB with support for 4KiB and 2MiB page sizes and configurable size to reduce TLB miss penalties.
  • Conducted a DSE on 23 FPGA-deployed configurations (Genesys 2 platform) to evaluate functional performance and hardware cost.
  • Selected 7 high-potential designs for in-depth PPA analysis using post-layout simulations in 22nm FDX technology.
  • Evaluated performance using MiBench (automotive subset) on a single-core Linux VM running atop the Bao hypervisor.

Experimental results

Research questions

  • RQ1What microarchitectural enhancements can effectively reduce the performance overhead of hardware virtualization in the CVA6 RISC-V core?
  • RQ2How do the G-Stage TLB and L2 TLB impact functional performance, area, and power consumption in a virtualized environment?
  • RQ3What is the optimal trade-off between performance, area, and power in a virtualized CVA6 design, and can it be achieved with minimal overhead?
  • RQ4How does the performance of the virtualized CVA6 compare to a non-optimized virtualization-aware baseline, and what is the achievable speedup?
  • RQ5Can a comprehensive DSE and PPA analysis guide the selection of a high-performance, low-overhead virtualization configuration for RISC-V cores?

Key findings

  • The proposed microarchitectural enhancements achieved a maximum functional performance speedup of 19% in the DSE, with an average of 12.5% for the optimal configuration.
  • The optimal design—featuring Sstc support and an 8-entry GTLB—achieved a 16% maximum speedup and 12.5% average speedup over the baseline.
  • This optimal configuration incurred only a 0.78% increase in area and 0.33% increase in power, demonstrating minimal overhead.
  • The Sstc extension had negligible impact on area and power, while the L2 TLB introduced a non-negligible 8% area increase in some configurations.
  • The GTLB contributed less than 1% area increase, indicating its efficiency in reducing virtualization overhead.
  • All designs, results, and source code are publicly available on GitHub, enabling community evaluation and further exploration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.