]> 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, 3 Apr 2021 06:09:31 +0000 (14:09 +0800)
commit98740ead97c60caca1d7cb3e996108c75f499beb
tree8305d79515f6c67edf59eabaf084bd19de9e1ba9
parentb2ebf64aaef53802a1be25fbc6adcd9ad76085a8
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)
sys/dev/virtio/pci/virtio_pci_legacy.c