linux/drivers/vfio/pci/virtio
Matt Evans 859dc0f625 vfio/pci: Replace vfio_pci_core_setup_barmap() with vfio_pci_core_get_iomap()
Since "vfio/pci: Set up barmap in vfio_pci_core_enable()", the
resource request and iomap for the BARs was performed early, and
vfio_pci_core_setup_barmap() just checks those actions succeeded.

Move this logic to a new helper that checks success and returns the
iomap address, replacing the various bare vdev->barmap[] lookups.
This maintains the error behaviour of the previous on-demand
vfio_pci_core_setup_barmap() scheme.

Signed-off-by: Matt Evans <mattev@meta.com>
Link: https://lore.kernel.org/r/20260511145829.2993601-4-mattev@meta.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
2026-05-20 11:54:10 -06:00
..
common.h vfio/virtio: Convert list_lock from spinlock to mutex 2026-04-21 12:01:20 -06:00
Kconfig vfio/virtio: Enable support for virtio-block live migration 2025-03-10 14:42:50 -06:00
legacy_io.c vfio/pci: Replace vfio_pci_core_setup_barmap() with vfio_pci_core_get_iomap() 2026-05-20 11:54:10 -06:00
main.c vfio/pci: Convert all PCI drivers to get_region_info_caps 2025-11-12 15:06:40 -07:00
Makefile vfio/virtio: Enable live migration once VIRTIO_PCI was configured 2024-11-13 16:28:32 -07:00
migrate.c vfio/virtio: Use guard() for migf->lock where applicable 2026-04-21 12:01:21 -06:00