Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jun 2019 03:09:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 229852] [PATCH] bhyve: IOMMU (Intel VTd) PCI passthrough attempt locks up some systems
Message-ID:  <bug-229852-27103-Ywb95MQoe9@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-229852-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-229852-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229852

Brandon Martin <b@heyomayeah.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b@heyomayeah.com

--- Comment #15 from Brandon Martin <b@heyomayeah.com> ---
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,=
MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
=20
Features2=3D0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,S=
DBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,=
XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=3D0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=3D0x121<LAHF,ABM,Prefetch>
  Structured Extended
Features=3D0x29c67af<FSGSBASE,TSCADJ,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,N=
FPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  Structured Extended Features3=3D0x9c002400<IBPB,STIBP,SSBD>
  XSAVE Features=3D0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
  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-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 32
        Region 0: Memory at c0010000 (64-bit, prefetchable) [size=3D64K]
        Capabilities: <access denied>
        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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229852-27103-Ywb95MQoe9>