summaryrefslogtreecommitdiff
path: root/include/linux/vfio.h
diff options
context:
space:
mode:
authorKirti Wankhede <kwankhede@nvidia.com>2016-11-16 23:46:21 +0300
committerAlex Williamson <alex.williamson@redhat.com>2016-11-17 18:25:09 +0300
commit8f0d5bb95f763cacad7654304050ec1b636bb04a (patch)
treebec8ce0bfe39b99177adb540b0084bfd83c887fd /include/linux/vfio.h
parent7896c998f0e7160df97bd7aaae9807120535bf14 (diff)
downloadlinux-8f0d5bb95f763cacad7654304050ec1b636bb04a.tar.xz
vfio iommu type1: Add task structure to vfio_dma
Add task structure to vfio_dma structure. Task structure is used for: - During DMA_UNMAP, same task who mapped it or other task who shares same address space is allowed to unmap, otherwise unmap fails. QEMU maps few iova ranges initially, then fork threads and from the child thread calls DMA_UNMAP on previously mapped iova. Since child shares same address space, DMA_UNMAP is successful. - Avoid accessing struct mm while process is exiting by acquiring reference of task's mm during page accounting. - It is also used to get task mlock capability and rlimit for mlock. Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com> Signed-off-by: Neo Jia <cjia@nvidia.com> Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/vfio.h')
0 files changed, 0 insertions, 0 deletions