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
F147597472: D31308.id.diff
Thu, Mar 12, 5:38 AM
F147554323: D31308.id.diff
Wed, Mar 11, 8:54 PM
Unknown Object (File)
Mon, Mar 9, 3:57 AM
Unknown Object (File)
Mon, Mar 9, 3:33 AM
Unknown Object (File)
Thu, Mar 5, 11:10 AM
Unknown Object (File)
Thu, Mar 5, 5:42 AM
Unknown Object (File)
Mon, Mar 2, 6:33 PM
Unknown Object (File)
Mon, Mar 2, 6:57 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40680
Build 37569: arc lint + arc unit