Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2019 13:45:10 +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-RCtgSAod7S@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

--- Comment #6 from Niels Bakker <niels=3Dfreebsd@bakker.net> ---
(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=3D"bhyveload"
cpu=3D2
memory=3D4G
passthru0=3D"0/31/6"
bhyve_options=3D"-S"
---

> 2) CPU Type
CPU: Intel(R) Celeron(R) CPU 3865U @ 1.80GHz (1800.08-MHz K8-class CPU)
  Origin=3D"GenuineIntel"  Id=3D0x806e9  Family=3D0x6  Model=3D0x8e  Steppi=
ng=3D9

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     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC=20

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

host# pciconf -lv ppt1@pci0:0:31:6
ppt1@pci0:0:31:6:       class=3D0x020000 card=3D0x00008086 chip=3D0x156f808=
6 rev=3D0x21
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D 'Ethernet Connection I219-LM'
    class      =3D network
    subclass   =3D ethernet
---
guest# pciconf -lv em0
em0@pci0:0:6:0: class=3D0x020000 card=3D0x00008086 chip=3D0x156f8086 rev=3D=
0x21
hdr=3D0x00
    vendor     =3D 'Intel Corporation'
    device     =3D 'Ethernet Connection I219-LM'
    class      =3D network
    subclass   =3D 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.

--=20
You are receiving this mail because:
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-RCtgSAod7S>