Hi, qemu maintainers and community members, The following 6 patches implemented a new x86_64 CPU accelerator called the Android Emulator hypervisor driver (AEHD).
The Android Emulator hypervisor driver is a hypervisor for Windows (7 or later), made by porting the KVM from the linux kernel 4.9-rc7. Its initial purpose was to support the Android Emulator on the AMD platforms as the old name "Android Emulator Hypervisor Driver for AMD Processors" suggested. Despite the name, Intel processors have been supported ever since its first release. Since Intel dropped HAXM support, the android emulator is switching from HAXM to AEHD. Refer to: https://github.com/google/android-emulator-hypervisor-driver. This patchset implements the user space support for the new hypervisor. It was initially made by cloning and modifying the KVM source codes. In order to support users who wanted to use the new hypervisor to run generic OSes such as Windows and Ubuntu, it was periodically rebased to latest QEMU releases ever since QEMU v4.2.0. Refer to: https://github.com/qemu-gvm/qemu-gvm. Given that both the Windows driver and patched QEMU were out and tested for a few years, we would like to see if we could submit our work to the QEMU community. Users can have another choice of hypervisor on Windows. The patchset is tested on Windows 11 (64bit) with the AEHD 2.1 by installing Ubuntu 22.04 and Windows 10 guests and playing with savevm/loadvm. It is also tested on Linux (Ubuntu 22.04) and MacOS (Intel and Apple Silicon), making sure it does not break others. Any comments are welcome. Thanks! Note: The Android Emulator hypervisor driver will be maintained by Google. However, there is no plan to rebase it to the latest KVM. -- Haitao @Google