Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit ec3cbb3

Browse files
robclarkkraxel
authored andcommitted
drm/virtio: Remove restriction of non-zero blob_flags
With native userspace drivers in guest, a lot of GEM objects need to be neither shared nor mappable. And in fact making everything mappable and/or sharable results in unreasonably high fd usage in host VMM. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Chia-I Wu <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent 194d250 commit ec3cbb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/virtio/virtgpu_ioctl.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ static int verify_blob(struct virtio_gpu_device *vgdev,
609609
if (!vgdev->has_resource_blob)
610610
return -EINVAL;
611611

612-
if ((rc_blob->blob_flags & ~VIRTGPU_BLOB_FLAG_USE_MASK) ||
613-
!rc_blob->blob_flags)
612+
if (rc_blob->blob_flags & ~VIRTGPU_BLOB_FLAG_USE_MASK)
614613
return -EINVAL;
615614

616615
if (rc_blob->blob_flags & VIRTGPU_BLOB_FLAG_USE_CROSS_DEVICE) {

0 commit comments

Comments
 (0)