svn commit: r245066 - head/sys/kern

Garrett Cooper yanegomi at gmail.com
Mon Jan 7 03:22:28 UTC 2013


On Jan 5, 2013, at 11:18 AM, Neel Natu <neel at FreeBSD.org> wrote:

> Author: neel
> Date: Sat Jan  5 19:18:50 2013
> New Revision: 245066
> URL: http://svnweb.freebsd.org/changeset/base/245066
> 
> Log:
>  Teach the kernel to recognize that it is executing inside a bhyve virtual
>  machine.
> 
>  Obtained from:    NetApp
> 
> Modified:
>  head/sys/kern/subr_param.c
> 
> Modified: head/sys/kern/subr_param.c
> ==============================================================================
> --- head/sys/kern/subr_param.c    Sat Jan  5 18:48:23 2013    (r245065)
> +++ head/sys/kern/subr_param.c    Sat Jan  5 19:18:50 2013    (r245066)
> @@ -160,6 +160,7 @@ static const char *const vm_bnames[] = {
>    "Plex86",            /* Plex86 */
>    "Bochs",            /* Bochs */
>    "Xen",                /* Xen */
> +    "BHYVE",            /* bhyve */
>    NULL
> };

Interesting. This needs to be abstracted out a bit in order to work more properly with VMware and other platforms that use the VT calls properly (and get rid of some duplicated effort in tsc.c), but this is definitely a good breadcrumb for cleaning up our vm detection and handling layer.

Thanks for the commit :).

-Garrett


More information about the svn-src-all mailing list