Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bhyverun.c
Show First 20 Lines • Show All 1,118 Lines • ▼ Show 20 Lines | case 'A': | ||||
break; | break; | ||||
case 'b': | case 'b': | ||||
bvmcons = 1; | bvmcons = 1; | ||||
break; | break; | ||||
case 'D': | case 'D': | ||||
destroy_on_poweroff = 1; | destroy_on_poweroff = 1; | ||||
break; | break; | ||||
case 'p': | case 'p': | ||||
if (pincpu_parse(optarg) != 0) { | if (pincpu_parse(optarg) != 0) { | ||||
errx(EX_USAGE, "invalid vcpu pinning " | errx(EX_USAGE, "invalid vcpu pinning " | ||||
"configuration '%s'", optarg); | "configuration '%s'", optarg); | ||||
} | } | ||||
break; | break; | ||||
case 'c': | case 'c': | ||||
if (topology_parse(optarg) != 0) { | if (topology_parse(optarg) != 0) { | ||||
errx(EX_USAGE, "invalid cpu topology " | errx(EX_USAGE, "invalid cpu topology " | ||||
"'%s'", optarg); | "'%s'", optarg); | ||||
} | } | ||||
break; | break; | ||||
case 'C': | case 'C': | ||||
memflags |= VM_MEM_F_INCORE; | memflags |= VM_MEM_F_INCORE; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | for (vcpu = 0; vcpu < guest_ncpus; vcpu++) { | ||||
if (vcpu == BSP) | if (vcpu == BSP) | ||||
continue; | continue; | ||||
fprintf(stdout, "spinning up vcpu no %d...\r\n", vcpu); | fprintf(stdout, "spinning up vcpu no %d...\r\n", vcpu); | ||||
spinup_vcpu(ctx, vcpu); | spinup_vcpu(ctx, vcpu); | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
* Head off to the main event dispatch loop | * Head off to the main event dispatch loop | ||||
*/ | */ | ||||
mevent_dispatch(); | mevent_dispatch(); | ||||
exit(4); | exit(4); | ||||
} | } |