Date: Mon, 7 Jan 2013 09:49:32 -0500 From: John Baldwin <jhb@freebsd.org> To: Neel Natu <neel@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r245066 - head/sys/kern Message-ID: <201301070949.33173.jhb@freebsd.org> 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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301070949.33173.jhb>