RISC-V 上的静态硬件分区——不足、局限与前景
Static Hardware Partitioning on RISC-V -- Shortcomings, Limitations, and Prospects
AI总结:
本文研究 RISC-V 平台上通过静态硬件分区实现工作负载间零干预隔离的可行性与硬件局限,识别设计层面尤其是中断处理中的问题,并基于微基准测试为 RISC-V 架构的未来扩展提供依据。
摘要:
在越来越多配备多个 CPU 核的嵌入式处理器上,静态硬件分区是一种既有的手段,用于将工作负载整合并隔离到单颗芯片上。在具备合适硬件特性的前提下,这种架构模式适用于需要同时满足实时性和安全性要求的混合关键性工作负载。在本工作中,我们专注于利用当代虚拟化机制来实现工作负载之间的免干扰(即相互隔离)。在保持实时能力的同时实现时间隔离和空间隔离的可能方法包括:静态划分资源、避免共享设备,以及确保上级控制结构的零干预。这消除了硬件分区带来的开销,但意味着需要某些在当代标准系统中尚未完全实现的硬件能力。为解决此类硬件局限,可定制且可配置的 RISC-V 指令集架构提供了快速、不受限制地进行修改的可能性。我们给出了关于当前 RISC-V 规范及其实现的研究发现,这些实现需要上级控制结构的干预。我们识别出许多不利于实现零干预(即零开销)目标的问题:在设计层面,尤其是在中断处理方面。基于微基准测试测量结果,我们讨论了这些发现的影响,并论证了它们如何为 RISC-V 架构的未来扩展和改进提供基础。
英文摘要:
On embedded processors that are increasingly equipped with multiple CPU cores, static hardware partitioning is an established means of consolidating and isolating workloads onto single chips. This architectural pattern is suitable for mixed-criticality workloads that need to satisfy both, real-time and safety requirements, given suitable hardware properties. In this work, we focus on exploiting contemporary virtualisation mechanisms to achieve freedom from interference respectively isolation between workloads. Possibilities to achieve temporal and spatial isolation-while maintaining real-time capabilities-include statically partitioning resources, avoiding the sharing of devices, and ascertaining zero interventions of superordinate control structures. This eliminates overhead due to hardware partitioning, but implies certain hardware capabilities that are not yet fully implemented in contemporary standard systems. To address such hardware limitations, the customisable and configurable RISC-V instruction set architecture offers the possibility of swift, unrestricted modifications. We present findings on the current RISC-V specification and its implementations that necessitate interventions of superordinate control structures. We identify numerous issues adverse to implementing our goal of achieving zero interventions respectively zero overhead: On the design level, and especially with regards to handling interrupts. Based on micro-benchmark measurements, we discuss the implications of our findings, and argue how they can provide a basis for future extensions and improvements of the RISC-V architecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。