[Bug 229852] [PATCH] bhyve: IOMMU (Intel VTd) PCI passthrough attempt locks up some systems

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 229852] [PATCH] bhyve: IOMMU (Intel VTd) PCI passthrough attempt locks up some systems

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229852

--- Comment #6 from Niels Bakker <niels=[hidden email]> ---
(In reply to Marcelo Araujo from comment #5)

> 1) bhyve command line
I'm not sure tbh - created and started it via vm-bhyve and it rewrites its
cmdline.
Its config file contains these lines, plus others that deal with storage and
vnet:
---
loader="bhyveload"
cpu=2
memory=4G
passthru0="0/31/6"
bhyve_options="-S"
---

> 2) CPU Type
CPU: Intel(R) Celeron(R) CPU 3865U @ 1.80GHz (1800.08-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x806e9  Family=0x6  Model=0x8e  Stepping=9

This is a Kaby Lake CPU (same class as 7th gen Core) from 2017.

> 3) Guest OS USED
guest# uname -srv
FreeBSD 11.2-RELEASE-p7 FreeBSD 11.2-RELEASE-p7 #0: Tue Dec 18 08:29:33 UTC
2018     [hidden email]:/usr/obj/usr/src/sys/GENERIC

> 4) Device used via passthrough
---
host# grep ^ppt /boot/loader.conf
pptdevs="0/31/6 2/0/0"

host# pciconf -lv ppt1@pci0:0:31:6
ppt1@pci0:0:31:6:       class=0x020000 card=0x00008086 chip=0x156f8086 rev=0x21
hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection I219-LM'
    class      = network
    subclass   = ethernet
---
guest# pciconf -lv em0
em0@pci0:0:6:0: class=0x020000 card=0x00008086 chip=0x156f8086 rev=0x21
hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection I219-LM'
    class      = network
    subclass   = ethernet
---
(The second device, some WiFi chipset, isn't passed through to any VM, and
there is no FreeBSD driver for it anyway)

As said, without the patch the system dies an immediate death as soon as the
bhyve with passthrough is started.

--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to "[hidden email]"