vfio/igd: use VFIOConfigMirrorQuirk for mirrored registers
authorTomita Moeko <tomitamoeko@gmail.com>
Sat, 4 Jan 2025 15:42:18 +0000 (23:42 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 11 Feb 2025 13:15:19 +0000 (14:15 +0100)
commite45891e0b17884b7170c441eab3a5cdd856946f7
tree0e59d9b490a3832f2398bb977f4c7d04759b82fb
parentf36e7ba9750cbeffdc465c2d195a232d7cb67555
vfio/igd: use VFIOConfigMirrorQuirk for mirrored registers

With the introduction of config_offset field, VFIOConfigMirrorQuirk can
now be used for those mirrored register in igd bar0. This eliminates
the need for the macro intoduced in 1a2623b5c9e7 ("vfio/igd: add macro
for declaring mirrored registers").

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