Lune

USENIX ATC2024顶会

CrossMapping: Harmonizing Memory Consistency in Cross-ISA Binary Translation

Chen Gao, Xiangwei Meng, Wei Li, Jinhui Lai, Yiran Zhang, Fengyuan Ren

摘要

The increasing prevalence of new Instruction Set Architectures (ISAs) necessitates the migration of closed-source binary programs across ISAs. Dynamic Binary Translation (DBT) stands out as a crucial technology for the cross-ISA emulation of binary programs. However, due to the mismatch in memory consistency between guest ISA and host ISA, DBT systems face substantial challenges in guaranteeing correctness and translation performance for concurrent programs. Despite several attempts to bridge the memory inconsistency between guest and host ISA, prior work is either not universal for cross-ISA DBT systems or inefficient and even error-prone in translation.

This work presents CrossMapping, a general primitive mapping framework to enhance existing DBT systems for cross-ISA translation. By harmonizing memory consistency across diverse ISAs, CrossMapping enables smooth cross-ISA translation and accomplishes correct emulation. CrossMapping introduces specification tables to describe memory models in a unified and precise format, which facilitates the derivation of concurrent primitive mapping schemes based on a convenient comparison and analysis of memory models. The correctness of cross-ISA emulation is guaranteed by harmoniously integrating the derived mapping schemes with existing DBT systems. We evaluate CrossMapping for x86, ARMv8, and RISC-V on top of QEMU using the PARSEC benchmark suite. The results show that the average performance improvement can reach 8.5% when emulating x86 on ARMv8 and 7.3% when emulating x86 on RISC-V.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 Lasagne: a static binary translator for weak memory model architectures
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures 引用了 No barrier in the road: a comprehensive study and optimization of ARM barriers
  • Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Lasagne: a static binary translator for weak memory model architectures 引用了 VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • VSync: push-button verification and optimization for synchronization primitives on weak memory models 引用了 No barrier in the road: a comprehensive study and optimization of ARM barriers
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. Arancini: A Hybrid Binary Translator for Weak Memory Model ArchitecturesSebastian Reimers, Dennis Sprokholt, Martin Fink, Theofilos Augoustis 等ASPLOS 2026 · 1 次引用

它引用的 Paper4

  1. VSync: push-button verification and optimization for synchronization primitives on weak memory modelsJonas Oberhauser, Rafael Lourenco de Lima Chehab, Diogo Behrens, Ming Fu 等ASPLOS 2021 · 40 次引用
  2. Lasagne: a static binary translator for weak memory model architecturesRodrigo C. O. Rocha, Dennis Sprokholt, Martin Fink, Redha Gouicem 等PLDI 2022 · 21 次引用
  3. No barrier in the road: a comprehensive study and optimization of ARM barriersNian Liu, Binyu Zang, Haibo ChenPPoPP 2020 · 10 次引用
  4. Risotto: A Dynamic Binary Translator for Weak Memory Model ArchitecturesRedha Gouicem, Dennis Sprokholt, Jasper Ruehl, Rodrigo C. O. Rocha 等ASPLOS 2023 · 7 次引用

相关 Paper

  1. Direct Memory Translation for Virtualized CloudsJiyuan Zhang, Weiwei Jia, Siyuan Chai, Peizhe Liu 等ASPLOS 2024 · 5 次引用
  2. FADATest: Fast and Adaptive Performance Regression Testing of Dynamic Binary Translation SystemsJin Wu, Jian Dong, Ruili Fang, Wen Zhang 等ICSE 2022 · 3 次引用
  3. Translation Pass-Through for Near-Native Paging Performance in VMsShai Bergman, Mark Silberstein, Takahiro Shinagawa, Peter R. Pietzuch 等USENIX ATC 2023 · 10 次引用
  4. No More Translation at Runtime: LLM-Empowered Static Binary TranslationZhibo Liu, Huaijin Wang, Wai Kin Wong, Daoyuan Wu 等EuroSys 2026 · 1 次引用
  5. More with Less - Deriving More Translation Rules with Less Training Data for DBTs Using ParameterizationJinhu Jiang, Rongchao Dong, Zhongjun Zhou, Changheng Song 等MICRO 2020 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖