Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bhyverun.c
Show First 20 Lines • Show All 555 Lines • ▼ Show 20 Lines | |||||
static struct vmctx * | static struct vmctx * | ||||
do_open(const char *vmname) | do_open(const char *vmname) | ||||
{ | { | ||||
struct vmctx *ctx; | struct vmctx *ctx; | ||||
int error; | int error; | ||||
bool reinit, romboot; | bool reinit, romboot; | ||||
reinit = romboot = false; | reinit = false; | ||||
#ifdef __amd64__ | #ifdef __amd64__ | ||||
if (lpc_bootrom()) | romboot = lpc_bootrom() != NULL; | ||||
#else | |||||
romboot = true; | romboot = true; | ||||
#endif | #endif | ||||
error = vm_create(vmname); | error = vm_create(vmname); | ||||
if (error) { | if (error) { | ||||
if (errno == EEXIST) { | if (errno == EEXIST) { | ||||
if (romboot) { | if (romboot) { | ||||
reinit = true; | reinit = true; | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines |