From owner-svn-src-all@FreeBSD.ORG Wed Apr 10 18:59:21 2013 Return-Path: Delivered-To: svn-src-all@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 186CE6AC; Wed, 10 Apr 2013 18:59:21 +0000 (UTC) (envelope-from neel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 0B886227; Wed, 10 Apr 2013 18:59:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3AIxKKY036772; Wed, 10 Apr 2013 18:59:20 GMT (envelope-from neel@svn.freebsd.org) Received: (from neel@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3AIxK17036771; Wed, 10 Apr 2013 18:59:20 GMT (envelope-from neel@svn.freebsd.org) Message-Id: <201304101859.r3AIxK17036771@svn.freebsd.org> From: Neel Natu Date: Wed, 10 Apr 2013 18:59:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249343 - head/usr.sbin/bhyve X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2013 18:59:21 -0000 Author: neel Date: Wed Apr 10 18:59:20 2013 New Revision: 249343 URL: http://svnweb.freebsd.org/changeset/base/249343 Log: Need to call init_mem() to really initialize the MMIO range lookups. This was working by accident because: - the RB_HEADs were being initialized to zero as part of BSS - the pthread_rwlock functions were implicitly initializing the lock object Obtained from: NetApp Modified: head/usr.sbin/bhyve/bhyverun.c Modified: head/usr.sbin/bhyve/bhyverun.c ============================================================================== --- head/usr.sbin/bhyve/bhyverun.c Wed Apr 10 18:53:14 2013 (r249342) +++ head/usr.sbin/bhyve/bhyverun.c Wed Apr 10 18:59:20 2013 (r249343) @@ -728,6 +728,7 @@ main(int argc, char *argv[]) exit(1); } + init_mem(); init_inout(); init_pci(ctx); if (ioapic)