mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
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>
This commit is contained in:
committed by
Boris Ostrovsky
parent
1d31456755
commit
932d656217
@@ -152,6 +152,16 @@ config XEN_GNTDEV
|
||||
help
|
||||
Allows userspace processes to use grants.
|
||||
|
||||
config XEN_GNTDEV_DMABUF
|
||||
bool "Add support for dma-buf grant access device driver extension"
|
||||
depends on XEN_GNTDEV && XEN_GRANT_DMA_ALLOC && DMA_SHARED_BUFFER
|
||||
help
|
||||
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.
|
||||
|
||||
config XEN_GRANT_DEV_ALLOC
|
||||
tristate "User-space grant reference allocator driver"
|
||||
depends on XEN
|
||||
|
||||
Reference in New Issue
Block a user