arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.15908cs.ARcs.PL
收藏

CXL缓存一致性的形式化

Formalising CXL Cache Coherence

Chengsong Tan, Alastair F. Donaldson, John Wickerson

AI总结:

本研究使用Isabelle证明助手对CXL.cache协议进行形式化建模与验证,发现并修复了多项可能致一致性失效的问题,完成大规模机械化一致性证明,还开发了可复用的证明自动化工具。

摘要:

我们报告了对Compute Express Link标准的设备间缓存一致性协议CXL.cache进行形式化建模与验证的实践经验。我们使用Isabelle证明助手,基于英文文本规范构建了CXL.cache的形式化模型。在此过程中,我们发现了若干表述不清、存在歧义或不准确的问题,部分问题若不修复可能导致一致性失效,我们针对这些问题提出了修复方案。除一项仍在讨论外,几乎所有我们提出的问题与修复方案均已得到CXL联盟的确认并被初步采纳。为验证模型的忠实性,我们对“Snoop-pushes-GO”等核心约束开展了场景验证,并完成了模型一致性属性的完全机械化证明。该证明规模庞大,包含数万条引理,这促使我们开发了新的证明自动化工具,目前已向其他处理同类繁杂证明的Isabelle用户开放使用。

英文摘要:

We report our experience formally modelling and verifying CXL.cache, the inter-device cache coherence protocol of the Compute Express Link standard. We have used the Isabelle proof assistant to create a formal model for CXL.cache based on the prose English specification. This led to us identifying and proposing fixes to several problems we identified as unclear, ambiguous or inaccurate, some of which could lead to incoherence if left unfixed. Nearly all our issues and proposed fixes have been confirmed and tentatively accepted by the CXL consortium for adoption, save for one which is still under discussion. To validate the faithfulness of our model we performed scenario verification of essential restrictions such as "Snoop-pushes-GO", and produced a fully mechanised proof of a coherence property of the model. The considerable size of this proof, comprising tens of thousands of lemmas, prompted us to develop new proof automation tools, which we have made available for other Isabelle users working with similarly cumbersome proofs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑