]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
virtio_pci_legacy: Use the table BAR and PBA BAR from MSI-X cap
authorKa Ho Ng <khng@FreeBSD.org>
Sat, 20 Mar 2021 07:40:52 +0000 (15:40 +0800)
committerKa Ho Ng <khng@FreeBSD.org>
Sat, 20 Mar 2021 07:45:34 +0000 (15:45 +0800)
commitfaf9a4e9142a02c289ee543a6091bd4b925c6a63
tree4606c7d8ff66ee7f65b74142fce4ff6bd687d752
parent9c5aac8f2e84ca4bbdf82514302c08c0453ec59b
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>
MFC after: 2 weeks
Reviewed by: bryanv, jhb
Approved by: philip (mentor)
Differential Revision: https://reviews.freebsd.org/D28817
sys/dev/virtio/pci/virtio_pci_legacy.c