virtio-gpu api: Add a comment on VIRTIO_GPU_SHM_ID_HOST_VISIBLE
authorAnthoine Bourgeois <anthoine.bourgeois@gmail.com>
Thu, 19 Nov 2020 01:08:07 +0000 (17:08 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 20 Nov 2020 09:44:41 +0000 (10:44 +0100)
This provides a description of how the kernel driver uses the
shmid to determine capabilities.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20201119010809.528-3-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/uapi/linux/virtio_gpu.h

index 0ec6b61..97523a9 100644 (file)
@@ -115,6 +115,10 @@ enum virtio_gpu_ctrl_type {
 
 enum virtio_gpu_shm_id {
        VIRTIO_GPU_SHM_ID_UNDEFINED = 0,
+       /*
+        * VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB
+        * VIRTIO_GPU_CMD_RESOURCE_UNMAP_BLOB
+        */
        VIRTIO_GPU_SHM_ID_HOST_VISIBLE = 1
 };