From owner-freebsd-virtualization@freebsd.org Tue May 21 17:04:57 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B77A15B31E8 for ; Tue, 21 May 2019 17:04:57 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 894626EFC1; Tue, 21 May 2019 17:04:56 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x4LH4rZ9080121; Tue, 21 May 2019 10:04:53 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x4LH4rCb080120; Tue, 21 May 2019 10:04:53 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201905211704.x4LH4rCb080120@gndrsh.dnsmgr.net> Subject: Re: Windows 10 guests fail to boot when attempting to passthrough network card In-Reply-To: <23eb543e-68ca-ba6f-de8f-023dac39e41a@FreeBSD.org> To: John Baldwin Date: Tue, 21 May 2019 10:04:53 -0700 (PDT) CC: "Rodney W. Grimes" , Robert Crowston , freebsd-virtualization@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 894626EFC1 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [0.42 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.58)[-0.579,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.34)[0.344,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: gndrsh.dnsmgr.net]; NEURAL_HAM_SHORT(-0.28)[-0.282,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.05)[ip: (0.16), ipnet: 69.59.192.0/19(0.08), asn: 13868(0.05), country: US(-0.06)] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 21 May 2019 17:04:57 -0000 [ Charset UTF-8 unsupported, converting... ] > On 5/21/19 9:48 AM, Rodney W. Grimes wrote: > >> On 5/19/19 6:24 AM, Rodney W. Grimes wrote: > >>>> Does the card have multiple BARs? Can you send us the output of pciconf -lvb for the card? > >>>> > >>>> There is a bug in bhyve where if the OS assigns the 0xffffffff sentinel to more than one BAR simultaneously it is not compatible with bhyve?s memory model for the guest. > >>> > >>> The "we talked" below is myself and Nick talking about exactly that > >>> which came from jhb@ pointing out to me in a hall wall > >>> conversation here at BSDCan that this is the cause of this > >>> problem and is a known issue. > >>> > >>> Does anyone have fixes for this issue? > >> > >> I have not tested this at all, but I have a candidate patch to fix the root > >> issue at https://github.com/freebsd/freebsd/compare/master...bsdjhb:bhyve_passthrough_barsize > > > > Could you please factor out the white space changes and do that > > seperately and sooner, it clouds the S/N in this review a bit. > > I can pull those out, but this is just a testing patch still, not yet a commit > candidate. Thanks and even more reason to pull those out, IMHO > -- > John Baldwin -- Rod Grimes rgrimes@freebsd.org