Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/bhyverun.c
Show First 20 Lines • Show All 1,397 Lines • ▼ Show 20 Lines | #endif | ||||
if (guest_ncpus > max_vcpus) { | if (guest_ncpus > max_vcpus) { | ||||
fprintf(stderr, "%d vCPUs requested but only %d available\n", | fprintf(stderr, "%d vCPUs requested but only %d available\n", | ||||
guest_ncpus, max_vcpus); | guest_ncpus, max_vcpus); | ||||
exit(4); | exit(4); | ||||
} | } | ||||
fbsdrun_set_capabilities(ctx, BSP); | fbsdrun_set_capabilities(ctx, BSP); | ||||
/* | |||||
* This function could potentially adjust lowmem_limit | |||||
* Therefore, call this before vm_setup_memory | |||||
*/ | |||||
pci_early_quirks(ctx); | |||||
memflags = 0; | memflags = 0; | ||||
if (get_config_bool_default("memory.wired", false)) | if (get_config_bool_default("memory.wired", false)) | ||||
memflags |= VM_MEM_F_WIRED; | memflags |= VM_MEM_F_WIRED; | ||||
if (get_config_bool_default("memory.guest_in_core", false)) | if (get_config_bool_default("memory.guest_in_core", false)) | ||||
memflags |= VM_MEM_F_INCORE; | memflags |= VM_MEM_F_INCORE; | ||||
vm_set_memflags(ctx, memflags); | vm_set_memflags(ctx, memflags); | ||||
err = vm_setup_memory(ctx, memsize, VM_MMAP_ALL); | err = vm_setup_memory(ctx, memsize, VM_MMAP_ALL); | ||||
if (err) { | if (err) { | ||||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |