Home | History | Annotate | Download | only in target-i386

Lines Matching refs:hax

15  * HAX common code for both Windows and Darwin
19 #include "target-i386/hax-i386.h"
52 /* Sync the vcpu state from hax kernel module */
88 * Sync the vcpu state to HAX kernel module
124 /* Least HAX kernel version */
127 static int hax_get_capability(struct hax_state *hax)
132 ret = hax_capability(hax, cap);
148 if (cap->mem_quota < hax->mem_quota)
158 static int hax_version_support(struct hax_state *hax)
163 ret = hax_mod_version(hax, &version);
220 dprint("Invalid HAX tunnel size \n");
251 * 2. hax_close_fd will require the HAX kernel module to free vcpu
266 dprint("Failed to create HAX vcpu\n");
276 struct hax_vm *hax_vm_create(struct hax_state *hax)
282 if (hax_invalid_fd(hax->fd))
285 if (hax->vm)
286 return hax->vm;
292 ret = hax_host_create_vm(hax, &vm_id);
298 vm->fd = hax_host_open_vm(hax, vm_id);
305 hax->vm = vm;
310 hax->vm = NULL;
332 struct hax_state *hax = &hax_global;
334 memset(hax, 0, sizeof(struct hax_state));
335 hax->mem_quota = ram_size;
342 struct hax_state *hax = NULL;
348 hax = &hax_global;
350 hax->fd = hax_mod_open();
351 if (hax_invalid_fd(hax->fd))
353 hax->fd = 0;
358 ret = hax_get_capability(hax);
366 if (!hax_version_support(hax))
368 dprint("Incompatible HAX version. Qemu current version %x ", hax_cur_version );
369 dprint("requires least HAX version %x\n", hax_lest_version);
374 hax->vm = hax_vm_create(hax);
375 if (!hax->vm)
377 dprint("Failed to create HAX VM\n");
384 hax_notify_qemu_version(hax->vm->fd, &qversion);
390 if (hax->vm)
391 hax_vm_destroy(hax->vm);
392 if (hax->fd)
393 hax_mod_close(hax);
476 * Unlike KVM, the HAX kernel module checks the eflags, instead.
513 * Request the HAX kernel module to run the CPU for us until one of
602 /* these situation will continue to hax module */
607 dprint("Unknow exit %x from hax\n", ht->_exit_status);
653 dprint("Unknown hax vcpu exec return %x\n", next);
722 /* The sregs has been synced with HAX kernel already before this call */
1061 dprint("Failed to sync HAX vcpu context\n");