BT

Android Emulator Now Supports AMD Hardware Acceleration and Hyper-V on Windows

| by Sergio De Simone Follow 17 Followers on Jul 11, 2018. Estimated reading time: 2 minutes |

The latest release of the Android Emulator for Windows aims to boost performance when running on AMD processors or a Microsoft Hyper-V hypervisor by bringing support for hardware accelerated enhancements that were previously only available for Intel processors.

While native AMD support has been available for a long time on Mac and Linux, this was not the case when using Windows, where the Android Emulator was bound to use software emulation. Adding support for AMD processors and Hyper-V to the Windows Android Emulator, Google has been addressing two long-standing user requests from the developer community, writes Google product manager Jamal Eason.

This is made possible by a new API Microsoft recently open-sourced, Windows Hypervisor Platform (WHPX). WHPX adds an extended user-mode API to create and manage partitions at the hypervisor level, configure memory mappings for the partition, and create and control execution of virtual processors. WHPX enables the creation of virtual processors that can emulate instructions taking advantage of the accelerators provided by the underlying hardware processor.

To enable the new features on a Windows OS running on an AMD processor, you have to enable the "Windows Hypervisor Platform" settings under Windows Features. Additional requirements are:

Support for Hyper-V means developers can benefit from the Android emulator hardware acceleration also when running it side-by-side with other programs using Hyper-V, such as Docker, the HoloLens emulator, and others, or inside an Azure virtual machine. Previously, using the Android Emulator required disabling Hyper-V altogether.

2>emulator: CPU Acceleration: DISABLED
2>emulator: CPU Acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.
2>emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
2>Please ensure Windows Hypervisor Platform (WHPX) is properly installed and usable.
2>CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.

If you want to use Hyper-V at the same time as the Android emulator, you will need to enable the "Hyper-V" settings under Windows Features, which is available for Windows 10 Professional/Education/Enterprise. This is in addition to the usual requirements for running Hyper-V, which are basically using an Intel Core processor that supports Virtualization Technology (VT-x), Extended Page Tables (EPT), and Unrestricted Guest (UG) features. Furthermore, VT-x needs to be enabled in the BIOS.

Developers using Windows on Intel processors will not need to change their environment configuration, since the Android Emulator will continue to use the default Intel Hardware Accelerated Execution Manager (HAXM) configuration.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT