forked from kevintraynor/dpdk-stable-queue-1811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bus/vmbus: fix ring buffer mapping in secondary process
[ upstream commit 70cdd92 ] 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: 831dba4 ("bus/vmbus: add Hyper-V virtual bus support") Reported-by: Jonathan Erb <jonathan.erb@banduracyber.com> Signed-off-by: Long Li <longli@microsoft.com> Acked-by: Stephen Hemminger <sthemmin@microsoft.com>
- Loading branch information
1 parent
2c85290
commit 30edb6e
Showing
4 changed files
with
107 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters