drm/virtio: Use vmalloc for command buffer allocations.
authorDavid Riley <davidriley@chromium.org>
Wed, 11 Sep 2019 18:14:03 +0000 (11:14 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 12 Sep 2019 07:49:24 +0000 (09:49 +0200)
commite1218b8c0cc1f8108be67ba3783d63eb4a50d792
tree959d8edb7cb4b776b08d0049b6624fadc4f36ab6
parent32d6c2c5b5227cfc6f796bbd760dab81b05f48e5
drm/virtio: Use vmalloc for command buffer allocations.

Userspace requested command buffer allocations could be too large
to make as a contiguous allocation.  Use vmalloc if necessary to
satisfy those allocations.

Signed-off-by: David Riley <davidriley@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190911181403.40909-3-davidriley@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_ioctl.c
drivers/gpu/drm/virtio/virtgpu_vq.c