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
F71899345: D31308.id.diff
Tue, Nov 28, 12:37 AM
F71899342: D31308.id93685.diff
Tue, Nov 28, 12:37 AM
F71899340: D31308.id92747.diff
Tue, Nov 28, 12:37 AM
F71899337: D31308.id92752.diff
Tue, Nov 28, 12:37 AM
F71898695: D31308.diff
Tue, Nov 28, 12:19 AM
Unknown Object (File)
Sun, Nov 26, 4:38 PM
Unknown Object (File)
Sun, Nov 12, 8:35 PM
Unknown Object (File)
Thu, Nov 9, 11:00 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable