Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bhyverun.c
Show First 20 Lines • Show All 1,534 Lines • ▼ Show 20 Lines | #ifndef WITHOUT_CAPSICUM | ||||
if (caph_enter() == -1) | if (caph_enter() == -1) | ||||
errx(EX_OSERR, "cap_enter() failed"); | errx(EX_OSERR, "cap_enter() failed"); | ||||
#endif | #endif | ||||
#ifdef BHYVE_SNAPSHOT | #ifdef BHYVE_SNAPSHOT | ||||
if (restore_file != NULL) | if (restore_file != NULL) | ||||
destroy_restore_state(&rstate); | destroy_restore_state(&rstate); | ||||
/* initialize mutex/cond variables */ | |||||
init_snapshot(); | |||||
/* | /* | ||||
* checkpointing thread for communication with bhyvectl | * checkpointing thread for communication with bhyvectl | ||||
*/ | */ | ||||
if (init_checkpoint_thread(ctx) < 0) | if (init_checkpoint_thread(ctx) < 0) | ||||
printf("Failed to start checkpoint thread!\r\n"); | printf("Failed to start checkpoint thread!\r\n"); | ||||
if (restore_file != NULL) | if (restore_file != NULL) | ||||
vm_restore_time(ctx); | vm_restore_time(ctx); | ||||
Show All 30 Lines |