论文标题

ARMV8-A中的轻松虚拟内存(扩展版)

Relaxed virtual memory in Armv8-A (extended version)

论文作者

Simner, Ben, Armstrong, Alasdair, Pichon-Pharabod, Jean, Pulte, Christopher, Grisenthwaite, Richard, Sewell, Peter

论文摘要

虚拟内存是实施安全边界的基本机制,但以前尚未详细研究其轻松的记忆同意语义。同时管理的系统代码管理虚拟内存已完全基于非正式的基础,并且OS和管理程序验证必须做出主要的简化假设。 我们探索了ARMV8-A体系结构中放宽虚拟内存语义语义的设计空间,以支持将来的系统软件验证。我们在与ARM讨论中确定了许多设计问题;开发一个测试套件,包括Google正在开发的PKVM生产管理程序中的用例;使用公理风格的并发模型界定设计空间;证明在简单稳定配置下,我们的体系模型崩溃了以前的“用户”模型;开发工具以计算与完整的ARMV8-A ISA语义集成的模型中允许的行为;并开发硬件测试安全带。 这列出了轻松的虚拟记忆中的一些主要问题,将这些关键安全系统现象带入了编程语言语义的领域,并使用基础体系结构语义进行了验证。 该文档是ESOP 2022中论文的扩展版本,并在主体中提供了其他解释和示例,附录详细介绍了我们的石棺测试,模型,证明和测试结果。

Virtual memory is an essential mechanism for enforcing security boundaries, but its relaxed-memory concurrency semantics has not previously been investigated in detail. The concurrent systems code managing virtual memory has been left on an entirely informal basis, and OS and hypervisor verification has had to make major simplifying assumptions. We explore the design space for relaxed virtual memory semantics in the Armv8-A architecture, to support future system-software verification. We identify many design questions, in discussion with Arm; develop a test suite, including use cases from the pKVM production hypervisor under development by Google; delimit the design space with axiomatic-style concurrency models; prove that under simple stable configurations our architectural model collapses to previous "user" models; develop tooling to compute allowed behaviours in the model integrated with the full Armv8-A ISA semantics; and develop a hardware test harness. This lays out some of the main issues in relaxed virtual memory bringing these security-critical systems phenomena into the domain of programming-language semantics and verification with foundational architecture semantics. This document is an extended version of a paper in ESOP 2022, with additional explanation and examples in the main body, and appendices detailing our litmus tests, models, proofs, and test results.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源