Skip to main content
QUICK 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 Science被引用 3
一句话总结

本文为开源 RISC-V CVA6 核心提出了一种硬件虚拟化扩展,引入了 G-Stage TLB 和 L2 TLB 以减少虚拟化开销。通过在 22nm FDX 工艺中进行全面的设计空间探索和版图后仿真,仅带来 0.78% 的面积开销和 0.33% 的功耗开销,最高实现了 16% 的性能加速。

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.

研究动机与目标

  • 在开源 RISC-V CVA6 核心中实现并评估符合已批准 v1.0 虚拟化扩展规范的硬件虚拟化支持。
  • 通过针对性的微架构优化,特别是内存管理单元(MMU)的改进,降低硬件虚拟化的性能开销。
  • 对虚拟化优化的配置进行全面的设计空间探索(DSE),评估功能性能、面积、功耗以及面积-性能权衡。
  • 通过 FPGA 原型验证和 22nm FDX 工艺的版图后仿真,验证最优设计点。
  • 将所有设计与结果以开源形式发布,供社区评估与进一步扩展。

提出的方法

  • 在原始 CVA6 微架构基础上,完整支持 RISC-V 虚拟化扩展 v1.0 和 Sstc 定时器扩展。
  • 设计专用的 G-Stage 转换侦测缓冲器(GTLB),以加速 TLB 失效时的嵌套页表遍历。
  • 提出一种支持 4KiB 和 2MiB 页大小且可配置大小的 L2 TLB,以减少 TLB 失效惩罚。
  • 在 Genesys 2 平台的 23 种 FPGA 部署配置上开展 DSE,评估功能性能与硬件成本。
  • 从 DSE 中选出 7 个高潜力设计,利用 22nm FDX 工艺的版图后仿真进行深入的 PPA 分析。
  • 使用 MiBench(汽车子集)在单核 Linux 虚拟机上,基于 Bao 虚拟机监控器评估性能。

实验结果

研究问题

  • RQ1哪些微架构优化能有效降低 CVA6 RISC-V 核心中硬件虚拟化的性能开销?
  • RQ2G-Stage TLB 和 L2 TLB 在虚拟化环境中对功能性能、面积和功耗消耗有何影响?
  • RQ3在虚拟化 CVA6 设计中,性能、面积与功耗之间的最优权衡是什么?是否能以极低开销实现?
  • RQ4虚拟化 CVA6 的性能与未优化的虚拟化感知基线相比如何?可实现多大程度的加速?
  • RQ5全面的 DSE 与 PPA 分析能否指导选择高性能、低开销的 RISC-V 核心虚拟化配置?

主要发现

  • 所提出的微架构优化在 DSE 中实现了最高 19% 的功能性能加速,最优配置平均加速达 12.5%。
  • 最优配置(支持 Sstc 且配备 8 项 G-Stage TLB)相较基线最高实现 16% 的加速,平均加速 12.5%。
  • 该最优配置仅带来 0.78% 的面积增加和 0.33% 的功耗增加,表明开销极小。
  • Sstc 扩展对面积和功耗的影响可忽略不计,而 L2 TLB 在部分配置中引入了 8% 的面积增加,不可忽视。
  • GTLB 的面积增加不足 1%,表明其在降低虚拟化开销方面具有高效率。
  • 所有设计、结果与源代码均公开发布于 GitHub,支持社区评估与进一步探索。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。