Home | History | Annotate | Download | only in emulation

Lines Matching refs:hax

39 //       related to KVM or HAX.
135 // Version numbers for the HAX kernel module.
147 ///// Windows HAX support.
156 // Windows IOCTL code to extract HAX kernel module version.
166 // 1) Try to find the HAX kernel module.
167 ScopedHandle hax(CreateFile("\\\\.\\HAX",
174 if (!hax.valid()) {
177 status->assign("HAX kernel module is not installed!");
180 "Opening HAX kernel module failed: %u",
190 BOOL ret = DeviceIoControl(hax.get(),
199 "Could not extract HAX module version: %u",
207 "HAX version (%d) is too old (need at least %d).",
215 "HAX (version %d) is installed and usable.",
225 ///// Darwin HAX support.
230 // An IOCTL command number used to retrieve the HAX kernel module version.
237 // 1) Check that /dev/HAX exists.
238 if (::access("/dev/HAX", F_OK)) {
240 "HAX is not installed on this machine (/dev/HAX is missing).");
243 // 2) Check that /dev/HAX can be opened.
244 if (::access("/dev/HAX", R_OK)) {
246 "This user doesn't have permission to use HAX (/dev/HAX).");
250 ScopedFd fd(open("/dev/HAX", O_RDWR));
252 status->assign("Could not open /dev/HAX: ");
257 // 4) Extract HAX version number.
263 "Could not extract HAX version: %s",
271 "Malformed HAX version numbers (current=%d, compat=%d)\n",
281 "HAX version too old: %d (expected at least %d)\n",
289 "HAX (version %d) is installed and usable.",
295 #error "Unsupported HAX host platform"