]> 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)
committerMark Johnston <markj@FreeBSD.org>
Wed, 26 May 2021 20:32:40 +0000 (16:32 -0400)
commit6fe25201ea624180130c08590e0566fc9e238570
treebe61f20335c83ee95d0c33acb068c28f12059699
parentf32130a1955e40476fc3c15e4d32e80e32b7c42c
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)
sys/dev/virtio/pci/virtio_pci_legacy.c