Update the virtio_gpu.h header to sync with Linux kernel changes,
which introduces two new blob flags for userptr support:
- VIRTIO_GPU_BLOB_FLAG_USE_USERPTR (0x0008)
- VIRTIO_GPU_BLOB_FLAG_USERPTR_RDONLY (0x0010)

These flags enable virtio-gpu to support user-provided memory
pointers for blob resources.

Signed-off-by: Honglei Huang <[email protected]>
---
 include/standard-headers/linux/virtio_gpu.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/standard-headers/linux/virtio_gpu.h 
b/include/standard-headers/linux/virtio_gpu.h
index 00cd3f04af..c40961bee5 100644
--- a/include/standard-headers/linux/virtio_gpu.h
+++ b/include/standard-headers/linux/virtio_gpu.h
@@ -405,6 +405,8 @@ struct virtio_gpu_resource_create_blob {
 #define VIRTIO_GPU_BLOB_FLAG_USE_MAPPABLE     0x0001
 #define VIRTIO_GPU_BLOB_FLAG_USE_SHAREABLE    0x0002
 #define VIRTIO_GPU_BLOB_FLAG_USE_CROSS_DEVICE 0x0004
+#define VIRTIO_GPU_BLOB_FLAG_USE_USERPTR      0x0008
+#define VIRTIO_GPU_BLOB_FLAG_USERPTR_RDONLY   0x0010
        /* zero is invalid blob mem */
        uint32_t blob_mem;
        uint32_t blob_flags;
-- 
2.34.1


Reply via email to