Lune

ASPLOS2023Top-tier venue

Risotto: A Dynamic Binary Translator for Weak Memory Model Architectures

Redha Gouicem, Dennis Sprokholt, Jasper Ruehl, Rodrigo C. O. Rocha, Tom Spink, Soham Chakraborty, Pramod Bhatotia

Abstract

Dynamic Binary Translation (DBT) is a powerful approach to support cross-architecture emulation of unmodified binaries. However, DBT systems face correctness and performance challenges, when emulating concurrent binaries from strong to weak memory consistency architectures. As a matter of fact, we report several translation errors in Qemu, when emulating x86 binaries on Arm hosts.

To address these challenges, we propose an end-to-end approach that provides correct and efficient emulation for weak memory model architectures. Our contributions are twofold: First, we formalize Qemu's intermediate representation's memory model, and use it to propose formally verified mapping schemes to bridge the strong-on-weak memory consistency mismatch. Second, we implement these verified mappings in Risotto, a Qemu-based DBT system that optimizes memory fence placement while ensuring correctness. Risotto further improves performance via cross-architecture dynamic linking of native shared libraries and faster yet correct translation of compare-and-swap operations.

We evaluate Risotto using multi-threaded benchmark suites and real-world applications, and show that Risotto improves the emulation performance by 6.7% on average over łerroneousž Qemu, while ensuring correctness.

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.

5 top-tier papers have 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 CrossMapping: Harmonizing Memory Consistency in Cross-ISA Binary Translation
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • Arancini: A Hybrid Binary Translator for Weak Memory Model Architectures cites Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
  • CrossMapping: Harmonizing Memory Consistency in Cross-ISA Binary Translation cites No barrier in the road: a comprehensive study and optimization of ARM barriers
  • CrossMapping: Harmonizing Memory Consistency in Cross-ISA Binary Translation cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
  • No More Translation at Runtime: LLM-Empowered Static Binary Translation cites ReSym: Harnessing LLMs to Recover Variable and Data Structure Symbols from Stripped Binaries
  • 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
  • Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware cites VSync: push-button verification and optimization for synchronization primitives on weak memory models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. ReSym: Harnessing LLMs to Recover Variable and Data Structure Symbols from Stripped BinariesDanning Xie, Zhuo Zhang, Nan Jiang, Xiangzhe Xu et al.CCS 2024 · 21 citations
  2. CrossMapping: Harmonizing Memory Consistency in Cross-ISA Binary TranslationChen Gao, Xiangwei Meng, Wei Li, Jinhui Lai et al.USENIX ATC 2024 · 4 citations
  3. Arancini: A Hybrid Binary Translator for Weak Memory Model ArchitecturesSebastian Reimers, Dennis Sprokholt, Martin Fink, Theofilos Augoustis et al.ASPLOS 2026 · 1 citation
  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. Proteus: Heterogeneous FPGA VirtualizationFelix Gust, Shu Anzai, Charalampos Mainas, Atsushi Koshiba et al.EuroSys 2026

Builds on4

  1. Promising 2.0: global optimizations in relaxed memory concurrencySung-Hwan Lee, Minki Cho, Anton Podkopaev, Soham Chakraborty et al.PLDI 2020 · 48 citations
  2. 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
  3. Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory HardwareRunzhou Tao, Jianan Yao, Xupeng Li, Shih-Wei Li et al.SOSP 2021 · 24 citations
  4. No barrier in the road: a comprehensive study and optimization of ARM barriersNian Liu, Binyu Zang, Haibo ChenPPoPP 2020 · 10 citations

Related papers

  1. 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
  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. Rely/Guarantee Reasoning for Multicopy Atomic Weak Memory ModelsNicholas Coughlin, Kirsten Winter, Graeme SmithFM 2021 · 16 citations
  4. AtoMig: Automatically Migrating Millions Lines of Code from TSO to WMMMartin Beck, Koustubha Bhat, Lazar Stricevic, Geng Chen et al.ASPLOS 2023 · 9 citations
  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