Date: Tue, 2 Mar 2010 23:57:42 +0000 (UTC) From: Ivan Voras <ivoras@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r204611 - in head/sys: kern sys Message-ID: <201003022357.o22NvgII081707@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ivoras Date: Tue Mar 2 23:57:42 2010 New Revision: 204611 URL: http://svn.freebsd.org/changeset/base/204611 Log: Document the VM detection type and sysctl a bit better. Modified: head/sys/kern/subr_param.c head/sys/sys/systm.h Modified: head/sys/kern/subr_param.c ============================================================================== --- head/sys/kern/subr_param.c Tue Mar 2 23:53:38 2010 (r204610) +++ head/sys/kern/subr_param.c Tue Mar 2 23:57:42 2010 (r204611) @@ -124,7 +124,7 @@ SYSCTL_ULONG(_kern, OID_AUTO, sgrowsiz, "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 Modified: head/sys/sys/systm.h ============================================================================== --- head/sys/sys/systm.h Tue Mar 2 23:53:38 2010 (r204610) +++ head/sys/sys/systm.h Tue Mar 2 23:57:42 2010 (r204611) @@ -65,6 +65,9 @@ extern int maxusers; /* system tune hin 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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003022357.o22NvgII081707>