Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/systm.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Detected virtual machine guest types. The intention is to expand | * Detected virtual machine guest types. The intention is to expand | ||||
* and/or add to the VM_GUEST_VM type if specific VM functionality is | * and/or add to the VM_GUEST_VM type if specific VM functionality is | ||||
* ever implemented (e.g. vendor-specific paravirtualization features). | * ever implemented (e.g. vendor-specific paravirtualization features). | ||||
* Keep in sync with vm_guest_sysctl_names[]. | * Keep in sync with vm_guest_sysctl_names[]. | ||||
*/ | */ | ||||
enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV, | enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV, | ||||
VM_GUEST_VMWARE, VM_GUEST_KVM, VM_GUEST_BHYVE, VM_LAST }; | VM_GUEST_VMWARE, VM_GUEST_KVM, VM_GUEST_BHYVE, VM_GUEST_VBOX, | ||||
VM_LAST }; | |||||
#if defined(WITNESS) || defined(INVARIANT_SUPPORT) | #if defined(WITNESS) || defined(INVARIANT_SUPPORT) | ||||
void kassert_panic(const char *fmt, ...) __printflike(1, 2); | void kassert_panic(const char *fmt, ...) __printflike(1, 2); | ||||
#endif | #endif | ||||
#ifdef INVARIANTS /* The option is always available */ | #ifdef INVARIANTS /* The option is always available */ | ||||
#define KASSERT(exp,msg) do { \ | #define KASSERT(exp,msg) do { \ | ||||
if (__predict_false(!(exp))) \ | if (__predict_false(!(exp))) \ | ||||
▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines |