-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdpa/sfc: add support for mcdi IOVA remap
vDPA driver allocates a MCDI buffer and maps it for DMA in the IO address space of the virtual function, and the virtio-net driver independently allocates virtqueues and uses their corresponding guest IOVA(s). There is no guarantee that the values for these two addresses will be unique and vDPA might need to relocate mcdi IOVA. To resolves the problem of overlap between IOVA(s) allocated by vDPA and qemu, three changes have been made to the vDPA driver. 1) Cache all known IOVA(s) in a linked list and add functions to check overlap and resolve IOVA opverlaps. 2) Check for overlap 3) If overlap is found, find a new IOVA and invoke efx_mcdi_dma_remap Signed-off-by: Abhimanyu Saini <[email protected]>
- Loading branch information
Abhimanyu Saini
committed
Jul 17, 2022
1 parent
0acecd1
commit c957571
Showing
5 changed files
with
284 additions
and
18 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
Oops, something went wrong.