svn commit: r245066 - head/sys/kern
John Baldwin
jhb at freebsd.org
Mon Jan 7 15:14:59 UTC 2013
On Saturday, January 05, 2013 02:18:51 PM Neel Natu 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
> };
It would be nice to start using the CPUID leaf for VM's in preference to the
SMBIOS strings at some point. (I think it's level 0x40000000?)
--
John Baldwin
More information about the svn-src-all
mailing list