OSDN Git Service

xen/gntdev: Add initial support for dma-buf UAPI
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 20 Jul 2018 09:01:48 +0000 (12:01 +0300)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 27 Jul 2018 03:05:14 +0000 (23:05 -0400)
commit932d6562179efe8e2460a0343dbe0fcacf288a9e
treeedaf27dad5042f971a9f098ca7c6217132e4d08c
parent1d314567553883d9f606cc59e8e66f465a4b6ccd
xen/gntdev: Add initial support for dma-buf UAPI

Add UAPI and IOCTLs for dma-buf grant device driver extension:
the extension allows userspace processes and kernel modules to
use Xen backed dma-buf implementation. With this extension grant
references to the pages of an imported dma-buf can be exported
for other domain use and grant references coming from a foreign
domain can be converted into a local dma-buf for local export.
Implement basic initialization and stubs for Xen DMA buffers'
support.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/Kconfig
drivers/xen/Makefile
drivers/xen/gntdev-common.h
drivers/xen/gntdev-dmabuf.c [new file with mode: 0644]
drivers/xen/gntdev-dmabuf.h [new file with mode: 0644]
drivers/xen/gntdev.c
include/uapi/xen/gntdev.h