aboutsummaryrefslogtreecommitdiffstats
path: root/target-i386/hax-windows.h
diff options
context:
space:
mode:
authorJiang, Yunhong <yunhong.jiang@intel.com>2012-02-23 06:31:12 +0800
committerJiang, Yunhong <yunhong.jiang@intel.com>2012-02-23 23:11:12 +0800
commit4a5a0efd49f100c7d53920807c83d9c74304ecd8 (patch)
tree44b171204d5d07b8ec4c2788cf107fa63fd4c211 /target-i386/hax-windows.h
parenta3338e7214cd0c69912866c6d71d8700c6ab35e2 (diff)
downloadexternal_qemu-4a5a0efd49f100c7d53920807c83d9c74304ecd8.zip
external_qemu-4a5a0efd49f100c7d53920807c83d9c74304ecd8.tar.gz
external_qemu-4a5a0efd49f100c7d53920807c83d9c74304ecd8.tar.bz2
Check HAXM capability in QEMU
Checking HAXM capability to check if emulator can use HAXM virtalization. Currently two possibility that HAXM not work. Firstly is VT/NX is not enabled in the system, seconly is HAXM have used up the memory quota. See code comemnts for the memry quota explaination. Checking the capability in advance can give user more information that why HAXM is not working and be more user friendly. Change-Id: I13f73734cf783398f485fabd19cce43364b571c3 Signed-off-by: Xin, Xiaohui <xiaohui.xin@intel.com> Signed-off-by: Gao, Fengqian <fengqian.gao@intel.com> Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'target-i386/hax-windows.h')
-rw-r--r--target-i386/hax-windows.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/hax-windows.h b/target-i386/hax-windows.h
index b6d60b7..9e596d3 100644
--- a/target-i386/hax-windows.h
+++ b/target-i386/hax-windows.h
@@ -45,6 +45,7 @@ static inline int hax_invalid_fd(hax_fd fd)
/* See comments for the ioctl in hax-darwin.h */
#define HAX_IOCTL_VERSION CTL_CODE(HAX_DEVICE_TYPE, 0x900, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define HAX_IOCTL_CREATE_VM CTL_CODE(HAX_DEVICE_TYPE, 0x901, METHOD_BUFFERED, FILE_ANY_ACCESS)
+#define HAX_IOCTL_CAPABILITY CTL_CODE(HAX_DEVICE_TYPE, 0x910, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define HAX_VM_IOCTL_VCPU_CREATE CTL_CODE(HAX_DEVICE_TYPE, 0x902, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define HAX_VM_IOCTL_ALLOC_RAM CTL_CODE(HAX_DEVICE_TYPE, 0x903, METHOD_BUFFERED, FILE_ANY_ACCESS)