Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

HAXM is about 10x slower than kvm in Nested virtualization environment #264

Open
GGBond1989 opened this issue Feb 11, 2020 · 2 comments
Open

Comments

@GGBond1989
Copy link

I have 2 vm running in a linux host accel by kvm。One is windows10 and the other is ubuntu19.1 ,both installed android studio。The android emulator is pretty slower in the windows system accel by haxm , it takes about 5min to boot up。And in the ubuntu,the emulator take about 30s to boot up accel by kvm。

I noticed that , there is a pull request "Optimizing VMCS reads/writes with a new cache implementation" try to fix this problem ,is there any progress?or is there some patch i can test ?

@wcwang
Copy link
Contributor

wcwang commented Feb 12, 2020

Thanks for your report. KVM supports nested virtualization while HAXM has not yet. That is why the emulator within the Ubuntu guest can boot up fast while Windows guest cannot.
The pull request #130 will not resolve this issue completely. This pull request is under review and rebasing. You may retrieve the current patches through below commands. Thanks.

$ git checkout -b kryptoslogic-vmcs-refactor master
$ git pull https://github.com/kryptoslogic/haxm.git vmcs-refactor

@nevilad
Copy link
Contributor

nevilad commented Feb 14, 2020

Android studio can understand that it runs in a virtual machine and don't uses haxm in this case? And in ubuntu android studio uses kvm, not haxm?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants