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.

Approved by: so
Security: EN-21:15.virtio
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)
(cherry picked from commit 98740ead97c60caca1d7cb3e996108c75f499beb)

Details

Provenance
khngAuthored on Mar 20 2021, 7:40 AM
markjCommitted on May 26 2021, 8:32 PM
Reviewer
bryanv
Differential Revision
D28817: virtio_pci_legacy: Use the table BAR and PBA BAR from MSI-X cap
Parents
rGf32130a1955e: amd64/linux*: add required header to get the constant value
Branches
Unknown
Tags
Unknown