Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2013 19:22:14 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Neel Natu <neel@FreeBSD.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r245066 - head/sys/kern
Message-ID:  <999FD346-D6A2-473C-91F6-BDCE8363A62E@gmail.com>
In-Reply-To: <201301051918.r05JIptx030509@svn.freebsd.org>
References:  <201301051918.r05JIptx030509@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 5, 2013, at 11:18 AM, Neel Natu <neel@FreeBSD.org> wrote:

> Author: neel
> Date: Sat Jan  5 19:18:50 2013
> New Revision: 245066
> URL: http://svnweb.freebsd.org/changeset/base/245066
>=20
> Log:
>  Teach the kernel to recognize that it is executing inside a bhyve virtual=

>  machine.
>=20
>  Obtained from:    NetApp
>=20
> Modified:
>  head/sys/kern/subr_param.c
>=20
> Modified: head/sys/kern/subr_param.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
> --- 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[] =3D {
>    "Plex86",            /* Plex86 */
>    "Bochs",            /* Bochs */
>    "Xen",                /* Xen */
> +    "BHYVE",            /* bhyve */
>    NULL
> };

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

Thanks for the commit :).

-Garrett=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?999FD346-D6A2-473C-91F6-BDCE8363A62E>