Page MenuHomeFreeBSD

bhyve: Use pci(4) to access I/O port BARs
ClosedPublic

Authored by markj on Jul 26 2021, 4:45 PM.
Tags
None
Referenced Files
F116090142: D31308.diff
Fri, May 2, 10:22 AM
Unknown Object (File)
Thu, Apr 24, 3:07 PM
Unknown Object (File)
Mon, Apr 21, 4:21 AM
Unknown Object (File)
Sun, Apr 20, 1:11 PM
Unknown Object (File)
Mon, Apr 14, 6:35 AM
Unknown Object (File)
Wed, Apr 9, 8:05 PM
Unknown Object (File)
Mar 28 2025, 2:29 AM
Unknown Object (File)
Mar 23 2025, 3:37 AM

Details

Summary

This removes the dependency on /dev/io, which cannot be used in jails.

PR: 251046

Test Plan

I passed a realtek NIC through to a FreeBSD VM and configured hw.re.prefer_iomap=1
in the guest, to make it use I/O port BARs. I did some quick tests with iperf through the
passed-through NIC.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable