diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2017-01-10 11:59:58 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-19 22:07:46 +0100 |
commit | 6f8058238a63d0807d879fb2e924aff3d8f4bc67 (patch) | |
tree | 5747a48ac12ef2fa646f3080294e508e975801b6 /target/i386/hax-i386.h | |
parent | b0cb0a66d6d535112aa513568ef21dcb1ad283ed (diff) |
hax: add Darwin support
Re-add the MacOSX/Darwin support:
Use the Intel HAX is kernel-based hardware acceleration module
(similar to KVM on Linux).
Based on the original "target/i386: Add Intel HAX to android emulator" patch
from David Chou <david.j.chou@intel.com> from emu-2.2-release branch in
the external/qemu-android repository.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Message-Id: <81b85c3032da902e73e77302af508b4b1a7c0ead.1484045952.git.vpalatin@chromium.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/hax-i386.h')
-rw-r--r-- | target/i386/hax-i386.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/i386/hax-i386.h b/target/i386/hax-i386.h index bcbd105356..8ffe91fcb5 100644 --- a/target/i386/hax-i386.h +++ b/target/i386/hax-i386.h @@ -16,6 +16,10 @@ #include "cpu.h" #include "sysemu/hax.h" +#ifdef CONFIG_DARWIN +typedef int hax_fd; +#endif + #ifdef CONFIG_WIN32 typedef HANDLE hax_fd; #endif @@ -77,6 +81,10 @@ hax_fd hax_mod_open(void); void hax_memory_init(void); +#ifdef CONFIG_DARWIN +#include "target/i386/hax-darwin.h" +#endif + #ifdef CONFIG_WIN32 #include "target/i386/hax-windows.h" #endif |