HomeFreeBSD

virtio_pci_legacy: Use the table BAR and PBA BAR from MSI-X cap

Description

virtio_pci_legacy: Use the table BAR and PBA BAR from MSI-X cap

The MSI-X resource shouldn't be assumed to be always on BAR1.
The Virtio v1.1 Spec did not specify that MSI-X table and PBA BAR has to
be BAR1 either.

Reported by: Yuan Rui <number201724@me.com>
Reviewed by: bryanv, jhb
Approved by: philip (mentor)
Differential Revision: https://reviews.freebsd.org/D28817

(cherry picked from commit faf9a4e9142a02c289ee543a6091bd4b925c6a63)

Details

Provenance
khngAuthored on Mar 20 2021, 7:40 AM
Reviewer
bryanv
Differential Revision
D28817: virtio_pci_legacy: Use the table BAR and PBA BAR from MSI-X cap
Parents
rGb2ebf64aaef5: vm_fault: handle KERN_PROTECTION_FAILURE
Branches
Unknown
Tags
Unknown