Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2013 14:25:47 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Neel Natu <neel@freebsd.org>
Subject:   Re: svn commit: r245066 - head/sys/kern
Message-ID:  <CAGH67wTc2%2BJL2LLk2c%2B5jgvz=sAxLa__h58wRyDzv_3q%2BufOPw@mail.gmail.com>
In-Reply-To: <201301070949.33173.jhb@freebsd.org>
References:  <201301051918.r05JIptx030509@svn.freebsd.org> <201301070949.33173.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 7, 2013 at 6:49 AM, John Baldwin <jhb@freebsd.org> wrote:
> 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?)

    Yes, that's a component of it. We need to make things a little
more complicated when dealing with VMware, VirtualBox, etc, and Isilon
has a vested interest (not much of one, but a bit of one) to make this
more sane.
Thanks!
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wTc2%2BJL2LLk2c%2B5jgvz=sAxLa__h58wRyDzv_3q%2BufOPw>