From owner-freebsd-virtualization@freebsd.org Sun Dec 20 05:02:54 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1EAEFA4D619 for ; Sun, 20 Dec 2015 05:02:54 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id D709C1F18 for ; Sun, 20 Dec 2015 05:02:53 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id EF3B52011495 for ; Sun, 20 Dec 2015 15:02:45 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id E9248282027 for ; Sun, 20 Dec 2015 15:02:45 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DkRZDO_BT7-E for ; Sun, 20 Dec 2015 15:02:45 +1000 (AEST) Received: from Peters-MacBook-Pro.local (CPE-60-226-3-158.wrcz1.cha.bigpond.net.au [60.226.3.158]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 3BD97280F5D; Sun, 20 Dec 2015 15:02:44 +1000 (AEST) Subject: Re: bhyve PCI pass-through to Linux guest To: Sergey Manucharian References: <20151220045821.GG22018@dendrobates.araler.com> Cc: FreeBSD virtualization From: Peter Grehan Message-ID: <56763672.3090207@freebsd.org> Date: Sun, 20 Dec 2015 15:02:42 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151220045821.GG22018@dendrobates.araler.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=B9IZqLZM c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=OIgypsHbAvIw1X5S2PUfDQ==:17 a=3FMX7HLxAAAA:8 a=6I5d2MoRAAAA:8 a=Sv2sojjTAAAA:8 a=N659UExz7-8A:10 a=wUQvQvOEmiQA:10 a=z4wj_cxgjH_bDn9okDMA:9 a=pILNOxqGKmIA:10 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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, 20 Dec 2015 05:02:54 -0000 Hi Sergey, > I have a working Linux guest in bhyve (Debian). Trying to pass through a > PCI device (USB controller) by adding a couple of options: > > # bhyve -S ... -s 7,passthru,0/20/0 ... > > That causes bhyve termination right away with error: > Unable to setup memory (17) > > Exactly the same option with passing the same USB controller to Windows 2012 > guest works perfectly. > > The only difference (by my understanding) is that I load UEFI for Windows > and use grub-bhyve for Linux. > > What should I check? Make sure you are also passing the '-S' option to grub-bhyve to force wiring of memory. later, Peter.