drm/virtio: batch display update commands.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 12 Dec 2019 12:53:45 +0000 (13:53 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Dec 2019 11:39:50 +0000 (12:39 +0100)
commit7082e7a438db2abf13e4e1fa904875034de88b6b
tree05ef7538a0397e8bb2e0cc3117b02fa985ab60b8
parent3954ff10e06e4fbc548fc02ff1fcaaac3228fed5
drm/virtio: batch display update commands.

When the driver submits multiple commands in a row it makes sense to
notify the host only after submitting the last one, so the host can
process them all at once, with a single vmexit.

Add functions to enable/disable notifications to allow that.  Use the
new functions for primary plane updates.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20191212125346.8334-3-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_plane.c
drivers/gpu/drm/virtio/virtgpu_vq.c