diff options
author | ivoras <ivoras@FreeBSD.org> | 2010-03-02 23:57:42 +0000 |
---|---|---|
committer | ivoras <ivoras@FreeBSD.org> | 2010-03-02 23:57:42 +0000 |
commit | 14f917572362cbc0c956ef03974c0e1fa304ccc8 (patch) | |
tree | b041f1ac56e788a289df410579333f3defb8bd78 | |
parent | e62ff53b730a123cf73dc3038e3bdde150c76735 (diff) | |
download | FreeBSD-src-14f917572362cbc0c956ef03974c0e1fa304ccc8.zip FreeBSD-src-14f917572362cbc0c956ef03974c0e1fa304ccc8.tar.gz |
Document the VM detection type and sysctl a bit better.
-rw-r--r-- | sys/kern/subr_param.c | 2 | ||||
-rw-r--r-- | sys/sys/systm.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index a4d4ff8..f8d60dd 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -124,7 +124,7 @@ SYSCTL_ULONG(_kern, OID_AUTO, sgrowsiz, CTLFLAG_RDTUN, &sgrowsiz, 0, "Amount to grow stack on a stack fault"); SYSCTL_PROC(_kern, OID_AUTO, vm_guest, CTLFLAG_RD | CTLTYPE_STRING, NULL, 0, sysctl_kern_vm_guest, "A", - "Virtual machine detected? (none|generic|xen)"); + "Virtual machine guest detected? (none|generic|xen)"); /* * These have to be allocated somewhere; allocating diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 3868c9a..7c0dd8b 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -65,6 +65,9 @@ extern int maxusers; /* system tune hint */ extern int ngroups_max; /* max # of supplemental groups */ extern int vm_guest; /* Running as virtual machine guest? */ +/* Detected virtual machine guest types. The intention is to expand + * and/or add to the VM_GUEST_VM type if specific VM functionality is + * ever implemented (e.g. vendor-specific paravirtualization features). */ enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN }; #ifdef INVARIANTS /* The option is always available */ |