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

pci: vfio: Don't assume MSI-X is enabled #5658

Conversation

rbradford
Copy link
Member

The fixup_msix_region() function added in
a718716
made the assumption that MSI-X was always available. This is the case
with many VFIO devices and all our virtio devices but created regression
with MSI devices.

Simply return the existing region size if MSI-X is not supported by the
device.

Fixes: #5649

Signed-off-by: Rob Bradford rbradford@rivosinc.com

The fixup_msix_region() function added in
cloud-hypervisor@a718716
made the assumption that MSI-X was always available. This is the case
with many VFIO devices and all our virtio devices but created regression
with MSI devices.

Simply return the existing region size if MSI-X is not supported by the
device.

Fixes: cloud-hypervisor#5649

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
@rbradford rbradford merged commit 363b478 into cloud-hypervisor:main Aug 7, 2023
21 checks passed
@rbradford rbradford added the bug-fix Bug fix to include in release notes label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Bug fix to include in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Panic with VFIO with MSI only device (regression)
2 participants