Page MenuHomeFreeBSD

Handle PBA that shares a page with MSI-X table for passthrough devices.
ClosedPublic

Authored by jhb on Apr 11 2016, 9:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 26 2024, 11:45 PM
Unknown Object (File)
Oct 22 2024, 1:23 AM
Unknown Object (File)
Oct 21 2024, 7:17 PM
Unknown Object (File)
Oct 15 2024, 8:15 PM
Unknown Object (File)
Oct 8 2024, 11:56 PM
Unknown Object (File)
Sep 29 2024, 6:16 PM
Unknown Object (File)
Sep 24 2024, 1:40 PM
Unknown Object (File)
Sep 23 2024, 2:00 PM
Subscribers

Details

Summary

Handle PBA that shares a page with MSI-X table for passthrough devices.

If the PBA shares a page with the MSI-X table, map the shared page via
/dev/mem and emulate accesses to the portion of the PBA in the shared
page by accessing the mapped page.

Test Plan
  • Pass through a device whose PBA shares a page with the MSI-X table to a bhyve guest. Note that the driver for this device doesn't use the PBA, so I haven't actually tested PBA access.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Handle PBA that shares a page with MSI-X table for passthrough devices..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added reviewers: grehan, neel.
grehan edited edge metadata.

4096 should eventually be PAGE_SIZE but you inherited that :)

This revision is now accepted and ready to land.Apr 13 2016, 5:03 AM
This revision was automatically updated to reflect the committed changes.