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
Unknown Object (File)
Mon, Aug 24, 2:45 PM
Unknown Object (File)
Wed, Aug 19, 1:17 PM
Unknown Object (File)
Tue, Aug 18, 10:27 PM
Unknown Object (File)
Tue, Aug 11, 1:42 AM
Unknown Object (File)
Wed, Aug 5, 8:24 PM
Unknown Object (File)
Jul 28 2026, 1:38 PM
Unknown Object (File)
Jul 27 2026, 8:44 AM
Unknown Object (File)
Jul 27 2026, 6:12 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