Skip to content

Conversation

@mtjhrc
Copy link
Contributor

@mtjhrc mtjhrc commented Dec 10, 2025

Summary of the PR

This PR adds support for blob resources.
This requires a new release of rust-vmm/vhost and virglrenderer-rs.

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.

Instead of hardcoding the capset indices, lookup the capset index dynamically
based on the configured capsets in the config.

Signed-off-by: Matej Hrica <[email protected]>
Change context handling to use the new virglrenderer API where contexts
are managed internally by the renderer instead of being tracked in a
separate BTreeMap.

Signed-off-by: Matej Hrica <[email protected]>
Add Backend field to GPU adapters and request BACKEND_REQ and
BACKEND_SEND_FD protocol features. This allows the backend to
communicate with the frontend for operations like shared memory mapping.

Signed-off-by: Matej Hrica <[email protected]>
Implement blob resource support and shared memory mapping. This is required for
Venus support and gfxstream-{vulkan, gles} enablement.

Signed-off-by: Matej Hrica <[email protected]>
Expose Venus capability set support using the virglrenderer backend, enabled by
the new blob resource support.

Signed-off-by: Matej Hrica <[email protected]>
The test trying to obtain capset info for 3 capsets, but we only had 2 capsets
configured. The test previously passed because the virgl backend was incorectly
returning the information for the aditional capset.

Signed-off-by: Matej Hrica <[email protected]>
Use String::from_utf8_lossy() instead of CStr::from_bytes_with_nul()
since the virtio-gpu driver sends debug_name without null terminator.

Signed-off-by: Matej Hrica <[email protected]>
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.

1 participant