From owner-svn-src-head@FreeBSD.ORG Wed Jan 9 22:25:48 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D1446ABE; Wed, 9 Jan 2013 22:25:48 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by mx1.freebsd.org (Postfix) with ESMTP id 6029719C; Wed, 9 Jan 2013 22:25:48 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id wp18so2783870obc.15 for ; Wed, 09 Jan 2013 14:25:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZVCDbxZExgDRYrJz+xdPohKyRITQH5NVARRBL1vzs30=; b=x/A2o+SB/B6lILKrnpyUD9BiDHCjRKjYVR1k38tciLtN4oxhix7HNgm32sNoSPpKc+ rMBbvQjO70nEkreNlfMiUdrBjEa36WDf37JbfnOA/ZHzpxoWgTnhXteAUzi2CiDb9n3C bxDVpCwXAAHhMFfNIIKoeoNctpFikV7yPuckqunqgFg/L1onmfiYONwa+Bc4cshJXOaD RjScDgFloXHqR5cTTzqOONbY3FURcbP/EQY58JqAWT4ruwGzRe029hepO5Oi5atcNwuu 7fmwVAhBCPEvhlgC66ZfjPP8tfYRvFbde9+c5YRE2V9o0UGCDhT7P1FwsmmgPioZN2b2 z+Hw== MIME-Version: 1.0 Received: by 10.60.172.178 with SMTP id bd18mr41105761oec.133.1357770347742; Wed, 09 Jan 2013 14:25:47 -0800 (PST) Received: by 10.76.107.241 with HTTP; Wed, 9 Jan 2013 14:25:47 -0800 (PST) In-Reply-To: <201301070949.33173.jhb@freebsd.org> References: <201301051918.r05JIptx030509@svn.freebsd.org> <201301070949.33173.jhb@freebsd.org> Date: Wed, 9 Jan 2013 14:25:47 -0800 Message-ID: Subject: Re: svn commit: r245066 - head/sys/kern From: Garrett Cooper To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Neel Natu 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: Wed, 09 Jan 2013 22:25:48 -0000 On Mon, Jan 7, 2013 at 6:49 AM, John Baldwin 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