Lune

USENIX ATC2024Top-tier venue

CrossMapping: Harmonizing Memory Consistency in Cross-ISA Binary Translation

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures cites Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures cites Lasagne: a static binary translator for weak memory model architectures
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures cites No barrier in the road: a comprehensive study and optimization of ARM barriers
  • Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Lasagne: a static binary translator for weak memory model architectures cites 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 cites No barrier in the road: a comprehensive study and optimization of ARM barriers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Arancini: A Hybrid Binary Translator for Weak Memory Model ArchitecturesSebastian Reimers, Dennis Sprokholt, Martin Fink, Theofilos Augoustis et al.ASPLOS 2026 · 1 citation

Builds on4

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

Related papers

  1. Direct Memory Translation for Virtualized CloudsJiyuan Zhang, Weiwei Jia, Siyuan Chai, Peizhe Liu et al.ASPLOS 2024 · 5 citations
  2. FADATest: Fast and Adaptive Performance Regression Testing of Dynamic Binary Translation SystemsJin Wu, Jian Dong, Ruili Fang, Wen Zhang et al.ICSE 2022 · 3 citations
  3. Translation Pass-Through for Near-Native Paging Performance in VMsShai Bergman, Mark Silberstein, Takahiro Shinagawa, Peter R. Pietzuch et al.USENIX ATC 2023 · 10 citations
  4. No More Translation at Runtime: LLM-Empowered Static Binary TranslationZhibo Liu, Huaijin Wang, Wai Kin Wong, Daoyuan Wu et al.EuroSys 2026 · 1 citation
  5. More with Less - Deriving More Translation Rules with Less Training Data for DBTs Using ParameterizationJinhu Jiang, Rongchao Dong, Zhongjun Zhou, Changheng Song et al.MICRO 2020 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines