in the calling function which will return EIO back up the stack to vmd(8).
Fixes a panic when CPUs fail to spin up for other reasons during boot,
noticed by reyk.
-/* $OpenBSD: vmm.c,v 1.64 2016/06/10 16:37:16 stefan Exp $ */
+/* $OpenBSD: vmm.c,v 1.65 2016/06/28 05:50:55 mlarkin Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
*/
if (ci->ci_vmm_flags & CI_VMM_VMX) {
if (ci->ci_vmxon_region == 0)
- panic("NULL vmxon region specified\n");
+ return;
else {
bzero(ci->ci_vmxon_region, PAGE_SIZE);
ci->ci_vmxon_region->vr_revision =
/* Enter VMX mode */
if (vmxon((uint64_t *)&ci->ci_vmxon_region_pa))
- panic("VMXON failed\n");
+ return;
}
}