From owner-freebsd-virtualization@freebsd.org Tue Jun 4 03:09: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 6B4ED15C6139 for ; Tue, 4 Jun 2019 03:09: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 EF47F83AEC for ; Tue, 4 Jun 2019 03:09:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id ADD8D15C6138; Tue, 4 Jun 2019 03:09: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 867F215C6137 for ; Tue, 4 Jun 2019 03:09: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 1A9F583AE8 for ; Tue, 4 Jun 2019 03:09: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 5325C20265 for ; Tue, 4 Jun 2019 03:09: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 x5439l1L085791 for ; Tue, 4 Jun 2019 03:09:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5439l8q085790 for virtualization@FreeBSD.org; Tue, 4 Jun 2019 03:09: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 229852] [PATCH] bhyve: IOMMU (Intel VTd) PCI passthrough attempt locks up some systems Date: Tue, 04 Jun 2019 03:09:47 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: b@heyomayeah.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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, 04 Jun 2019 03:09:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229852 Brandon Martin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |b@heyomayeah.com --- Comment #15 from Brandon Martin --- thank you very much for this patch, saved me ages of head scratching! just wanted to add another confirmed working report with rather nonstandard PfSense host and Ubuntu guest. hopefully this can get merged soon. host: FreeBSD 11.2-RELEASE-p10 FreeBSD 11.2-RELEASE-p10 #9 4a2bfdce133(RELENG_2_4= _4): Wed May 15 18:54:42 EDT 2019=20=20=20=20 root@buildbot1-nyi.netgate.com:/build/ce-crossbuild-244/obj/amd64/ZfGpH5cd/= build/ce-crossbuild-244/pfSense/tmp/FreeBSD-src/sys/pfSense kmod build host: FreeBSD 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 U= TC 2018 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC root@malibu:/usr/src # svn info Path: . Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/releng/11.2 Relative URL: ^/releng/11.2 Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 348521 Node Kind: directory Schedule: normal Last Changed Author: gordon Last Changed Rev: 347597 Last Changed Date: 2019-05-14 16:22:30 -0700 (Tue, 14 May 2019) root@malibu:/usr/src # svn status ? sys/amd64/vmm/intel/vmm.patch M sys/amd64/vmm/intel/vtd.c ? sys/amd64/vmm/intel/vtd.c.orig guest: Linux 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 1) bhyve command line bhyve -A -H -P -S -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,/opt/vm/img/homer.img" -l com1,stdio -c 1 -s 7,passthru,0/20= /0 -m 1024M homer 2) CPU Type CPU: Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz (2400.11-MHz K8-class CPU) Origin=3D"GenuineIntel" Id=3D0x806e9 Family=3D0x6 Model=3D0x8e Steppi= ng=3D9 =20 Features=3D0xbfebfbff =20 Features2=3D0x7ffafbbf AMD Features=3D0x2c100800 AMD Features2=3D0x121 Structured Extended Features=3D0x29c67af Structured Extended Features3=3D0x9c002400 XSAVE Features=3D0xf VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics 3) Guest OS USED :( b@homer:~$ cat /etc/lsb-release DISTRIB_ID=3DUbuntu DISTRIB_RELEASE=3D18.04 DISTRIB_CODENAME=3Dbionic DISTRIB_DESCRIPTION=3D"Ubuntu 18.04.2 LTS" 4) Device used via passthrough host# grep ^ppt /boot/loader.conf pptdevs=3D"0/20/0" host# pciconf -lv ppt0@ ppt0@pci0:0:20:0: class=3D0x0c0330 card=3D0x72708086 chip=3D0x9d2f808= 6 rev=3D0x21 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Sunrise Point-LP USB 3.0 xHCI Controller' class =3D serial bus subclass =3D USB b@homer:~$ lspci -vv -s 00:07.0 00:07.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) (prog-if 30 [XHCI]) Subsystem: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controll= er Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=3Dmedium >TAbort- SERR- Kernel driver in use: xhci_hcd --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=