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
F140137725: D31308.id93685.diff
Sat, Dec 20, 5:55 PM
Unknown Object (File)
Wed, Nov 26, 6:44 AM
Unknown Object (File)
Nov 12 2025, 3:28 AM
Unknown Object (File)
Nov 2 2025, 9:43 AM
Unknown Object (File)
Nov 2 2025, 9:43 AM
Unknown Object (File)
Nov 1 2025, 3:03 AM
Unknown Object (File)
Oct 29 2025, 6:59 PM
Unknown Object (File)
Oct 29 2025, 5:05 PM

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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40680
Build 37569: arc lint + arc unit