Lines Matching refs:hax
14 /* HAX module interface - darwin version */
21 #include "target-i386/hax-i386.h"
24 int fd = open("/dev/HAX", O_RDWR);
28 dprint("Failed to open the hax module\n");
88 int hax_capability(struct hax_state *hax, struct hax_capabilityinfo *cap)
92 ret = ioctl(hax->fd, HAX_IOCTL_CAPABILITY, cap);
95 dprint("Failed to get HAX capability\n");
102 int hax_mod_version(struct hax_state *hax, struct hax_module_version *version)
106 ret = ioctl(hax->fd, HAX_IOCTL_VERSION, version);
109 dprint("Failed to get HAX version\n");
153 int hax_host_create_vm(struct hax_state *hax, int *vmid)
158 if (hax_invalid_fd(hax->fd))
161 if (hax->vm)
164 ret = ioctl(hax->fd, HAX_IOCTL_CREATE_VM, &vm_id);
169 hax_fd hax_host_open_vm(struct hax_state *hax, int vm_id)
244 dprint("Failed to setup the hax tunnel\n");
250 dprint("Invalid hax tunnel size %x\n", info.size);