Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bhyverun.c
Show First 20 Lines • Show All 1,157 Lines • ▼ Show 20 Lines | case 'l': | ||||
} | } | ||||
break; | break; | ||||
#ifdef BHYVE_SNAPSHOT | #ifdef BHYVE_SNAPSHOT | ||||
case 'r': | case 'r': | ||||
restore_file = optarg; | restore_file = optarg; | ||||
break; | break; | ||||
#endif | #endif | ||||
case 's': | case 's': | ||||
if (strncmp(optarg, "help", strlen(optarg)) == 0) { | if (pci_parse_slot(optarg) != 0) | ||||
pci_print_supported_devices(); | exit(1); | ||||
exit(0); | |||||
} else if (pci_parse_slot(optarg) != 0) | |||||
exit(4); | |||||
else | else | ||||
break; | break; | ||||
case 'S': | case 'S': | ||||
memflags |= VM_MEM_F_WIRED; | memflags |= VM_MEM_F_WIRED; | ||||
break; | break; | ||||
case 'm': | case 'm': | ||||
error = vm_parse_memsize(optarg, &memsize); | error = vm_parse_memsize(optarg, &memsize); | ||||
if (error) | if (error) | ||||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | #endif | ||||
ioapic_init(ctx); | ioapic_init(ctx); | ||||
rtc_init(ctx, rtc_localtime); | rtc_init(ctx, rtc_localtime); | ||||
sci_init(ctx); | sci_init(ctx); | ||||
/* | /* | ||||
* Exit if a device emulation finds an error in its initilization | * Exit if a device emulation finds an error in its initilization | ||||
*/ | */ | ||||
if (init_pci(ctx) != 0) { | if (init_pci(ctx) != 0) | ||||
perror("device emulation initialization error"); | exit(1); | ||||
exit(4); | |||||
} | |||||
/* | /* | ||||
* Initialize after PCI, to allow a bootrom file to reserve the high | * Initialize after PCI, to allow a bootrom file to reserve the high | ||||
* region. | * region. | ||||
*/ | */ | ||||
if (acpi) | if (acpi) | ||||
vmgenc_init(ctx); | vmgenc_init(ctx); | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |