Add support for blob resources, enable support for Venus and gfxstream #914
Draft
mtjhrc wants to merge 10 commits intorust-vmm:mainfrom
Draft
Add support for blob resources, enable support for Venus and gfxstream #914mtjhrc wants to merge 10 commits intorust-vmm:mainfrom
mtjhrc wants to merge 10 commits intorust-vmm:mainfrom
Conversation
Instead of hardcoding the capset indices, lookup the capset index dynamically based on the configured capsets in the config. Signed-off-by: Matej Hrica <mhrica@redhat.com>
8575661 to
1f49e38
Compare
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 <mhrica@redhat.com>
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 <mhrica@redhat.com>
Implement blob resource support and shared memory mapping. This is required for
Venus support and gfxstream-{vulkan, gles} enablement.
Signed-off-by: Matej Hrica <mhrica@redhat.com>
Expose Venus capability set support using the virglrenderer backend, enabled by the new blob resource support. Signed-off-by: Matej Hrica <mhrica@redhat.com>
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 <mhrica@redhat.com>
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 <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
1f49e38 to
a623fef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
git commit -s), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafecode is properly documented.