aboutsummaryrefslogtreecommitdiffstats
path: root/target-i386/hax-darwin.h
diff options
context:
space:
mode:
authorJiang, Yunhong <yunhong.jiang@intel.com>2012-03-23 13:47:38 +0800
committerJiang, Yunhong <yunhong.jiang@intel.com>2012-04-07 22:36:08 +0800
commit8a539eaab40dc7a8047dbf97c081467029e6c518 (patch)
treef429032dc6e26dfd4af5ffb27a5ddbb1bffae45f /target-i386/hax-darwin.h
parentf597bde4b03c8732013c673ca920599d1ee3160d (diff)
downloadexternal_qemu-8a539eaab40dc7a8047dbf97c081467029e6c518.zip
external_qemu-8a539eaab40dc7a8047dbf97c081467029e6c518.tar.gz
external_qemu-8a539eaab40dc7a8047dbf97c081467029e6c518.tar.bz2
Add a HAXM interface for QEMU API version
Add a HAXM interface so that QEMU can communicate its API version to HAXM. With this, HAXM can keep better backward compatibility, for example, masking of the new features if qemu does not support new features. Change-Id: I24c7c8d353653978f507739f6e53a9d389d06e43 Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'target-i386/hax-darwin.h')
-rw-r--r--target-i386/hax-darwin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/target-i386/hax-darwin.h b/target-i386/hax-darwin.h
index 2c6129b..95a9b31 100644
--- a/target-i386/hax-darwin.h
+++ b/target-i386/hax-darwin.h
@@ -59,6 +59,14 @@ static inline void hax_close_fd(hax_fd fd)
* Setup translation between guest physical address and host physical address
*/
#define HAX_VM_IOCTL_SET_RAM _IOWR(0, 0x82, struct hax_set_ram_info)
+
+/*
+ * QEMU notify HAXM driver of the API version currently in use, so that
+ * HAXM driver will not present features that possibly not supported
+ * by QEMU
+ */
+#define HAX_VM_IOCTL_NOTIFY_QEMU_VERSION _IOW(0, 0x84, struct hax_qemu_version)
+
/* Run the guest in non-root mode */
#define HAX_VCPU_IOCTL_RUN _IO(0, 0xc0)
/* Sync QEMU's guest MSR value to HAX driver */