From owner-freebsd-virtualization@freebsd.org Sat Jan 14 07:13:14 2017 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 74E3CCAF36E for ; Sat, 14 Jan 2017 07:13:14 +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 2838915DE for ; Sat, 14 Jan 2017 07:13:13 +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 174AC20B4B42 for ; Sat, 14 Jan 2017 17:12:52 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 0D8732809D3 for ; Sat, 14 Jan 2017 17:12:52 +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 10026) with ESMTP id QUcncdWKJhQY for ; Sat, 14 Jan 2017 17:12:51 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (c-67-180-92-13.hsd1.ca.comcast.net [67.180.92.13]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id A8521280996; Sat, 14 Jan 2017 17:12:46 +1000 (AEST) Subject: Re: Issues with GTX960 on CentOS7 using bhyve PCI passthru (FreeBSD 11-RC2) To: soralx@cydem.org, freebsd-rwg@pdx.rh.CN85.dnsmgr.net References: <20170113001737.5fe3001b@mscad14> <201701131547.v0DFlEjt054297@pdx.rh.CN85.dnsmgr.net> <20170113215438.01c3b674@mscad14> Cc: freebsd-virtualization@freebsd.org From: Peter Grehan Message-ID: <2f0df251-9ce0-93c7-ad23-81479cef4f03@freebsd.org> Date: Fri, 13 Jan 2017 23:13:04 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170113215438.01c3b674@mscad14> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=YJDv8VOx c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=5eVCmCvhg37cu/pjidAGzw==:17 a=N659UExz7-8A:10 a=IgFoBzBjUZAA:10 a=NEAV23lmAAAA:8 a=QwR64u4WghamZgzYezwA:9 a=pILNOxqGKmIA:10 a=pj9Md4Rj8o0A:10 a=Bn2pgwyD2vrAyMmN8A2t:22 wl=host:3 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 14 Jan 2017 07:13:14 -0000 Hi, > Does bhyve not execute peripheral cards' option ROMs? Not yet. > I guess it doesn't. This could explain a lot of strange > behaviour seen resulting from running in a VM. Yes. > How does UEFI work in this regard? My guess is that cards > have to explicitly support the new boot method (UEFI)? Yes - an additional section in the option ROM is needed, but as mentioned in an earlier email, that support is now widespread thanks to Windows. > So passthrough with newer cards may be easier? This could > explain why the newer RX 480 worked right away, and the > older Quadro 2000 (and a lot of other nVidia cards without > manufacturer's support for VMs) had no chance -- UEFI cards > are somehow more "autonomous". Possibly, though it might also be the card itself not requiring as much initialization from the option ROM. > It all is just speculation on my side, I know nothing about > this UEFI stuff. > > Could you summarize in couple sentences what's the deal between > bhyve and UEFI (if there is any), or future plans? UEFI is the ROM firmware for bhyve (and most modern PCs). bhyve has a custom build of the standard Intel EDK2 distribution: https://github.com/freebsd/uefi-edk2/tree/bhyve/UDK2014.SP1 The changes are to support running as a hypervisor guest, where a lot of what is in a normal boot ROM isn't required (e.g. DRAM controller setup, CPU microcode update), and it also contains drivers for device emulations supported by bhyve. Currently, the ability to process an option ROM has been disabled. later, Peter.