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 --- hax.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hax.h') diff --git a/hax.h b/hax.h index 9af61ce..a29e45e 100644 --- a/hax.h +++ b/hax.h @@ -11,6 +11,7 @@ struct hax_vcpu_state; #ifdef CONFIG_HAX int hax_enabled(void); +int hax_set_ramsize(uint64_t ramsize); int hax_init(int smp_cpus); int hax_init_vcpu(CPUState *env); /* Execute vcpu in non-root mode */ -- cgit v1.1