aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/dart_iommu.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <[email protected]>2015-06-05 06:35:02 +0000
committerMichael Ellerman <[email protected]>2015-06-11 05:14:56 +0000
commit3c56e822f8fb0105949d04bda0e549e9d08713cd (patch)
tree61ec37ee7a4e0bf512a50547dd59e86188a03308 /arch/powerpc/sysdev/dart_iommu.c
parentvfio: powerpc/spapr: Move locked_vm accounting to helpers (diff)
downloadkernel-3c56e822f8fb0105949d04bda0e549e9d08713cd.tar.gz
kernel-3c56e822f8fb0105949d04bda0e549e9d08713cd.zip
vfio: powerpc/spapr: Disable DMA mappings on disabled container
At the moment DMA map/unmap requests are handled irrespective to the container's state. This allows the user space to pin memory which it might not be allowed to pin. This adds checks to MAP/UNMAP that the container is enabled, otherwise -EPERM is returned. Signed-off-by: Alexey Kardashevskiy <[email protected]> [aw: for the vfio related changes] Acked-by: Alex Williamson <[email protected]> Reviewed-by: David Gibson <[email protected]> Reviewed-by: Gavin Shan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/sysdev/dart_iommu.c')
0 files changed, 0 insertions, 0 deletions