Trinity: High-Performance and Reliable Mobile Emulation through Graphics Projection

Author:

Lin Hao1,Li Zhenhua1,Gao Di1,Liu Yunhao1,Qian Feng2,Xu Tianyin3

Affiliation:

1. Tsinghua University, China

2. University of Minnesota, USA

3. University of Illinois Urbana-Champaign, USA

Abstract

Mobile emulation, which creates full-fledged software mobile devices on a physical PC/server, is pivotal to the mobile ecosystem. Unfortunately, existing mobile emulators perform poorly on graphics-intensive apps in terms of efficiency and compatibility. To address this, we introduce graphics projection , a novel graphics virtualization mechanism that adds a small-size projection space inside the guest memory, which processes graphics operations involving control contexts and resource handles without host interactions. While enhancing performance, the decoupled and asynchronous guest/host control flows introduced by graphics projection can significantly complicate emulators’ reliability issue diagnosis when faced with a variety of uncommon or non-standard app behaviors in the wild, hindering practical deployment in production. To overcome this drawback, we develop an automatic reliability issue analysis pipeline that distills the critical code paths across the guest and host control flows by runtime quarantine and state introspection. The resulting new Android emulator, dubbed Trinity, exhibits an average of 97% native hardware performance and 99.3% reliable app support, in some cases outperforming other emulators by more than an order of magnitude. It has been deployed in Huawei DevEco Studio, a major Android IDE with millions of developers.

Publisher

Association for Computing Machinery (ACM)

Subject

General Computer Science

Reference80 articles.

1. Darren Abramson Jeff Jackson Sridhar Muthrasanallur Gil Neiger Greg Regnier Rajesh Sankaran Ioannis Schoinas Rich Uhlig Balaji Vembu and John Wiegert. 2006. Intel Virtualization Technology for Directed I/O. Intel Technology Journal(2006).

2. I/O Virtualization Technology Specification Revision 1.26;AMD.;AMD White Paper,2009

3. Anbox.com. 2021. Anbox: Container-based Android Emulator. https://anbox.io/.

4. Android.org. 2021. Application Not Responding of Android. https://developer.android.com/topic/performance/vitals/anr.

5. Android.org. 2021. GraphicBuffer: Android’s Native Window Buffer Implementation. https://android.googlesource.com/platform/frameworks/native/+/jb-mr0-release/libs/ui/GraphicBuffer.cpp.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3