summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergio Lopez <slp@redhat.com>2026-04-28 21:44:50 +0200
committerDmitry Osipenko <dmitry.osipenko@collabora.com>2026-05-20 17:59:21 +0300
commit6bd7e82e26531541a6023f060ba749547b9868ac (patch)
tree0f08920041938b06379391d9cf2b5ef8af3418d4 /include
parent47248e0d8264452762bd47a8b3c89665b8235e93 (diff)
drm/virtio: add VIRTGPU_PARAM_BLOB_ALIGNMENT to params
Add VIRTGPU_PARAM_BLOB_ALIGNMENT as a param that can be read with VIRTGPU_GETPARAM by userspace applications running in the guest to obtain the host's page size and find out the right alignment to be used in shared memory allocations. Signed-off-by: Sergio Lopez <slp@redhat.com> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Link: https://patch.msgid.link/20260428194450.518296-4-slp@redhat.com
Diffstat (limited to 'include')
-rw-r--r--include/uapi/drm/virtgpu_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/virtgpu_drm.h b/include/uapi/drm/virtgpu_drm.h
index ba09a4ee3e77..95587e12aed5 100644
--- a/include/uapi/drm/virtgpu_drm.h
+++ b/include/uapi/drm/virtgpu_drm.h
@@ -98,6 +98,7 @@ struct drm_virtgpu_execbuffer {
#define VIRTGPU_PARAM_CONTEXT_INIT 6 /* DRM_VIRTGPU_CONTEXT_INIT */
#define VIRTGPU_PARAM_SUPPORTED_CAPSET_IDs 7 /* Bitmask of supported capability set ids */
#define VIRTGPU_PARAM_EXPLICIT_DEBUG_NAME 8 /* Ability to set debug name from userspace */
+#define VIRTGPU_PARAM_BLOB_ALIGNMENT 9 /* Device alignment requirements for blobs */
struct drm_virtgpu_getparam {
__u64 param;