numam-dpdk/drivers/bus/vmbus
Long Li 70cdd92e04 bus/vmbus: fix ring buffer mapping in secondary process
The driver code had wrong assumption that all the addresses to ring buffers
in the secondary process are the same as those in the primary process. This
is not always correct as the channels could be mapped to different
addresses in the secondary process.

Fix this by keeping track of all the mapped addresses from the primary
process in the shared uio_res, and have second process map to the same
addresses.

Fixes: 831dba47bd ("bus/vmbus: add Hyper-V virtual bus support")
Cc: stable@dpdk.org

Reported-by: Jonathan Erb <jonathan.erb@banduracyber.com>
Signed-off-by: Long Li <longli@microsoft.com>
Acked-by: Stephen Hemminger <sthemmin@microsoft.com>
2021-10-13 13:55:09 +02:00
..
linux bus/vmbus: fix ring buffer mapping in secondary process 2021-10-13 13:55:09 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
private.h bus/vmbus: fix ring buffer mapping in secondary process 2021-10-13 13:55:09 +02:00
rte_bus_vmbus.h eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
rte_vmbus_reg.h drivers: replace page size definitions with function 2021-03-23 08:41:05 +01:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vmbus_bufring.c bus/vmbus: simplify arguments to need signal function 2020-04-21 13:57:06 +02:00
vmbus_channel.c bus/vmbus: fix ring buffer mapping in secondary process 2021-10-13 13:55:09 +02:00
vmbus_common_uio.c bus/vmbus: fix ring buffer mapping in secondary process 2021-10-13 13:55:09 +02:00
vmbus_common.c bus: clarify log for non-NUMA-aware devices 2021-08-04 11:33:31 +02:00