summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2015-06-05 06:35:01 (GMT)
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-11 05:14:55 (GMT)
commit2d270df8f71a0fded9ef01cb9282b46fd3bc0986 (patch)
tree3801ebd1fbf14e2cd1b77ac68a8de64e1d854e39 /drivers/gpio
parent00663d4ee05dafe97033003fd5479cf9efd4bf96 (diff)
downloadlinux-2d270df8f71a0fded9ef01cb9282b46fd3bc0986.tar.xz
vfio: powerpc/spapr: Move locked_vm accounting to helpers
There moves locked pages accounting to helpers. Later they will be reused for Dynamic DMA windows (DDW). This reworks debug messages to show the current value and the limit. This stores the locked pages number in the container so when unlocking the iommu table pointer won't be needed. This does not have an effect now but it will with the multiple tables per container as then we will allow attaching/detaching groups on fly and we may end up having a container with no group attached but with the counter incremented. While we are here, update the comment explaining why RLIMIT_MEMLOCK might be required to be bigger than the guest RAM. This also prints pid of the current process in pr_warn/pr_debug. 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> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions