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
F152587418: D5919.id.diff
Wed, Apr 15, 8:22 PM
F152499304: D5919.diff
Wed, Apr 15, 8:41 AM
F152472174: D5919.diff
Wed, Apr 15, 4:20 AM
F152465209: D5919.diff
Wed, Apr 15, 3:24 AM
Unknown Object (File)
Sat, Apr 11, 1:30 PM
Unknown Object (File)
Fri, Apr 10, 10:50 AM
Unknown Object (File)
Mon, Apr 6, 3:40 PM
Unknown Object (File)
Fri, Mar 27, 8:01 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.