summaryrefslogtreecommitdiff
path: root/mm/zpool.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2015-06-05 09:35:02 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-11 08:14:56 +0300
commit3c56e822f8fb0105949d04bda0e549e9d08713cd (patch)
tree61ec37ee7a4e0bf512a50547dd59e86188a03308 /mm/zpool.c
parent2d270df8f71a0fded9ef01cb9282b46fd3bc0986 (diff)
downloadlinux-3c56e822f8fb0105949d04bda0e549e9d08713cd.tar.xz
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 <aik@ozlabs.ru> [aw: for the vfio related changes] Acked-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'mm/zpool.c')
0 files changed, 0 insertions, 0 deletions