Computer Engineering and Applications ›› 2016, Vol. 52 ›› Issue (23): 42-49.

Previous Articles     Next Articles

Binary translation optimization on cross-platform system virtual machine

DONG Weiyu, QI Xuyan, ZENG Yun, GUO Yudong, JIANG Liehui   

  1. State Key Laboratory of Mathematical Engineering and Advanced Computing, Zhengzhou 450000, China
  • Online:2016-12-01 Published:2016-12-20

跨平台系统虚拟机的二进制翻译优化

董卫宇,戚旭衍,曾  韵,郭玉东,蒋烈辉   

  1. 数学工程与先进计算国家重点实验室,郑州 450000

Abstract: The paper provides a block-level optimization method for dynamic binary translation, based on a prototype of cross-platform system virtual machine named ARCH-BRIDGE. By using techniques such as two-phase translation, global register allocation and delayed machine state commit, the method can effectively remove the redundancies introduced by dynamic binary translation, while avoiding intermediate presentation and keeping precise exception. Evaluation demonstrates that, the optimized ARCH-BRIDGE has much smaller translation overhead than QEMU, the sizes of translation block and translation redundancies are greatly decreased, and all the performances of SPEC CPU2006, NBENCH and OS booting get remarkable speedup.

Key words: cross-platform system Virtual Machine(VM), memory virtualization, dynamic binary translation, software transparent porting, SW processor

摘要: 在跨平台系统虚拟机原型ARCH-BRIDGE的基础上,提出了一种基本块级的动态二进制翻译优化方法,通过两阶段翻译、基于虚拟寄存器的优化翻译及延迟机器状态提交等技术,可在不采用中间表示及确保精确异常的情况下,有效去除二进制翻译所引入的冗余。测试表明,优化后的ARCH-BRIDGE在翻译开销明显优于QEMU的同时,翻译块尺寸和翻译冗余得到了大幅降低,并且SPEC CPU2006、NBENCH及OS引导的性能均得到了显著提升。

关键词: 跨平台系统虚拟机, 内存虚拟化, 动态二进制翻译, 软件透明移植, 申威处理器