From 4a5a0efd49f100c7d53920807c83d9c74304ecd8 Mon Sep 17 00:00:00 2001 From: "Jiang, Yunhong" Date: Thu, 23 Feb 2012 06:31:12 +0800 Subject: Check HAXM capability in QEMU Checking HAXM capability to check if emulator can use HAXM virtalization. Currently two possibility that HAXM not work. Firstly is VT/NX is not enabled in the system, seconly is HAXM have used up the memory quota. See code comemnts for the memry quota explaination. Checking the capability in advance can give user more information that why HAXM is not working and be more user friendly. Change-Id: I13f73734cf783398f485fabd19cce43364b571c3 Signed-off-by: Xin, Xiaohui Signed-off-by: Gao, Fengqian Signed-off-by: Jiang, Yunhong --- vl-android.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vl-android.c') diff --git a/vl-android.c b/vl-android.c index 8071052..46f869a 100644 --- a/vl-android.c +++ b/vl-android.c @@ -4143,6 +4143,7 @@ int main(int argc, char **argv, char **envp) { int ret; + hax_set_ramsize(ram_size); ret = hax_init(smp_cpus); fprintf(stderr, "HAX is %s and emulator runs in %s mode\n", !ret ? "working" :"not working", !ret ? "fast virt" : "emulation"); -- cgit v1.1