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>
3 files changed