vfio/pci: introduce config_offset field in VFIOConfigMirrorQuirk
authorTomita Moeko <tomitamoeko@gmail.com>
Sat, 4 Jan 2025 15:42:17 +0000 (23:42 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 11 Feb 2025 13:15:19 +0000 (14:15 +0100)
commitf36e7ba9750cbeffdc465c2d195a232d7cb67555
tree8ec6d8540522d615eaee6174b003cdabd56a5f2e
parentdee69a8ca6ebc325939dc0b6800becdb26cd9dbf
vfio/pci: introduce config_offset field in VFIOConfigMirrorQuirk

Device may only expose a specific portion of PCI config space through a
region in a BAR, such behavior is seen in igd GGC and BDSM mirrors in
BAR0. To handle these, config_offset is introduced to allow mirroring
arbitrary region in PCI config space.

Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20250104154219.7209-3-tomitamoeko@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/pci-quirks.c
hw/vfio/pci-quirks.h