]> git.proxmox.com Git - mirror_qemu.git/commit
hw/display: introduce virtio-dmabuf
authorAlbert Esteve <aesteve@redhat.com>
Mon, 2 Oct 2023 06:57:04 +0000 (08:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 22:15:06 +0000 (18:15 -0400)
commitfaefdba8474fbc30427a64caa4dcd6df611f5b60
treeb1a5dfa465c9728f6ec9efb4a8f522da99e13245
parenta6ceee591acdb9c9c772bf59544a57891308222e
hw/display: introduce virtio-dmabuf

This API manages objects (in this iteration,
dmabuf fds) that can be shared along different
virtio devices, associated to a UUID.

The API allows the different devices to add,
remove and/or retrieve the objects by simply
invoking the public functions that reside in the
virtio-dmabuf file.

For vhost backends, the API stores the pointer
to the backend holding the object.

Suggested-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Albert Esteve <aesteve@redhat.com>
Message-Id: <20231002065706.94707-3-aesteve@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
MAINTAINERS
hw/display/meson.build
hw/display/virtio-dmabuf.c [new file with mode: 0644]
include/hw/virtio/virtio-dmabuf.h [new file with mode: 0644]
tests/unit/meson.build
tests/unit/test-virtio-dmabuf.c [new file with mode: 0644]