HAX is only supported in MAC and Windows platform and is not conflict with KVM.
ETEXI
-DEF("disable-hax", 0, QEMU_OPTION_disable_hax, \
- "-disable-hax Disable HAX full virtualization support\n", QEMU_ARCH_I386)
-STEXI
-@item -disable-hax
-@findex -disable-hax
-Disable HAX (Hardware-based Acceleration eXecution) support. When HAX support detected, emulator will enable it by default. This option will disable the default action
-HAX is only supported in MAC and Windows platform and is not conflict with KVM.
-ETEXI
-
DEF("xen-domid", HAS_ARG, QEMU_OPTION_xen_domid,
"-xen-domid id specify xen guest domain id\n", QEMU_ARCH_ALL)
DEF("xen-create", 0, QEMU_OPTION_xen_create,
#endif
int acpi_enabled = 1;
int no_hpet = 0;
-int hax_disabled = 0;
+int hax_disabled = 1;
int fd_bootchk = 1;
int no_reboot = 0;
int no_shutdown = 0;
if (!hax_disabled)
{
ret = hax_init();
- dprint("HAX is %s and emulator runs in %s mode\n",
- !ret ? "working" : "not working",
+ if (ret && (ret != -ENOSPC))
+ dprint("No accelerator found.\n");
+ else {
+ dprint("HAX is %s and emulator runs in %s mode.\n",
+ !ret ? "working" : "not working",
!ret ? "fast virt" : "emulation");
+ return 0;
+ }
+
} else
dprint("HAX is disabled and emulator runs in emulation mode.\n");
#endif
- return 0;
+ return ret;
}
static struct {
{ "tcg", "tcg", tcg_available, tcg_init, &tcg_allowed },
{ "xen", "Xen", xen_available, xen_init, &xen_allowed },
{ "kvm", "KVM", kvm_available, kvm_init, &kvm_allowed },
- //{ "hax", "HAX", hax_available, hax_init, &hax_allowed },
};
static int configure_accelerator(void)
qemu_opts_reset(olist);
//qemu_opts_parse(olist, "accel=hax", 0);
break;
- case QEMU_OPTION_disable_hax:
- hax_disabled = 1;
- break;
#ifdef CONFIG_MARU
case QEMU_OPTION_max_touch_point:
{