[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 04/10] virtio-gpu: Don't require udmabuf when blobs and virgl
From: |
Dmitry Osipenko |
Subject: |
[PATCH v7 04/10] virtio-gpu: Don't require udmabuf when blobs and virgl are enabled |
Date: |
Thu, 11 Apr 2024 13:19:56 +0300 |
The udmabuf usage is mandatory when virgl is disabled and blobs feature
enabled in the Qemu machine configuration. If virgl and blobs are enabled,
then udmabuf requirement is optional. Since udmabuf isn't widely supported
by a popular Linux distros today, let's relax the udmabuf requirement for
blobs=on,virgl=on. Now, a full-featured virtio-gpu acceleration is
available to Qemu users without a need to have udmabuf available in the
system.
Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Antonio Caggiano <quic_acaggian@quicinc.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
---
hw/display/virtio-gpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index ae831b6b3e3e..dac272ecadb1 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -1472,6 +1472,7 @@ void virtio_gpu_device_realize(DeviceState *qdev, Error
**errp)
if (virtio_gpu_blob_enabled(g->parent_obj.conf)) {
if (!virtio_gpu_rutabaga_enabled(g->parent_obj.conf) &&
+ !virtio_gpu_virgl_enabled(g->parent_obj.conf) &&
!virtio_gpu_have_udmabuf()) {
error_setg(errp, "need rutabaga or udmabuf for blob resources");
return;
--
2.44.0
- [PATCH v7 00/10] Support blob memory and venus on qemu, Dmitry Osipenko, 2024/04/11
- [PATCH v7 03/10] virtio-gpu: Support context-init feature with virglrenderer, Dmitry Osipenko, 2024/04/11
- [PATCH v7 04/10] virtio-gpu: Don't require udmabuf when blobs and virgl are enabled,
Dmitry Osipenko <=
- [PATCH v7 02/10] virtio-gpu: Use pkgconfig version to decide which virgl features are available, Dmitry Osipenko, 2024/04/11
- [PATCH v7 05/10] virtio-gpu: Add virgl resource management, Dmitry Osipenko, 2024/04/11
- [PATCH v7 01/10] linux-headers: Update to Linux v6.9-rc3, Dmitry Osipenko, 2024/04/11
- [PATCH v7 07/10] virtio-gpu: Handle resource blob commands, Dmitry Osipenko, 2024/04/11
- Re: [PATCH v7 07/10] virtio-gpu: Handle resource blob commands, Akihiko Odaki, 2024/04/13
- Re: [PATCH v7 07/10] virtio-gpu: Handle resource blob commands, Dmitry Osipenko, 2024/04/15
- Re: [PATCH v7 07/10] virtio-gpu: Handle resource blob commands, Akihiko Odaki, 2024/04/15
- Re: [PATCH v7 07/10] virtio-gpu: Handle resource blob commands, Dmitry Osipenko, 2024/04/15
- Re: [PATCH v7 07/10] virtio-gpu: Handle resource blob commands, Akihiko Odaki, 2024/04/15
- Re: [PATCH v7 07/10] virtio-gpu: Handle resource blob commands, Dmitry Osipenko, 2024/04/18