From owner-svn-src-head@FreeBSD.ORG Mon Jan 7 15:14:59 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6F021509; Mon, 7 Jan 2013 15:14:59 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4E103FB8; Mon, 7 Jan 2013 15:14:59 +0000 (UTC) Received: from ralph.baldwin.cx (c-68-39-198-164.hsd1.de.comcast.net [68.39.198.164]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A6FB6B9AC; Mon, 7 Jan 2013 10:14:58 -0500 (EST) From: John Baldwin To: Neel Natu Subject: Re: svn commit: r245066 - head/sys/kern Date: Mon, 7 Jan 2013 09:49:32 -0500 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201301051918.r05JIptx030509@svn.freebsd.org> In-Reply-To: <201301051918.r05JIptx030509@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201301070949.33173.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 07 Jan 2013 10:14:58 -0500 (EST) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2013 15:14:59 -0000 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