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
F175950256: D31308.diff
Wed, Oct 14, 5:47 PM
Unknown Object (File)
Wed, Oct 14, 8:23 AM
Unknown Object (File)
Tue, Oct 13, 6:32 AM
Unknown Object (File)
Sun, Oct 11, 1:23 PM
Unknown Object (File)
Tue, Oct 6, 12:06 AM
Unknown Object (File)
Mon, Oct 5, 11:52 PM
Unknown Object (File)
Mon, Oct 5, 11:41 PM
Unknown Object (File)
Mon, Oct 5, 11:37 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