diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-02-23 07:31:23 -0800 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-02-23 07:31:25 -0800 |
commit | 1991d8c2b6b85170ee1707ca19fe5c746187a77c (patch) | |
tree | bcbc52ee128f47fb1d05e200402e60f197a33e25 /target-i386/hax-darwin.c | |
parent | 1533b3ad6f215e3727ba081ebf6c170c22794c3c (diff) | |
parent | 4a5a0efd49f100c7d53920807c83d9c74304ecd8 (diff) | |
download | external_qemu-1991d8c2b6b85170ee1707ca19fe5c746187a77c.zip external_qemu-1991d8c2b6b85170ee1707ca19fe5c746187a77c.tar.gz external_qemu-1991d8c2b6b85170ee1707ca19fe5c746187a77c.tar.bz2 |
Merge "Check HAXM capability in QEMU"
Diffstat (limited to 'target-i386/hax-darwin.c')
-rw-r--r-- | target-i386/hax-darwin.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target-i386/hax-darwin.c b/target-i386/hax-darwin.c index 45c781b..1522d39 100644 --- a/target-i386/hax-darwin.c +++ b/target-i386/hax-darwin.c @@ -85,6 +85,20 @@ int hax_set_phys_mem(target_phys_addr_t start_addr, ram_addr_t size, ram_addr_t return ret; } +int hax_capability(struct hax_state *hax, struct hax_capabilityinfo *cap) +{ + int ret; + + ret = ioctl(hax->fd, HAX_IOCTL_CAPABILITY, cap); + if (ret == -1) + { + dprint("Failed to get HAX capability\n"); + return -errno; + } + + return 0; +} + int hax_mod_version(struct hax_state *hax, struct hax_module_version *version) { int ret; |