From: Antonios Motakis Date: Mon, 16 Mar 2015 20:08:47 +0000 (-0600) Subject: vfio/platform: read and write support for the device fd X-Git-Tag: omap-for-v4.2/o2_dc~137^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e3f264560099869f68830cb14b3b3e71e5ac76a;p=pandora-kernel.git vfio/platform: read and write support for the device fd VFIO returns a file descriptor which we can use to manipulate the memory regions of the device. Usually, the user will mmap memory regions that are addressable on page boundaries, however for memory regions where this is not the case we cannot provide mmap functionality due to security concerns. For this reason we also allow to use read and write functions to the file descriptor pointing to the memory regions. We implement this functionality only for MMIO regions of platform devices; PIO regions are not being handled at this point. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal Reviewed-by: Eric Auger Tested-by: Eric Auger Signed-off-by: Alex Williamson --- Reading git-diff-tree failed