Skip to content

vhost-user: add GpuFrontend API for GPU socket communication#369

Open
dorindabassey wants to merge 1 commit into
rust-vmm:mainfrom
dorindabassey:gpu_frontend
Open

vhost-user: add GpuFrontend API for GPU socket communication#369
dorindabassey wants to merge 1 commit into
rust-vmm:mainfrom
dorindabassey:gpu_frontend

Conversation

@dorindabassey

@dorindabassey dorindabassey commented Jul 13, 2026

Copy link
Copy Markdown

Summary of the PR

Add frontend-side API for the vhost-user-gpu protocol socket:

  • VhostUserFrontend::set_gpu_socket() sends GPU_SET_SOCKET message
  • GpuFrontend reads requests and sends typed responses
  • Mirrors existing GpuBackend pattern

Eliminates need for frontends to manually construct GPU protocol headers.

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 frontend-side API for the vhost-user-gpu protocol socket:
- VhostUserFrontend::set_gpu_socket() sends GPU_SET_SOCKET message
- GpuFrontend reads requests and sends typed responses
- Mirrors existing GpuBackend pattern

Eliminates need for frontends to manually construct GPU protocol
headers.

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
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