From owner-freebsd-virtualization@freebsd.org Mon Jun 10 09:31:56 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 A6B7B15BA513 for ; Mon, 10 Jun 2019 09:31:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 37BEB6B27D for ; Mon, 10 Jun 2019 09:31:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id EB3CE15BA512; Mon, 10 Jun 2019 09:31:55 +0000 (UTC) Delivered-To: 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 D89BA15BA511 for ; Mon, 10 Jun 2019 09:31:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7238B6B276 for ; Mon, 10 Jun 2019 09:31:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id AD99392C0 for ; Mon, 10 Jun 2019 09:31:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5A9VsQw007961 for ; Mon, 10 Jun 2019 09:31:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5A9VsJU007954 for virtualization@FreeBSD.org; Mon, 10 Jun 2019 09:31:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 238333] bhyve random crash in rfb.c on FreeBSD current (after r346011) Date: Mon, 10 Jun 2019 09:31:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash, needs-qa, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olevole@olevole.ru X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 10 Jun 2019 09:31:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333 --- Comment #16 from olevole@olevole.ru --- (gdb) p *(struct rfb_softc *)arg $1 =3D {sfd =3D 9, tid =3D 0x800b1d200, cfd =3D 10, width =3D 0, height =3D= 0, password =3D 0x0, enc_raw_ok =3D true, enc_zlib_ok =3D true, enc_resize_ok =3D true, zst= ream =3D { next_in =3D 0x942600000 , avail_in =3D 128, total_in =3D 0, next_out =3D 0x944a00180 '\245' ..., avail_out =3D 9600016, total_out =3D 0,=20 msg =3D 0x0, state =3D 0x941b4e800, zalloc =3D 0x8002d2110 , z= free =3D 0x8002d2120 , opaque =3D 0x0, data_type =3D 0, adler =3D 1, reserve= d =3D 0}, zbuf =3D 0x944a00180 '\245' ...,=20 zbuflen =3D 0, conn_wait =3D 0, sending =3D 1, mtx =3D 0x800ae2400, cond = =3D 0x0, hw_crc =3D 1, crc =3D 0x941a7f700, crc_tmp =3D 0x941ad0a00, crc_width =3D 8= 00, crc_height =3D 600} --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Jun 10 09:33:53 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 E46D615BA7E7 for ; Mon, 10 Jun 2019 09:33:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 78A7A6B3A7 for ; Mon, 10 Jun 2019 09:33:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 36DF915BA7E5; Mon, 10 Jun 2019 09:33:52 +0000 (UTC) Delivered-To: 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 256BD15BA7E4 for ; Mon, 10 Jun 2019 09:33:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B68736B39F for ; Mon, 10 Jun 2019 09:33:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0118E941B for ; Mon, 10 Jun 2019 09:33:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5A9XoH7044567 for ; Mon, 10 Jun 2019 09:33:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5A9XoYf044566 for virtualization@FreeBSD.org; Mon, 10 Jun 2019 09:33:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 238333] bhyve random crash in rfb.c on FreeBSD current (after r346011) Date: Mon, 10 Jun 2019 09:33:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash, needs-qa, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olevole@olevole.ru X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 10 Jun 2019 09:33:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333 --- Comment #17 from olevole@olevole.ru --- Created attachment 204940 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204940&action= =3Dedit bhyve bin + bhyve.core + bhyve.debug bhyve bin + bhyve.core + bhyve.debug --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Mon Jun 10 16:29:08 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 4E8DE15C3756 for ; Mon, 10 Jun 2019 16:29:08 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) Received: from sonic301-32.consmr.mail.ne1.yahoo.com (sonic301-32.consmr.mail.ne1.yahoo.com [66.163.184.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46D018257A for ; Mon, 10 Jun 2019 16:29:07 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) X-YMail-OSG: OUk.GGcVM1kuZtoB.4fO.WM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1RDBa9DKA4nSZwOR_xrZTxs8vsbq7mLJMfZ0pKixR dSkinanMXXvI9YTbMdI74dvo3x2c46nP_mN4x8GctRDLoosa2EB0gITj92qpIdHhZ.upcWd7cPI3 N5PDfuURjtRQbt9qJnsckd3ybMuktUleWxibvfr4Z5gsb8epz8XnqaAwJssPSD53gxz7kVNNyB0O l22GF.g-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Mon, 10 Jun 2019 16:29:00 +0000 Date: Mon, 10 Jun 2019 16:28:57 +0000 (UTC) From: Paul Pathiakis To: "freebsd-virtualization@freebsd.org" Message-ID: <40924481.872363.1560184137555@mail.yahoo.com> In-Reply-To: <1176369274.562770.1559667695486@mail.yahoo.com> References: <1176369274.562770.1559667695486.ref@mail.yahoo.com> <1176369274.562770.1559667695486@mail.yahoo.com> Subject: Re: BHYVE: UEFI shims issue? MIME-Version: 1.0 X-Mailer: WebService/1.1.13634 YMailNorrin Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0 X-Rspamd-Queue-Id: 46D018257A X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.64 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MIME_TRACE(0.00)[0:+,1:+]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.59)[0.591,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_MEDIUM(0.61)[0.612,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(1.48)[ip: (5.03), ipnet: 66.163.184.0/21(1.35), asn: 36646(1.08), country: US(-0.06)]; NEURAL_SPAM_LONG(0.96)[0.963,0]; RCVD_IN_DNSWL_NONE(0.00)[201.184.163.66.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[201.184.163.66.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Mon, 10 Jun 2019 16:29:08 -0000 Hi, Sorry, in relation to this post, it turns out that it's the server my clien= t has me on.... over 5 years old.=C2=A0 I'm going to assume the UEFI is one= of those with the 'limited memory space' allocated to UEFI. P. On Tuesday, June 4, 2019, 1:02:11 PM EDT, Paul Pathiakis via freebsd-vi= rtualization wrote: =20 =20 Hi, I thought this would have been fixed by now, but I'm probably just not awar= e of the patch or even maybe this was never reported. I seem to be having the same UEFI shims issue with putting FreeBSD 12.0 REL= EASE in BHyve on a FreeNAS 11.2-u4-1 system. On that system, I can't load anything the has a problem in the boot loader.= =C2=A0 This is both CentOS 7 1810 and later and FreeBSD 12.0. I can load and install both CentOS 7 1805 and FreeBSD 11.2 and everythign i= s fine.=C2=A0 Nything produced after that on either has a problem with UEFI= shims in /boot/UEFI . Is this being worked on? Is there a workaround? Thank you! P. _______________________________________________ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebs= d.org" =20 From owner-freebsd-virtualization@freebsd.org Mon Jun 10 19:44:44 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 707FA15C7C3C for ; Mon, 10 Jun 2019 19:44:44 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 113A58AAED; Mon, 10 Jun 2019 19:44:44 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from reviews.nyi.freebsd.org (reviews.nyi.freebsd.org [IPv6:2610:1c1:1:607c::16:b]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 53D201EE1E; Mon, 10 Jun 2019 19:44:43 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by reviews.nyi.freebsd.org (Postfix, from userid 1346) id 5269419BAB2; Mon, 10 Jun 2019 19:44:43 +0000 (UTC) Date: Mon, 10 Jun 2019 19:44:43 +0000 To: Phabricator From: "v.maffione_gmail.com (Vincenzo Maffione)" Cc: freebsd-virtualization@freebsd.org Reply-to: "v.maffione_gmail.com (Vincenzo Maffione)" Subject: [Differential] D20276: [bhyve][virtio-net] Allow guest VM's to set JUMBO MTU in case of using the VALE switch. Message-ID: X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: X-Herald-Rules: <97>, <119>, <117> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk Thread-Topic: PHID-DREV-pueoqfdkfh54jyuh6emz X-Phabricator-Mail-ID: 1499904 X-Phabricator-Send-Attempt: arbueezboaj7pq7p In-Reply-To: References: Thread-Index: MjY5MTMzYzBiZTdkNDVlNTE1MGI2YWFmNjQ0IFz+sys= X-Phabricator-Stamps: actor(@v.maffione_gmail.com) application(Differential) author(@aleksandr.fedorov_itglobal.com) herald(H97) herald(H117) herald(H119) monogram(D20276) object-type(DREV) phid(PHID-DREV-pueoqfdkfh54jyuh6emz) reviewer(#bhyve) reviewer(@jhb) reviewer(@krion) reviewer(@rgrimes) reviewer(@v.maffione_gmail.com) revision-status(needs-review) subscriber(@bcran) subscriber(@evgueni.gavrilov_itglobal.com) subscriber(@freebsd-virtualization-list) subscriber(@mgrooms_shrew.net) subscriber(@mizhka_gmail.com) subscriber(@novel) subscriber(@olevole_olevole.ru) via(web) MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" X-Rspamd-Queue-Id: 113A58AAED X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2019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dmlydGlvLmM6NDEyCj4gKwo+ICsJ CWlvdl9sZW4gPSBjb3VudF9pb3YoJmlvdltpXSwgbik7Cj4gKwkJaSArPSBuOwoKVGhlIG5hbWUg b2YgJ2lvdl9sZW4nIHZhcmlhYmxlIGlzIHJlYWxseSBjb25mdXNpbmcsIGFzIHN0cnVjdCBpb3Zl Yy5pb3ZfbGVuIHJlZmVycyB0byB0aGUgbGVuZ3RoIG9mIGEgc2luZ2xlIHNsb3QsIHdoaWxlIHlv dXIgdmFyaWFibGUgcmVmZXJzIHRvIHRoZSBzdW0gb2YgdGhlIGxlbmd0aHMgb2YgcG9zc2libHkg bWFueSBzbG90cy4uLgpJdCdzIGJldHRlciB0byB1c2Ugc29tZXRoaW5nIGxpa2UgJ2NoYWluX2xl bicKCkNIQU5HRVMgU0lOQ0UgTEFTVCBBQ1RJT04KICBodHRwczovL3Jldmlld3MuZnJlZWJzZC5v cmcvRDIwMjc2L25ldy8KClJFVklTSU9OIERFVEFJTAogIGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNk Lm9yZy9EMjAyNzYKCkVNQUlMIFBSRUZFUkVOQ0VTCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qu b3JnL3NldHRpbmdzL3BhbmVsL2VtYWlscHJlZmVyZW5jZXMvCgpUbzogYWxla3NhbmRyLmZlZG9y b3ZfaXRnbG9iYWwuY29tLCAjYmh5dmUsIGpoYiwgcmdyaW1lcywga3Jpb24sIHYubWFmZmlvbmVf Z21haWwuY29tCkNjOiBtZ3Jvb21zX3NocmV3Lm5ldCwgbWl6aGthX2dtYWlsLmNvbSwgbm92ZWws IG9sZXZvbGVfb2xldm9sZS5ydSwgZnJlZWJzZC12aXJ0dWFsaXphdGlvbi1saXN0LCBldmd1ZW5p LmdhdnJpbG92X2l0Z2xvYmFsLmNvbSwgYmNyYW4K From owner-freebsd-virtualization@freebsd.org Tue Jun 11 16:55:43 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 C2DF315C050B for ; Tue, 11 Jun 2019 16:55:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4F9C16DAA3 for ; Tue, 11 Jun 2019 16:55:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0525E15C050A; Tue, 11 Jun 2019 16:55:43 +0000 (UTC) Delivered-To: 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 E543F15C0509 for ; Tue, 11 Jun 2019 16:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C1A36DAA0 for ; Tue, 11 Jun 2019 16:55:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id BCA271A179 for ; Tue, 11 Jun 2019 16:55:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5BGtflZ047471 for ; Tue, 11 Jun 2019 16:55:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5BGtfLV047470 for virtualization@FreeBSD.org; Tue, 11 Jun 2019 16:55:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 238333] bhyve random crash in rfb.c on FreeBSD current (after r346011) Date: Tue, 11 Jun 2019 16:55:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash, needs-qa, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 11 Jun 2019 16:55:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333 --- Comment #18 from Mark Johnston --- (In reply to olevole from comment #17) Thanks. Are you sure that you properly rebuilt bhyve with the patch provid= ed in comment 12? In the core I see exactly the race that my patch tries to f= ix, and the debug info shows that the patch was not applied to the executable t= hat you attached here. After applying the patch, run "make -C usr.sbin/bhyve all install" from the root of the src tree to rebuild and reinstall. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Wed Jun 12 17:22:49 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 A0FEB15BD0D9 for ; Wed, 12 Jun 2019 17:22:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 35304868B9 for ; Wed, 12 Jun 2019 17:22:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E7F3715BD0D6; Wed, 12 Jun 2019 17:22:48 +0000 (UTC) Delivered-To: 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 D663815BD0D5 for ; Wed, 12 Jun 2019 17:22:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74609868B8 for ; Wed, 12 Jun 2019 17:22:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id AF5F475B2 for ; Wed, 12 Jun 2019 17:22:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5CHMlpW026750 for ; Wed, 12 Jun 2019 17:22:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5CHMlso026749 for virtualization@FreeBSD.org; Wed, 12 Jun 2019 17:22:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 205549] bhyve pci passthru stops working after guest is restarted Date: Wed, 12 Jun 2019 17:22:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component bug_file_loc bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Wed, 12 Jun 2019 17:22:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549 John Baldwin changed: What |Removed |Added ---------------------------------------------------------------------------- Component|kern |bhyve URL| |https://reviews.freebsd.org | |/D20623 Status|New |In Progress --- Comment #5 from John Baldwin --- Linux has disabled the busmaster enable bit. This should be pretty easy to fix. Please try the patch from the phabricator URL and let me know if it helps. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Wed Jun 12 21:37:35 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 CAA6C15C2735 for ; Wed, 12 Jun 2019 21:37:35 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 560BB8E5A6 for ; Wed, 12 Jun 2019 21:37:33 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (093105243006.raciborz.vectranet.pl [93.105.243.6]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x5CLbP2L037831 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 12 Jun 2019 21:37:25 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host 093105243006.raciborz.vectranet.pl [93.105.243.6] claimed to be ultrabook.yoonka.com To: freebsd-virtualization@freebsd.org From: Grzegorz Junka Subject: WebThings on bhyve and USB Message-ID: Date: Wed, 12 Jun 2019 21:37:19 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB-large X-Rspamd-Queue-Id: 560BB8E5A6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-6.88 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.01)[gjunka.com]; NEURAL_HAM_SHORT(-0.95)[-0.951,0]; DMARC_NA(0.00)[gjunka.com]; IP_SCORE(-3.62)[ip: (-9.48), ipnet: 88.98.192.0/18(-4.74), asn: 56478(-3.79), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[6.243.105.93.zen.spamhaus.org : 127.0.0.10] 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: Wed, 12 Jun 2019 21:37:36 -0000 How to best approach Mozilla IoT Gateway? I have a FreeBSD home server and was thinking about running the gateway on it instead of a dedicated Raspberry Pi. Mozilla does provide instructions how to compile: https://github.com/mozilla-iot/gateway I could try to adapt to compile on FreeBSD natively, but this already sounds like a lot of work before even considering the main issue, which is the availability of FreeBSD drivers for supported IoT adapters: https://github.com/mozilla-iot/wiki/wiki/Supported-Hardware So, my first question is, if those devices should or would in any way be supported by FreeBSD kernel? Then, if not natively on FreeBSD, how about running the docker image on Linux running on bhyve? https://hub.docker.com/r/mozillaiot/gateway I would need to somehow pass the USB ports to bhyve, so that Linux can pass them to the docker container. I heard it's not possible to pass specific USB ports but instead the whole PCI has to be passed and it seems to be as complex as it sounds: https://forums.freebsd.org/threads/bhyve-and-usb-passthru.67273/ https://github.com/pr1ntf/iohyve/wiki/USB-3.0-PCI-Controller-Pass-through So, my second question is if that approach to passing USB to bhyve is still the most recommended? GrzegorzJ From owner-freebsd-virtualization@freebsd.org Wed Jun 12 22:22:06 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 A10CA15C3739 for ; Wed, 12 Jun 2019 22:22:06 +0000 (UTC) (envelope-from crowston@protonmail.com) Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 967258F9DC for ; Wed, 12 Jun 2019 22:22:05 +0000 (UTC) (envelope-from crowston@protonmail.com) Date: Wed, 12 Jun 2019 22:21:53 +0000 To: Grzegorz Junka From: Robert Crowston Cc: "freebsd-virtualization@freebsd.org" Reply-To: Robert Crowston Subject: Re: WebThings on bhyve and USB Message-ID: In-Reply-To: References: Feedback-ID: 2OVbcR1yHYpdkD8cgQllkFwcuMVZg_LiVMMPvptooFDfHD_03MuQO4ZaF626jWHZYFEhNR2cmIbZ53j4QGWMBQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 967258F9DC X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.81 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[crowston@protonmail.com]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; FREEMAIL_FROM(0.00)[protonmail.com]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; MX_GOOD(-0.01)[mailsec.protonmail.ch,mail.protonmail.ch]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-3.71)[ip: (-9.67), ipnet: 185.70.40.0/24(-4.90), asn: 19905(-3.91), country: US(-0.06)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[22.40.70.185.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[] 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: Wed, 12 Jun 2019 22:22:07 -0000 > How to best approach Mozilla IoT Gateway? I cannot speak to the meat of this question but I'll respond to the bhyve-r= elated questions. > I would need to somehow pass the USB ports to bhyve, so that Linux can > pass them to the docker container. I heard it's not possible to pass > specific USB ports but instead the whole PCI has to be passed Yes, you can pass through a whole USB controller, not its individual ports.= In practice therefore you will probably need at least two USB controllers = on your system, unless it is headless. > and it seems to be as complex as it sounds: I think the complexity is overstated in the article. A better (although sli= ghtly out-of-date) guide is https://wiki.freebsd.org/bhyve/pci_passthru. In particular I did not have to recompile the kernel or remove the xhci dri= ver. As far as I remember all that is necessary was to add three lines to /= boot/loader.conf: hw.vmm.amdvi.enable=3D"1" #=C2=A0AMD only: delete this line if you have an = Intel processor. pptdevs=3D"10/0/3" # Change 10/0/3 to the address of your USB contro= ller. vmm_load=3D"YES" #=C2=A0Load the bhyve kernel module on boot. [There are some other caveats, for instance you may need to enable directed= i/o virtualization in your BIOS.] From owner-freebsd-virtualization@freebsd.org Thu Jun 13 13:35:45 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 0319A15B2390 for ; Thu, 13 Jun 2019 13:35:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8F83384F48 for ; Thu, 13 Jun 2019 13:35:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 45B3915B238F; Thu, 13 Jun 2019 13:35:44 +0000 (UTC) Delivered-To: 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 3404D15B238E for ; Thu, 13 Jun 2019 13:35:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C57A684F47 for ; Thu, 13 Jun 2019 13:35:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 149CE123FD for ; Thu, 13 Jun 2019 13:35:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5DDZgvU066906 for ; Thu, 13 Jun 2019 13:35:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5DDZg5Y066903 for virtualization@FreeBSD.org; Thu, 13 Jun 2019 13:35:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 232459] 12.0-STABLE buildworld fails in VMWare Fusion guest Date: Thu, 13 Jun 2019 13:35:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: morgan@vandagriff.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 13 Jun 2019 13:35:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232459 Morgan Vandagriff changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Overcome By Events Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Jun 13 16:01:17 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 D6EA815B5D30 for ; Thu, 13 Jun 2019 16:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 565248B382 for ; Thu, 13 Jun 2019 16:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1943315B5D2F; Thu, 13 Jun 2019 16:01:16 +0000 (UTC) Delivered-To: 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 0554615B5D2E for ; Thu, 13 Jun 2019 16:01:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 919998B37C for ; Thu, 13 Jun 2019 16:01:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E6325138FC for ; Thu, 13 Jun 2019 16:01:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5DG1Erm000404 for ; Thu, 13 Jun 2019 16:01:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5DG1EhM000403 for virtualization@FreeBSD.org; Thu, 13 Jun 2019 16:01:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 238333] bhyve random crash in rfb.c on FreeBSD current (after r346011) Date: Thu, 13 Jun 2019 16:01:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash, needs-qa, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 13 Jun 2019 16:01:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333 --- Comment #19 from Mark Johnston --- Sorry, it occurred to me that the crash could also arise if we received multiple encodings messages. Please try this: diff --git a/usr.sbin/bhyve/rfb.c b/usr.sbin/bhyve/rfb.c index d572037b25fe..0a0538f80e53 100644 --- a/usr.sbin/bhyve/rfb.c +++ b/usr.sbin/bhyve/rfb.c @@ -273,8 +273,10 @@ rfb_recv_set_encodings_msg(struct rfb_softc *rc, int c= fd) rc->enc_raw_ok =3D true; break; case RFB_ENCODING_ZLIB: - rc->enc_zlib_ok =3D true; - deflateInit(&rc->zstream, Z_BEST_SPEED); + if (!rc->enc_zlib_ok) { + deflateInit(&rc->zstream, Z_BEST_SPEED); + rc->enc_zlib_ok =3D true; + } break; case RFB_ENCODING_RESIZE: rc->enc_resize_ok =3D true; --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Thu Jun 13 18:36:20 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 8F0FA15B9A66 for ; Thu, 13 Jun 2019 18:36:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 256C369CBD for ; Thu, 13 Jun 2019 18:36:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D9D4715B9A64; Thu, 13 Jun 2019 18:36:19 +0000 (UTC) Delivered-To: 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 B538015B9A63 for ; Thu, 13 Jun 2019 18:36:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F74E69CB8 for ; Thu, 13 Jun 2019 18:36:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 73B3414E5C for ; Thu, 13 Jun 2019 18:36:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5DIaIK6053130 for ; Thu, 13 Jun 2019 18:36:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5DIaItw053129 for virtualization@FreeBSD.org; Thu, 13 Jun 2019 18:36:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 205549] bhyve pci passthru stops working after guest is restarted Date: Thu, 13 Jun 2019 18:36:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ark@dudevich.dn.ua X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 13 Jun 2019 18:36:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549 --- Comment #6 from arkadyi --- Hmm....I don't see in the file usr.sbin/bhyve/pci_passthru.c (origin) bellow strings 642 pci_set_cfgdata16(pi, PCIR_COMMAND, read_config(&sc->psc_sel, 643 PCIR_COMMAND, 2)); # patch < D20623.diff=20 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: usr.sbin/bhyve/pci_passthru.c |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |--- usr.sbin/bhyve/pci_passthru.c |+++ usr.sbin/bhyve/pci_passthru.c -------------------------- Patching file pci_passthru.c using Plan A... Hunk #1 succeeded at 615 (offset -3 lines). Hunk #2 succeeded at 625 (offset -3 lines). Hunk #3 failed at 648. 1 out of 3 hunks failed--saving rejects to pci_passthru.c.rej done cat /usr/src/usr.sbin/bhyve/pci_passthru.c.rej @@ -636,8 +648,13 @@ goto done; } - pci_set_cfgdata16(pi, PCIR_COMMAND, read_config(&sc->psc_sel, - PCIR_COMMAND, 2)); + /* + * Fetch the updated virtual command register and write it to + * the device if needed. + */ + cmd =3D pci_get_cfgdata16(pi, PCIR_COMMAND); + if (cmd !=3D orig_cmd) + write_config(&sc->psc_sel, PCIR_COMMAND, 2, cmd); error =3D 0; /* success */ done: uname -srv FreeBSD 12.0-RELEASE-p5 FreeBSD 12.0-RELEASE-p5 r349013 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Fri Jun 14 15:17:54 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 9D66D15D1AA0 for ; Fri, 14 Jun 2019 15:17:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2D1B46ED75 for ; Fri, 14 Jun 2019 15:17:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id DAD3A15D1A9F; Fri, 14 Jun 2019 15:17:53 +0000 (UTC) Delivered-To: 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 C7DE315D1A9E for ; Fri, 14 Jun 2019 15:17:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5FF316ED70 for ; Fri, 14 Jun 2019 15:17:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8C4391FDC8 for ; Fri, 14 Jun 2019 15:17:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5EFHmqe065372 for ; Fri, 14 Jun 2019 15:17:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5EFHm64065352 for virtualization@FreeBSD.org; Fri, 14 Jun 2019 15:17:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 238333] bhyve random crash in rfb.c on FreeBSD current (after r346011) Date: Fri, 14 Jun 2019 15:17:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash, needs-qa, regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olevole@olevole.ru X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Fri, 14 Jun 2019 15:17:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333 --- Comment #20 from olevole@olevole.ru --- (In reply to Mark Johnston from comment #19) Mark, this patch really fixes the crash issue for me. And yes, I'm sure I rebuilt and installed the bhyve binary with the previous patch ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333#c12 ) Is there a chance to see this patch in the upstream soon? Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Fri Jun 14 18:41:03 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 229B015AEBD6 for ; Fri, 14 Jun 2019 18:41:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A559C74E18 for ; Fri, 14 Jun 2019 18:41:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5B17215AEBD4; Fri, 14 Jun 2019 18:41:02 +0000 (UTC) Delivered-To: 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 46F7715AEBD1 for ; Fri, 14 Jun 2019 18:41:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CBC8774E13 for ; Fri, 14 Jun 2019 18:41:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1D3CF1A91 for ; Fri, 14 Jun 2019 18:41:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5EIep6l000180 for ; Fri, 14 Jun 2019 18:40:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5EIekwQ099688 for virtualization@FreeBSD.org; Fri, 14 Jun 2019 18:40:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 205549] bhyve pci passthru stops working after guest is restarted Date: Fri, 14 Jun 2019 18:40:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Fri, 14 Jun 2019 18:41:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549 --- Comment #7 from John Baldwin --- The patch is relative to head. For 12.0 you will need to apply the patch f= rom https://svnweb.freebsd.org/base?view=3Drevision&revision=3D348779 first and= then apply this patch on top of that. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Fri Jun 14 18:41:47 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 919B215AEC18 for ; Fri, 14 Jun 2019 18:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2AA1E75011 for ; Fri, 14 Jun 2019 18:41:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E29DE15AEC17; Fri, 14 Jun 2019 18:41:46 +0000 (UTC) Delivered-To: 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 CEB7C15AEC15 for ; Fri, 14 Jun 2019 18:41:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32E0A7500A for ; Fri, 14 Jun 2019 18:41:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7AF1C1BB6 for ; Fri, 14 Jun 2019 18:41:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5EIfjdS004674 for ; Fri, 14 Jun 2019 18:41:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5EIfj0e004510 for virtualization@FreeBSD.org; Fri, 14 Jun 2019 18:41:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 205549] bhyve pci passthru stops working after guest is restarted Date: Fri, 14 Jun 2019 18:41:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Fri, 14 Jun 2019 18:41:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205549 --- Comment #8 from John Baldwin --- Actually, you need the diff from https://svnweb.freebsd.org/base?view=3Drevision&revision=3D348778 as well. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-virtualization@freebsd.org Fri Jun 14 19:54:00 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 8D03515AFF71 for ; Fri, 14 Jun 2019 19:54:00 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FDD176C1D for ; Fri, 14 Jun 2019 19:53:59 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-io1-xd2f.google.com with SMTP id u19so8300921ior.9 for ; Fri, 14 Jun 2019 12:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kuqwOcEV7Qk6m75Z/ILROioHpnSiYZXwAyrEujjwC4c=; b=gm94JZObqfhsCkhaKDp4mO2Gu0EDx02TZg7nXorIvqeeT8Ynmit1yYjv4M9/LkosEC YfnTK0250wIxjmpvMT0ssQP0YAiCEBcQpL97n6tpnSgFrrIqjXHub2KJdWsgvzicLoUy u5c3HGGeyOz5ECDPy5TIkZRwkyYqN4kvfuq7uShGnEybrIQ+QAH4JxZddKhf4zOqUSDP mqD3s9b9kv4an+Kw841PpBpg+YwPLBpebxUkDqTYzeuysVkoDAX4irb7i9pBqITkBT7a cVi8+VSQpuaUON33DAIwebJb8RFwFefHjmmQiuduotxfUSIpN2K1Ms3/efTizAUnlQRx Vq3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kuqwOcEV7Qk6m75Z/ILROioHpnSiYZXwAyrEujjwC4c=; b=WsYMSY6P7NSjHta1H4aYGncmiMzyHsD2Jck6CVS5yUUAcgnWuogRzb43qLPuH+rBT/ h/bDHI/Jch7f6ik0hjFgYEpWBp8bT2/pjg9IXtAzC/078/UNbvUU7QYwHzwytg0lPOpl MvOPe3jcbSXISDEREgFl6Ptc0lVtsvtJ+9aKM7FWEuLgcf1Q7keiH+BbbVEtnGKawFaI Q30BfdPDtV8hN4XBGUelxEnD3er7v4XpTKv8ENC08w6r57vHIzB1O2ayDNHTaVJpuwFO 6vtyIGcmpVn+hVc0INZQmx5YghDjDA/jYyFE6ggKdb9gfnR9FScqef9vUKVdGFCV3vr6 vkCA== X-Gm-Message-State: APjAAAVnbzrM2lIwoePP0qHaGlhtPy4hEz0ExnQrXjenKKaQJe5Yst9l +QZRnX/IA86v2Pk+4YVLw2+Xj/8n5dGVtrt2ov7MaqKZ X-Google-Smtp-Source: APXvYqyQrhYAb4m+z4TAWsulkPutwj5+r/209CkK1RyiS8Z//qNMqwOR2wAbNYKLT0DyF06H/whbht+nyxEOiiO2eHo= X-Received: by 2002:a5d:9ad6:: with SMTP id x22mr10833388ion.136.1560542038175; Fri, 14 Jun 2019 12:53:58 -0700 (PDT) MIME-Version: 1.0 From: Adam Date: Fri, 14 Jun 2019 14:53:46 -0500 Message-ID: Subject: Bhyve GPU passthrough To: FreeBSD virtualization X-Rspamd-Queue-Id: 9FDD176C1D X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=gm94JZOb; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of amvandemore@gmail.com designates 2607:f8b0:4864:20::d2f as permitted sender) smtp.mailfrom=amvandemore@gmail.com X-Spamd-Result: default: False [-6.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[f.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-2.87)[ip: (-8.84), ipnet: 2607:f8b0::/32(-3.16), asn: 15169(-2.31), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.83)[-0.828,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 14 Jun 2019 19:54:00 -0000 There was a thread here a while back about some adventurer trying to passthrough an Nvidia GPU which ultimately did not work. Unfortunately that still seems to be the case. I'm using 12.x and I could not get it to work in FreeBSD, Linux, or Windows guest. Win10 wouldn't even boot with it passed through. Linux wouldn't load the driver(could have been me) and FreeBSD guest loaded the driver, but I could not do anything useful with the card. For example, nvidia-smi -q reported No devices were found. Here is the guest view: vgapci0@pci0:0:1:0: class=0x030000 card=0x77101558 chip=0x1f5010de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' device = 'TU106BM [GeForce RTX 2070 Mobile]' class = display subclass = VGA bar [10] = type Memory, range 32, base 0xc0000000, size 16777216, enabled bar [14] = type Prefetchable Memory, range 64, base 0xd000000000, size 268435456, enabled bar [1c] = type Prefetchable Memory, range 64, base 0xc2000000, size 33554432, enabled bar [24] = type I/O Port, range 32, base 0x2000, size 128, enabled cap 01[60] = powerspec 3 supports D0 D3 current D0 cap 05[68] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[78] = PCI-Express 2 legacy endpoint max data 128(256) FLR RO NS link x16(x16) speed 2.5(8.0) ASPM disabled(L0s/L1) I believe in earlier discussion there was objection to overcoming Nvidia's virtualization restrictions, but I think since then both vmware and kvm have implemented workarounds to allow for this. Is anyone one currently working on this or needs some testing done? -- Adam From owner-freebsd-virtualization@freebsd.org Sat Jun 15 10:52:32 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 82B2115C3BF1 for ; Sat, 15 Jun 2019 10:52:32 +0000 (UTC) (envelope-from crowston@protonmail.com) Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5062A711F0 for ; Sat, 15 Jun 2019 10:52:30 +0000 (UTC) (envelope-from crowston@protonmail.com) Date: Sat, 15 Jun 2019 10:52:18 +0000 To: Adam , FreeBSD virtualization From: Robert Crowston Reply-To: Robert Crowston Subject: Re: Bhyve GPU passthrough Message-ID: In-Reply-To: References: Feedback-ID: 2OVbcR1yHYpdkD8cgQllkFwcuMVZg_LiVMMPvptooFDfHD_03MuQO4ZaF626jWHZYFEhNR2cmIbZ53j4QGWMBQ==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 5062A711F0 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.61 / 15.00]; HAS_REPLYTO(0.00)[crowston@protonmail.com]; FREEMAIL_FROM(0.00)[protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; URI_COUNT_ODD(1.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; MIME_BASE64_TEXT(0.10)[]; MX_GOOD(-0.01)[mailsec.protonmail.ch,mail.protonmail.ch]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[18.40.70.185.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.95)[-0.951,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; HAS_PHPMAILER_SIG(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-3.65)[ip: (-9.38), ipnet: 185.70.40.0/24(-4.89), asn: 19905(-3.91), country: US(-0.06)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sat, 15 Jun 2019 10:52:32 -0000 SSB0aGluayBJIGFtIHRoZSBtb3N0IHJlY2VudCBhZHZlbnR1cmVyLCBidXQgaWYgeW91IGdvIGJh Y2sgYSBjb3VwbGUgb2YgeWVhcnMgSSBhbSBvbmx5IGJ1aWxkaW5nIG9uIG1hdGVyaWFsIEkgZm91 bmQgZGlzY3Vzc2VkIGluIHRoaXMgbWFpbGluZyBsaXN0LgoKSSBkbyBoYXZlIGFuIG5WaWRpYSBH UFUgd29ya2luZyBvbiBMaW51eCB1bmRlciB0aGUgbm91dmVhdSBkcml2ZXQuIEl0IHJlcXVpcmVk IHNvbWUgY2hhbmdlcyB0byB0aGUgYmh5dmUgc291cmNlOyBpbiBwYXJ0aWN1bGFyIEkgaGFkIHRv IHJl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ZWVkcyBzb21lIHRlc3Rpbmcg ZG9uZT8KPgo+IC0tCj4gQWRhbQo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fCj4gZnJlZWJzZC12aXJ0dWFsaXphdGlvbkBmcmVlYnNkLm9yZyBtYWlsaW5n IGxpc3QKPiBodHRwczovL2xpc3RzLmZyZWVic2Qub3JnL21haWxtYW4vbGlzdGluZm8vZnJlZWJz ZC12aXJ0dWFsaXphdGlvbgo+IFRvIHVuc3Vic2NyaWJlLCBzZW5kIGFueSBtYWlsIHRvICJmcmVl YnNkLXZpcnR1YWxpemF0aW9uLXVuc3Vic2NyaWJlQGZyZWVic2Qub3JnIg== From owner-freebsd-virtualization@freebsd.org Sat Jun 15 19:13:35 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 7CB3715CDA62 for ; Sat, 15 Jun 2019 19:13:35 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 337E587EDB for ; Sat, 15 Jun 2019 19:13:34 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-io1-xd2a.google.com with SMTP id m24so13086653ioo.2 for ; Sat, 15 Jun 2019 12:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TQFajpsWbFqR4PvRmNjevkGOqyfD6+rWc+6cd6FGyAw=; b=nCpVS0UvzwRh2oY/Khi9cwQ3snVHsgdXlt19rJnJcbL2SYmLFgoVutJMZNXK1k5Vz/ CK47+jqTpAzDklzhujTFpHjW0/nsT8HCQhS0e5or5oEsbIjyz7sVJIdI4ZP7lprWWF9I SI+dOTq6X1wJ0f/rE4q6mLNYxrLqlJjvriKs0cf+Oy543lgc60P/yo12dV+36+7d7Y1l 2io767Q3QzrNKgnvzPU01aaseyPT24aJpXRad/yewhk6A4NTRaF7UYeEWb9z7GL6/Twy l2glMefFMsxIH1DxqaoMa8m4ybRCXjM1qBENnMzRZszg1M0bYG+8BlZsfOxjdQW6h5ka cihw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TQFajpsWbFqR4PvRmNjevkGOqyfD6+rWc+6cd6FGyAw=; b=hiz8nlxV9sAgFXYg6KjMvDdyNWAnhmfs8DS0fqU+1M+j/8iVVyrkf2ZFG2PbeDdBtt b/GOjV/fqqgH5/+Crrk8Opcu/wVk8dOT2dlGXg/Xd5l0w3PriViigkApKL4+10VMBbON A9SXNukA55Cav4XFkNLphvkY3Lyp2EeW3vcQ/V24vX1IgqqQGeir7O+PkdQxQgmM+8Yc 5grs6KO+Fdo4qD9C5JhU9sQH6i4OrBB+Tq3QwISGRoM0TsMT82BdhOZwSexwytPZrBj5 tZSpBMGbx57j0cMWwl9BfHozGUy0pMu8iyk9rMcucknCuVI7TvLNL9wQ26DEQXJiwbbv wcAA== X-Gm-Message-State: APjAAAW8Bee8ZKe3K5rwrpi88czgMkkNttM8pZshXSLQbt9GZLLDI7TO LtZ6RNC85oIsix7w9p82fzphD9SlvFyQsbEFAqU= X-Google-Smtp-Source: APXvYqz6Iq9xZe0PwQxqFdEwEyokOTtvPqQWjAoispbtwwAKmMXmVWmseOUTJ6xpP9pV0npxxiWCpI6ns9oCSnWKxDY= X-Received: by 2002:a5d:8844:: with SMTP id t4mr4619695ios.91.1560626013421; Sat, 15 Jun 2019 12:13:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adam Date: Sat, 15 Jun 2019 14:13:22 -0500 Message-ID: Subject: Re: Bhyve GPU passthrough To: Robert Crowston Cc: FreeBSD virtualization X-Rspamd-Queue-Id: 337E587EDB X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=nCpVS0Uv; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of amvandemore@gmail.com designates 2607:f8b0:4864:20::d2a as permitted sender) smtp.mailfrom=amvandemore@gmail.com X-Spamd-Result: default: False [-6.78 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FREEMAIL_TO(0.00)[protonmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.81)[-0.806,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.96)[ip: (-9.28), ipnet: 2607:f8b0::/32(-3.17), asn: 15169(-2.31), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sat, 15 Jun 2019 19:13:35 -0000 On Sat, Jun 15, 2019 at 5:52 AM Robert Crowston wrote: > I think I am the most recent adventurer, but if you go back a couple of > years I am only building on material I found discussed in this mailing li= st. > > I do have an nVidia GPU working on Linux under the nouveau drivet. It > required some changes to the bhyve source; in particular I had to remap t= he > 64 bit PCI BAR allocations into the lower 4 GB of the guest=E2=80=99s add= ress > space. I am not sure if that is a quirk of the AMD processor I=E2=80=99m = using. > > I think there are a few things that prevent this from working in the > general case. Probably the most serious is bhyve doesn=E2=80=99t support = emulation > or passthrough of PCI ROMs. I am working on a hack to make that work in m= y > spare time. But I am not an official member of the project, just tinkerin= g. > :-) > > The nVidia Windows driver only checks the pending break enable bit on the > feature flags register to see if it is virtualized (or at least that was > the case about a year ago). You can readily change that to 0 in the bhyve > source code. But we are some way from that yet. > Hey yes your information both previous and current is helpful. nouveau doesn't get me anything so I didn't test it. Pretty much only goal is CUDA in the VM, but it seems you are right in that this is a ways off. There are some changes relative to my experience vs what you originally describe. Maybe part of that are the changes to bhyve 12-stable. The only thing that shows in the FreeBSD VM when trying nvidia-smi is: Jun 15 14:09:38 passthrough kernel: NVRM: GPU 0000:00:01.0: RmInitAdapter failed! (0x26:0x65:1133) Jun 15 14:09:38 passthrough kernel: nvidia0: NVRM: rm_init_adapter() failed= ! So I guess that is the PCI ROM issue. If you do work up some patches and need some other testing, let me know. --=20 Adam