Commit 4cbc8562 authored by jiangdongxu's avatar jiangdongxu Committed by Jiang Dongxu
Browse files

vhost-vdpa: Allow transparent MSI IOV

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I86ITO



----------------------------------------------------------------------

When attach dma_dev to iommu domain, check the device's
reserved regions and test whether the IOMMU translates
MSI transactions. If yes, we initialize an IOVA allocator
through the iommu_get_msi_cookie API. This will allow the
MSI IOVAs to be transparently allocated on MSI controller's
compose().

Signed-off-by: default avatarjiangdongxu <jiangdongxu1@huawei.com>
parent 05020b56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment