Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vhost-device-gpu: Expose more options as CLI flags #797

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mtjhrc
Copy link

@mtjhrc mtjhrc commented Jan 2, 2025

Summary of the PR

This PR allows the user to configure more flags, that are passed to Rutabaga. By specifying the individual capsets explicitly this also fixes a TODO, which hard-coded the number of enabled capsets.

Note: While you can enable some features using this, such as Venus or gfxstream-vulkan, these capsets are not really useful without blob resource support (to be added in other PR, depends on changes to QEMU) - you can enable the capsets, but not anything useful using them. This has been the case prior to this PR, but the capsets were just enabled implicitly.

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 command line arguments for configuring which capsets and features are
enabled when configuring Rutabaga.

Since we now specify the capsets explicitly we can drop the MAX_NUM_CAPSETS
constant and fix the TODO.

If the user selects virglrender the capsets are configured the default capset
configuration is suitable for running virgl/venus guests. If the user select
gfxstream, by default only vulkan is enabled, this is suitable for running
Android with gfxstream.

Signed-off-by: Matej Hrica <[email protected]>
The name of the project/backend is "virglrenderer", the dash was added by clap.
Adding the dash seems confusing to the user, the old name is kept as a hidden
alias.

Signed-off-by: Matej Hrica <[email protected]>
This was an oversight, for the user to be able to use the crate as a
library, the start_backend should be part of the public API.

Signed-off-by: Matej Hrica <[email protected]>
@mtjhrc mtjhrc changed the title vhost-user-gpu: Expose more options as CLI flags vhost-device-gpu: Expose more options as CLI flags Jan 2, 2025
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