Discussion of the VIRTIO specification
 help / color / mirror / Atom feed
From: Val Packett <val@invisiblethingslab.com>
To: virtio-comment@lists.linux.dev
Cc: "Val Packett" <val@invisiblethingslab.com>,
	"Gurchetan Singh" <gurchetansingh@chromium.org>,
	"Sergio Lopez" <slp@redhat.com>,
	"Parav Pandit" <parav@nvidia.com>,
	dmitry.osipenko@collabora.com, mst@redhat.com,
	"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
	"Alyssa Ross" <hi@alyssa.is>,
	"Demi Marie Obenour" <demiobenour@gmail.com>
Subject: [PATCH v3 1/3] virtio-gpu: document individual blob_flags
Date: Tue, 24 Nov 2026 18:19:27 -0300	[thread overview]
Message-ID: <20261124211931.809982-2-val@invisiblethingslab.com> (raw)
In-Reply-To: <20261124211931.809982-1-val@invisiblethingslab.com>

The blob_flags field of virtio_gpu_resource_create_blob has been rather
underdocumented. Describe what each flag actually means and which kinds
of blob resources it is expected to work with.

Signed-off-by: Val Packett <val@invisiblethingslab.com>
---
 device-types/gpu/description.tex | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/device-types/gpu/description.tex b/device-types/gpu/description.tex
index ac3b427725f6..ea6fae4667e1 100644
--- a/device-types/gpu/description.tex
+++ b/device-types/gpu/description.tex
@@ -671,7 +671,22 @@ \subsubsection{Device Operation: controlq}\label{sec:Device Types / GPU Device /
 
 The driver MUST inform the device if the blob resource is used for
 memory access, sharing between driver instances and/or sharing with
-other devices. This is done via the \field{blob_flags} field.
+other devices. This is done via the \field{blob_flags} field:
+
+  \begin{itemize*}
+  \item VIRTIO_GPU_BLOB_FLAG_USE_MAPPABLE indicates that the resource may be
+  memory-mapped with VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB. \field{blob_mem} MUST
+  be VIRTIO_GPU_BLOB_MEM_HOST3D, as MAP_BLOB makes no sense with other kinds
+  of blob resources.
+  \item VIRTIO_GPU_BLOB_FLAG_USE_SHAREABLE indicates that the resource may be
+  shared between multiple virtio-gpu contexts. The device MAY only support this
+  flag with certain values of \field{blob_mem}; historically, this has only
+  worked with host-only blobs.
+  \item VIRTIO_GPU_BLOB_FLAG_USE_CROSS_DEVICE indicates that the resource may
+  be shared with other virtio devices via VIRTIO_GPU_CMD_RESOURCE_ASSIGN_UUID.
+  The device MAY only support this flag with certain values of \field{blob_mem}.
+  Requires VIRTIO_GPU_F_RESOURCE_UUID.
+  \end{itemize*}
 
 If VIRTIO_GPU_F_VIRGL is set, both VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D
 and VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D may be used to update the
-- 
2.56.0


  reply	other threads:[~2026-11-24 21:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 21:19 [PATCH v3 0/3] virtio-gpu: add F_BLOB_GUEST_SHAREABLE (ex CREATE_GUEST_HANDLE) and F_BLOB_CTX_ID_FIX Val Packett
2026-11-24 21:19 ` Val Packett [this message]
2026-11-24 21:19 ` [PATCH v3 2/3] virtio-gpu: introduce BLOB_CTX_ID_FIX feature Val Packett
2026-11-24 21:19 ` [PATCH v3 3/3] virtio-gpu: introduce BLOB_GUEST_SHAREABLE feature Val Packett
2026-11-24 22:44 ` [PATCH v3 0/3] virtio-gpu: add F_BLOB_GUEST_SHAREABLE (ex CREATE_GUEST_HANDLE) and F_BLOB_CTX_ID_FIX Demi Marie Obenour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124211931.809982-2-val@invisiblethingslab.com \
    --to=val@invisiblethingslab.com \
    --cc=demiobenour@gmail.com \
    --cc=dmitry.osipenko@collabora.com \
    --cc=gurchetansingh@chromium.org \
    --cc=hi@alyssa.is \
    --cc=marmarek@invisiblethingslab.com \
    --cc=mst@redhat.com \
    --cc=parav@nvidia.com \
    --cc=slp@redhat.com \
    --cc=virtio-comment@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox