]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/igd: Only emulate GGC register when x-igd-gms is set
authorTomita Moeko <tomitamoeko@gmail.com>
Mon, 5 May 2025 17:03:04 +0000 (01:03 +0800)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:27 +0000 (12:42 +0200)
commit36e4047a9b1c6577f3f09a75abf39f886837cb60
tree59fa93959ab64f92ef82ccbc10663576d98e7d09
parent395a1f7941f4e46044c865ea0c39d1eef0eaddc6
vfio/igd: Only emulate GGC register when x-igd-gms is set

x-igd-gms is used for overriding DSM region size in GGC register in
both config space and MMIO BAR0, by default host value is used.
There is no need to emulate it in default case.

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