History log of /external/qemu/kvm-android.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a17697f24cc0f7aa0d7f72f356b20c08a8d3806 10-Apr-2014 thomas knych <thomaswk@google.com> Allow path to KVM to be overridden by environment.

In a secured environments /dev/kvm may not be readable/writable by the
current user. However the same device node may have been created at
another path by the administrator with file permissions that allow the
current user to access it. In order to use the emulator with KVM in this
environment, the hard-coded paths to /dev/kvm must be removed.

This introduces the ANDROID_EMULATOR_KVM_DEVICE environment variable.
If defined, this variable must point to the full device path.

Change-Id: I3ca3ae61c043a2e58d98756851770736db3647c5
Signed-off-by: thomas knych <thomaswk@google.com>
/external/qemu/kvm-android.c
80ab327edf7caf8d6bd016c80e17a729f03076d7 30-May-2011 David 'Digit' Turner <digit@android.com> kvm: Fix KVM auto-detection

Now that we have a work-around for the bug that caused KVM
to crash when the 32-bit emulator was running under a 64-bit
kernel, we can simplify the auto-detection logic.

Change-Id: Ia06908aa947cc3865451a04c38a7782cf4c7b831
/external/qemu/kvm-android.c
36597756e589622ee6c6628efb47c1b130d5ee85 20-May-2011 David 'Digit' Turner <digit@android.com> x86: kvm: fix KVM build + enable auto-detection.

This patch fixes the build of KVM support in the x86 emulator by
copying official Ubuntu Lucid KVM headers into android/config/linux-*/

This removes the need to rely on the build machine's versions of these
headers, which caused various issues.

Also, by default, the emulator will now probe the system to see if it
can start in KVM mode automatically. See android-kvm.c for details.
You can see the result of the probing with the -verbose option.

IMPORTANT NOTE:
It looks like there is a bug in the KVM code when the emulator
is built as a 32-bit binary, running on a 64-bit kernel, so
we explicitely disable KVM when we detect this case. It's hard
to tell whether this is a bug in QEMU or some versions of the
KVM driver.

As such, KVM only works when building the emulator as a
64-bit program. For now, this is only possible with
"android-configure.sh --try-64", not the Android build system.

+ Add a new QEMU option (-disable-kvm) to explicitely disable KVM
if needed. This is an addition to -enable-kvm which already exists
(and forces usage of KVM).

Change-Id: I6a397cae29ab62b1c56fce95c1ee75a4664d6688
/external/qemu/kvm-android.c