From owner-freebsd-virtualization@FreeBSD.ORG Sun Nov 23 03:53:07 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B4B2D1CC; Sun, 23 Nov 2014 03:53:07 +0000 (UTC) Received: from mail-ob0-x235.google.com (mail-ob0-x235.google.com [IPv6:2607:f8b0:4003:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72E77DD7; Sun, 23 Nov 2014 03:53:07 +0000 (UTC) Received: by mail-ob0-f181.google.com with SMTP id gq1so5653558obb.26 for ; Sat, 22 Nov 2014 19:53:06 -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=Sv5S2MviIvC9J+JI9o1ebMiGkbZutOIL0f0L3Qpfv70=; b=ScvTsgpjt5NMG0P+dOr3nA4R5QACKZ3IItuCnAWp9tPnK+tIwOmkgypha3qfX83Aw7 eCMPgzosYX3kCAahi/eLuVZwKUFKWPNye2jQ/m8C/c/0NzodMWfw0fHa9VtoOoGDfIzo Opcw0zM19jAFaxkzBJUrr/sJvtd4/oknCivbtEUoH0nJid/ftDCNTlLEBekCuClztX0M u6j0scMHbz1Zed5DVHJLtM4LitOQzyiGtqRWz3Iybr8iHkrFiG+xMMPT2JfzLLbH9ZJR 8KJnNc53rLMR/ozRBXpb68xWmK50aHtyUboYyveqbAXAi0talBf3Foy3cGzuz1GlGPTp pDgg== MIME-Version: 1.0 X-Received: by 10.182.216.137 with SMTP id oq9mr7181973obc.70.1416714786845; Sat, 22 Nov 2014 19:53:06 -0800 (PST) Received: by 10.202.184.7 with HTTP; Sat, 22 Nov 2014 19:53:06 -0800 (PST) Received: by 10.202.184.7 with HTTP; Sat, 22 Nov 2014 19:53:06 -0800 (PST) In-Reply-To: <54715911.1090100@freebsd.org> 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> Date: Sat, 22 Nov 2014 22:53:06 -0500 Message-ID: Subject: Re: bhyve cannot allocate memory From: Shawn Webb To: Peter Grehan Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 03:53:07 -0000 On Nov 22, 2014 10:48 PM, "Peter Grehan" wrote: >> >> Nope. What if you have map_at_zero set to 0? Dies bhyve work then? > > > Works with the default of 0, and also with it being set to 1. > > later, > > Peter. > Interesting. I'll have to do more digging. Because removing map_at_zero support is the same as keeping it at the default of 0. It's not possible that our ASLR implementation is affecting bhyve, since our ASLR implementation is in sys_mmap and the elf image activator. At this stage, bhyve's vmm.ko is directly accessing vm_map_*, which we haven't touched.