Boosting Cross-Architectural Emulation Performance by Foregoing the Intermediate Representation Model
Preprint
Abstract
As more applications utilize virtualization and emulation to run mission-critical tasks, the performance requirements of emulated and virtualized platforms continue to rise. Hardware virtualization is not universally available for all systems, and is incapable of emulating CPU architectures, requiring software emulation to be used. QEMU, the premier cross-architecture emulator for Linux and some BSD systems, currently uses dynamic binary translation (DBT) through intermediate representations using its Tiny Code Generator (TCG) model. While using intermediate representations of translated code allows QEMU to quickly add new host and guest architectures, it creates additional steps in the emulation pipeline which decrease performance. We construct a proof of concept emulator to demonstrate the slowdown caused by the usage of intermediate representations in TCG; this emulator performed up to 35x faster than QEMU with TCG, indicating substantial room for improvement in QEMU's design. We propose an expansion of QEMU's two-tier engine system (Linux KVM versus TCG) to include a middle tier using direct binary translation for commonly paired architectures such as RISC-V, x86, and ARM. This approach provides a slidable trade-off between development effort and performance depending on the needs of end users.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Navigating ARM-Based Application Adoption: Software Engineer's Insights on Challenges & Solutions2024
- RISC-V ISA Extension Toolchain Supports: A Survey2023
- KVM, Xen and Docker: A performance analysis for ARM based NFV and cloud computing2015
- Cache Simulation for Instruction Set Simulator QEMU2014
- A comparison of the performance and scalability of Xen and KVM hypervisors2013
- QSim: Framework for Cycle-accurate Simulation on Out-of-Order Processors based on QEMU2012
- A Synthetical Performance Evaluation of OpenVZ, Xen and KVM2010
- Using binary translation in event driven simulation for fast and flexible MPSoC simulation2009