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
F68518938: D31308.id93685.diff
Sat, Sep 30, 4:17 AM
F68482321: D31308.id92747.diff
Fri, Sep 29, 2:52 PM
Unknown Object (File)
Thu, Sep 14, 5:52 AM
Unknown Object (File)
Fri, Sep 8, 3:15 AM
Unknown Object (File)
Tue, Sep 5, 1:07 AM
Unknown Object (File)
Aug 19 2023, 3:24 AM
Unknown Object (File)
Aug 14 2023, 7:21 PM
Unknown Object (File)
Aug 14 2023, 8:39 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 40677
Build 37566: arc lint + arc unit