Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/vmm.c
Show All 12 Lines | |||||
SDT_PROVIDER_DEFINE(vmm); | SDT_PROVIDER_DEFINE(vmm); | ||||
static MALLOC_DEFINE(M_VM, "vm", "vm"); | static MALLOC_DEFINE(M_VM, "vm", "vm"); | ||||
/* statistics */ | /* statistics */ | ||||
static VMM_STAT(VCPU_TOTAL_RUNTIME, "vcpu total runtime"); | static VMM_STAT(VCPU_TOTAL_RUNTIME, "vcpu total runtime"); | ||||
SYSCTL_NODE(_hw, OID_AUTO, vmm, CTLFLAG_RW, NULL, NULL); | SYSCTL_NODE(_hw, OID_AUTO, vmm, CTLFLAG_RW | CTLFLAG_MPSAFE, NULL, | ||||
NULL); | |||||
/* | /* | ||||
* Halt the guest if all vcpus are executing a HLT instruction with | * Halt the guest if all vcpus are executing a HLT instruction with | ||||
* interrupts disabled. | * interrupts disabled. | ||||
*/ | */ | ||||
static int halt_detection_enabled = 1; | static int halt_detection_enabled = 1; | ||||
SYSCTL_INT(_hw_vmm, OID_AUTO, halt_detection, CTLFLAG_RDTUN, | SYSCTL_INT(_hw_vmm, OID_AUTO, halt_detection, CTLFLAG_RDTUN, | ||||
&halt_detection_enabled, 0, | &halt_detection_enabled, 0, | ||||
Show All 12 Lines |