Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pci: Handle dword MSI-X control writes - #7956

Merged
likebreath merged 1 commit into
cloud-hypervisor:mainfrom
DamianB-BitFlipper:bug-fix
Apr 3, 2026
Merged

likebreath merged 1 commit into
cloud-hypervisor:mainfrom
DamianB-BitFlipper:bug-fix

Conversation

@DamianB-BitFlipper

@DamianB-BitFlipper DamianB-BitFlipper commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix VFIO MSI-X config handling when the guest updates the MSI-X capability through a 32-bit write at offset 0 instead of only a 16-bit write at offset 2.
  • Keep the cached MSI-X message control state in sync with what the guest programmed so enable/disable transitions are applied correctly.
  • This is important for passthrough GPUs, where MSI-X interrupts are used during NVIDIA Fabric Manager registration. If the guest enables MSI-X through the dword write path and the cached state is not updated, interrupt delivery can remain stale and GPU initialization or fabric registration can fail.

@DamianB-BitFlipper DamianB-BitFlipper changed the title Bug fix pci: Handle dword MSI-X control writes Apr 2, 2026
Some guests update the MSI-X capability through a 32-bit write at
offset 0 instead of a 16-bit write at offset 2. Update the cached
Message Control state for that path as well so MSI-X enablement stays
in sync with the guest configuration.

Add a short comment documenting why the dword write path also updates
the cached MSI-X Message Control state.

This is important for passthrough GPUs, where MSI-X interrupts are used
during NVIDIA Fabric Manager registration. Without updating the cached
state on the dword write path, interrupt delivery can remain stale and
GPU initialization or fabric registration can fail.

Signed-off-by: Damian Barabonkov <[email protected]>
@DamianB-BitFlipper
DamianB-BitFlipper marked this pull request as ready for review April 2, 2026 17:20
@DamianB-BitFlipper
DamianB-BitFlipper requested a review from a team as a code owner April 2, 2026 17:20
@likebreath
likebreath added this pull request to the merge queue Apr 2, 2026
Merged via the queue into cloud-hypervisor:main with commit 8248650 Apr 3, 2026
38 checks passed
@rbradford rbradford moved this to ✅ Done in Cloud Hypervisor Roadmap Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants