From 5f899c34af1dbb0f621287faf9bcfb60fa237543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 8 Oct 2024 16:50:26 +0400 Subject: virtio-gpu: allocate shareable 2d resources on !win32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to what was done in commit 9462ff46 ("virtio-gpu/win32: allocate shareable 2d resources/images") for win32, allocate resource memory with memfd, so the associated display surface memory can be shared with a different process. Signed-off-by: Marc-André Lureau Reviewed-by: Akihiko Odaki Message-ID: <20241008125028.1177932-18-marcandre.lureau@redhat.com> --- include/hw/virtio/virtio-gpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h index 7a59379f5a..7509d13265 100644 --- a/include/hw/virtio/virtio-gpu.h +++ b/include/hw/virtio/virtio-gpu.h @@ -53,6 +53,8 @@ struct virtio_gpu_simple_resource { pixman_image_t *image; #ifdef WIN32 HANDLE handle; +#else + int shmfd; #endif uint64_t hostmem; -- cgit v1.2.3