From owner-freebsd-virtualization@FreeBSD.ORG Sun Nov 23 19:45:47 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 28BCEF93 for ; Sun, 23 Nov 2014 19:45:47 +0000 (UTC) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id D98E4D3C for ; Sun, 23 Nov 2014 19:45:46 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id A763B12837; Mon, 24 Nov 2014 05:45:44 +1000 (EST) Received: from Dana-Toroks-MBP.att.net (107-214-150-206.lightspeed.sntcca.sbcglobal.net [107.214.150.206]) by dommail.onthenet.com.au (MOS 4.4.4-GA) with ESMTP id BZX30058 (AUTH peterg@ptree32.com.au); Mon, 24 Nov 2014 05:45:43 +1000 Message-ID: <54723963.1010101@freebsd.org> Date: Sun, 23 Nov 2014 11:45:39 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Shawn Webb Subject: Re: bhyve cannot allocate memory References: <20141122215245.d9380cc4e43cb5e60d479009@gmail.com> <20141122220202.09523b0ae828993174af05d8@gmail.com> <5471513C.6040400@freebsd.org> <54715438.3090905@freebsd.org> <54715822.2010309@freebsd.org> <54715911.1090100@freebsd.org> <54715B13.9020303@freebsd.org> <20141123144349.84f648dcfc1169bf952c7ee7@gmail.com> In-Reply-To: <20141123144349.84f648dcfc1169bf952c7ee7@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2014 19:45:47 -0000 > Oliver fixed the problem. bhyve's vmm.ko uses VM_MIN_ADDRESS, which > defaults to NULL in FreeBSD. We modified that to be at 64k to prevent > NULL dereferences. Combine that with the removal of map_at_zero, NULL > deref is not possible anymore. But since we bumped VM_MIN_ADDRESS up, > bhyve's vmm.ko no longer attempts to map at NULL (which it absolutely > needs to). The change Oliver made simply uses 0 instead of > VM_MIN_ADDRESS. If this is a change FreeBSD wants upstream, we'd love > it merged upstream. > > Commit for reference: > https://github.com/HardenedBSD/hardenedBSD/commit/23bd719ce1e3a8cc42fc8317b1c7c6d9e74dcba0 Thanks - we'll submit this. later, Peter.