![]() virtio pci config structures may in future have non-standard bar values in the bar field. We should anticipate this by skipping any structures containing such a reserved value. The bar value should never change: check for harmful modified values we re-read it from the config space in vp_modern_map_capability(). Also clean up an existing check to consistently use PCI_STD_NUM_BARS. Signed-off-by: Keir Fraser <keirf@google.com> Link: https://lore.kernel.org/r/20220323140727.3499235-1-keirf@google.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit 3f63a1d7f6f500b6891b1003cec3e23ea4996a2e) Bug: 222232623 Signed-off-by: Keir Fraser <keirf@google.com> Change-Id: Idbba48154a051cf173b9cb0bd40c77fcf02902a4 |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
virtio.c | ||
virtio_balloon.c | ||
virtio_dma_buf.c | ||
virtio_input.c | ||
virtio_mem.c | ||
virtio_mmio.c | ||
virtio_pci_common.c | ||
virtio_pci_common.h | ||
virtio_pci_legacy.c | ||
virtio_pci_modern.c | ||
virtio_pci_modern_dev.c | ||
virtio_ring.c | ||
virtio_vdpa.c |