Page MenuHomeFreeBSD

bhyve: Map the right BAR in init_msix_table()
ClosedPublic

Authored by markj on Jan 4 2022, 7:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 9 2024, 11:02 PM
Unknown Object (File)
Jan 16 2024, 2:42 PM
Unknown Object (File)
Jan 3 2024, 7:25 AM
Unknown Object (File)
Dec 26 2023, 2:24 PM
Unknown Object (File)
Dec 23 2023, 1:49 AM
Unknown Object (File)
Dec 13 2023, 2:01 AM
Unknown Object (File)
Dec 10 2023, 9:40 PM
Unknown Object (File)
Nov 6 2023, 7:22 AM
Subscribers

Details

Summary

The PBA and MSI-X table can reside in different BARs.

Reported by: Andy Fiddaman <andy@omniosce.org>
Fixes: 7fa233534736 ("bhyve: Map the MSI-X table unconditionally for passthrough")
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Jan 4 2022, 7:11 PM

Fix a second bug, also reported by Andy:

If the last page containing the table is not also the last page
of the BAR, then we would call mprotect(PROT_NONE) on the wrong
portion of the mapping.

This revision is now accepted and ready to land.Jan 4 2022, 10:35 PM