]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/igd: Refactor vfio_probe_igd_bar4_quirk into pci config quirk
authorTomita Moeko <tomitamoeko@gmail.com>
Thu, 6 Mar 2025 18:01:26 +0000 (02:01 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 11 Mar 2025 16:01:14 +0000 (17:01 +0100)
commit9267f96ad6f26100e17a34f169a79d1ad9c1c7aa
treec72ad581949b323836d8eea3091b8356fd544a6a
parentb22ab580d284558e298228e40f11be057cd3576c
vfio/igd: Refactor vfio_probe_igd_bar4_quirk into pci config quirk

The actual IO BAR4 write quirk in vfio_probe_igd_bar4_quirk was removed
in previous change, leaving the function not matching its name, so move
it into the newly introduced vfio_config_quirk_setup. There is no
functional change in this commit.

For now, to align with current legacy mode behavior, it returns and
proceeds on error. Later it will fail on error after decoupling the
quirks from legacy mode.

Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Corvin Köhne <c.koehne@beckhoff.com>
Link: https://lore.kernel.org/qemu-devel/20250306180131.32970-7-tomitamoeko@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/igd.c
hw/vfio/pci-quirks.c
hw/vfio/pci.h