From a381ef07088ce479610129e37bfef42538f397da Mon Sep 17 00:00:00 2001 From: Jun Nakajima Date: Sat, 17 Dec 2011 19:13:25 -0800 Subject: Changes to existing files to add HAX support HAX (Hardware-based Accelerated eXecution) employes hardware virtualization technology to boost performance of the Android emulator on Mac OS X or Windows hosts. This changeset includes the changes required to the existing files. To pass the compilation, hax.h is added, but CONFIG_HAX is disabled so that no real changes added. Change-Id: Ifa5777e8788e6698747c1ec4cd91315161c2ca0b Signed-off-by: Zhang, Xiantao Signed-off-by: Xin, Xiaohui Signed-off-by: Jiang Yunhong Signed-off-by: Nakajima, Jun --- kvm.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kvm.h') diff --git a/kvm.h b/kvm.h index d390dae..2ef89c7 100644 --- a/kvm.h +++ b/kvm.h @@ -136,7 +136,9 @@ uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function, int reg); /* generic hooks - to be moved/refactored once there are more users */ - +#ifdef CONFIG_HAX +void hax_vcpu_sync_state(CPUState *env, int modified); +#endif static inline void cpu_synchronize_state(CPUState *env, int modified) { if (kvm_enabled()) { @@ -145,6 +147,9 @@ static inline void cpu_synchronize_state(CPUState *env, int modified) else kvm_arch_get_registers(env); } +#ifdef CONFIG_HAX + hax_vcpu_sync_state(env, modified); +#endif } #endif -- cgit v1.1