[dpdk-dev] [PATCH] mem: check DMA mask for user-supplied IOVA addresses

Burakov, Anatoly anatoly.burakov at intel.com
Tue May 5 18:26:09 CEST 2020


On 05-May-20 4:48 PM, Anatoly Burakov wrote:
> Currently, external memory API will silently succeed if the IOVA
> addresses supplied by the user do not fit into the DMA mask. This
> can cause difficult to debug issues or accepting failed kernel
> VFIO DMA mappings.
> 
> Fix it so that if the IOVA addresses are provided, they are checked
> to see if they fit into the DMA mask.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
To avoid any misunderstandings, this is only for external memory - we 
already do this for internal memory. See the original thread [1] for 
context.

Also, needs Fixes: tag and a unit test, so will submit a v2 some time 
this week.

[1] http://patches.dpdk.org/patch/69566/
-- 
Thanks,
Anatoly


More information about the dev mailing list