Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/amd64/bhyverun_machdep.c
| Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | case 'u': | ||||
| break; | break; | ||||
| case 'U': | case 'U': | ||||
| set_config_value("uuid", optarg); | set_config_value("uuid", optarg); | ||||
| break; | break; | ||||
| case 'w': | case 'w': | ||||
| set_config_bool("x86.strictmsr", false); | set_config_bool("x86.strictmsr", false); | ||||
| break; | break; | ||||
| case 'W': | case 'W': | ||||
| set_config_bool("virtio_msix", false); | set_config_bool("virtio.msix", false); | ||||
| break; | break; | ||||
| case 'x': | case 'x': | ||||
| set_config_bool("x86.x2apic", true); | set_config_bool("x86.x2apic", true); | ||||
| break; | break; | ||||
| case 'Y': | case 'Y': | ||||
| set_config_bool("x86.mptable", false); | set_config_bool("x86.mptable", false); | ||||
| break; | break; | ||||
| case 'h': | case 'h': | ||||
| bhyve_usage(0); | bhyve_usage(0); | ||||
| default: | default: | ||||
| bhyve_usage(1); | bhyve_usage(1); | ||||
| } | } | ||||
| } | } | ||||
| /* Handle backwards compatibility aliases in config options. */ | /* Handle backwards compatibility aliases in config options. */ | ||||
| if (get_config_value("lpc.bootrom") != NULL && | bhyve_cfg_warn("lpc.bootrom", "bootrom", "-o bootrom"); | ||||
| get_config_value("bootrom") == NULL) { | bhyve_cfg_warn("lpc.bootvars", "bootvars", "-o bootvars"); | ||||
| warnx("lpc.bootrom is deprecated, use '-o bootrom' instead"); | bhyve_cfg_warn("virtio_msix", "virtio.msix", "virtio.msix"); | ||||
| set_config_value("bootrom", get_config_value("lpc.bootrom")); | |||||
| } | |||||
| if (get_config_value("lpc.bootvars") != NULL && | |||||
| get_config_value("bootvars") == NULL) { | |||||
| warnx("lpc.bootvars is deprecated, use '-o bootvars' instead"); | |||||
| set_config_value("bootvars", get_config_value("lpc.bootvars")); | |||||
| } | } | ||||
| } | |||||
| void | void | ||||
| bhyve_init_vcpu(struct vcpu *vcpu) | bhyve_init_vcpu(struct vcpu *vcpu) | ||||
| { | { | ||||
| int err, tmp; | int err, tmp; | ||||
| if (get_config_bool_default("x86.vmexit_on_hlt", false)) { | if (get_config_bool_default("x86.vmexit_on_hlt", false)) { | ||||
| err = vm_get_capability(vcpu, VM_CAP_HALT_EXIT, &tmp); | err = vm_get_capability(vcpu, VM_CAP_HALT_EXIT, &tmp); | ||||
| ▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines | |||||