Skip to content

vhost-device-gpu: Implement RESOURCE_ASSIGN_UUID command#945

Open
dorindabassey wants to merge 1 commit intorust-vmm:mainfrom
dorindabassey:assign_uuid
Open

vhost-device-gpu: Implement RESOURCE_ASSIGN_UUID command#945
dorindabassey wants to merge 1 commit intorust-vmm:mainfrom
dorindabassey:assign_uuid

Conversation

@dorindabassey
Copy link
Collaborator

@dorindabassey dorindabassey commented Mar 12, 2026

Summary of the PR

Add support for the VIRTIO_GPU_CMD_RESOURCE_ASSIGN_UUID command, allowing guests to query UUIDs for GPU resources. This commit adds VIRTIO_GPU_F_RESOURCE_UUID feature flag, routes ResourceAssignUuid commands to renderer backend and adds tests for UUID command processing and generation.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

Add support for the VIRTIO_GPU_CMD_RESOURCE_ASSIGN_UUID
command, allowing guests to query UUIDs for GPU resources.
This commit adds VIRTIO_GPU_F_RESOURCE_UUID feature flag,
routes ResourceAssignUuid commands to renderer backend
and adds tests for UUID command processing and generation.

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
Copy link
Member

@epilys epilys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @dorindabassey

However, shouldn't we check if the VIRTIO_GPU_F_RESOURCE_UUID feature bit is negotiated before replying to a VIRTIO_GPU_CMD_RESOURCE_ASSIGN_UUID command?

(You can implement VhostUserBackendMut::acked_features)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants