Add udmabuf misc device
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Aug 2018 09:34:44 +0000 (11:34 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 3 Sep 2018 11:29:38 +0000 (13:29 +0200)
commitfbb0de795078190a9834b3409e4b009cfb18a6d4
tree65e82b3e44c500715a6c1045217abc3469ff3530
parentb972cece9448c55a2464d61787c955ab28110a40
Add udmabuf misc device

A driver to let userspace turn memfd regions into dma-bufs.

Use case:  Allows qemu create dmabufs for the vga framebuffer or
virtio-gpu ressources.  Then they can be passed around to display
those guest things on the host.  To spice client for classic full
framebuffer display, and hopefully some day to wayland server for
seamless guest window display.

qemu test branch:
  https://git.kraxel.org/cgit/qemu/log/?h=sirius/udmabuf

Cc: David Airlie <airlied@linux.ie>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180827093444.23623-1-kraxel@redhat.com
Documentation/ioctl/ioctl-number.txt
MAINTAINERS
drivers/dma-buf/Kconfig
drivers/dma-buf/Makefile
drivers/dma-buf/udmabuf.c [new file with mode: 0644]
include/uapi/linux/udmabuf.h [new file with mode: 0644]
tools/testing/selftests/drivers/dma-buf/Makefile [new file with mode: 0644]
tools/testing/selftests/drivers/dma-buf/udmabuf.c [new file with mode: 0644]