Mark Johnston 7fa2335347 bhyve: Map the MSI-X table unconditionally for passthrough
It is possible for the PBA to reside in the same page as the MSI-X
table.  And, while devices are not supposed to do this, at least some
Intel wifi devices place registers in a page shared with the MSI-X
table.  To handle the first case we currently map the PBA page using
/dev/mem, and the second case is not handled.

Kill two birds with one stone: map the MSI-X table BAR using the
PCIOCBARMMAP ioctl instead of /dev/mem, and map the entire table so that
accesses beyond the bounds of the table can be emulated.  Regions of the
BAR not containing the table are left unmapped.

Reviewed by:	bz, grehan, jhb
MFC after:	3 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32359
2021-10-09 11:36:19 -04:00
..
2020-02-19 12:49:49 +00:00
2021-05-07 22:13:31 +02:00
2021-09-29 21:18:17 -06:00
2020-06-22 07:46:24 +00:00
2021-10-08 16:26:21 -07:00
2021-10-04 11:38:27 +02:00
2020-12-19 13:17:25 +00:00
2021-07-21 10:16:11 +01:00
2021-08-19 12:48:00 -05:00
2021-05-03 09:55:40 -06:00
2021-01-05 14:56:23 -05:00
2019-12-04 16:56:11 +00:00
2020-10-09 14:03:45 +00:00
2021-04-10 11:16:02 +02:00
2021-10-06 21:56:20 -08:00
2021-08-08 10:16:06 +02:00
2020-08-17 10:25:02 +00:00
2021-10-06 10:16:04 -04:00
2020-10-09 14:03:45 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-06-24 02:08:08 +00:00
2021-07-21 10:14:26 +01:00
2020-08-21 09:48:00 +00:00
2019-04-22 17:52:46 +00:00
2020-03-23 14:44:23 +00:00
2019-12-11 17:37:53 +00:00
2021-04-02 07:01:20 +00:00
2021-09-03 06:14:59 -07:00
2020-09-11 13:28:37 +00:00
2020-04-06 23:16:05 +00:00
2021-04-04 00:50:28 +03:00
2021-04-04 00:50:28 +03:00
2021-04-04 00:50:28 +03:00