From e4a3c7801e0075a49674c79972394ad962b338f2 Mon Sep 17 00:00:00 2001 From: Jun Nakajima Date: Sat, 17 Dec 2011 19:22:12 -0800 Subject: New files to add HAX support QEMU emulator interacts with the HAX kernel module. A HAX (Hardware-based Accelerated eXecution) kernel module is required to use HAX support. Most guest instructions run in VMX non-root (i.e. in hardware) mode and achieve near-native (relative to the host) performance. QEMU still emulates PIO/MMIO instructions and non-PG (paging) mode operations. HAX is supported only on Mac OS X and Windows hosts when Intel VT is present. Change-Id: I8dd52a35e315437dc568f555742bb8ab7e9d8ab2 Signed-off-by: Zhang, Xiantao Signed-off-by: Xin, Xiaohui Signed-off-by: Jiang Yunhong Signed-off-by: Nakajima, Jun --- android/config/target-x86/config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'android/config') diff --git a/android/config/target-x86/config.h b/android/config/target-x86/config.h index 242d45d..f9a3b81 100644 --- a/android/config/target-x86/config.h +++ b/android/config/target-x86/config.h @@ -5,3 +5,14 @@ #ifdef CONFIG_LINUX #define CONFIG_KVM 1 #endif + +/* + * HAX is supported in darwin and windows host + */ +#ifdef CONFIG_DARWIN +#define CONFIG_HAX 1 +#endif + +#ifdef CONFIG_WIN32 +#define CONFIG_HAX 1 +#endif -- cgit v1.1