]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/igd: Detect IGD device by OpRegion
authorTomita Moeko <tomitamoeko@gmail.com>
Mon, 5 May 2025 17:02:59 +0000 (01:02 +0800)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:27 +0000 (12:42 +0200)
commitc0273e77f2d7aab3312eb557b49332da528ff66b
tree267af0dc89ba22ace691911a8873d31b64475bab
parent1d5f84f349d27f1d3ea6a0a6261253269fc1cf68
vfio/igd: Detect IGD device by OpRegion

There is currently no straightforward way to distinguish if a Intel
graphics device is IGD or discrete GPU. However, only IGD devices have
OpRegion. Use the presence of VFIO_REGION_SUBTYPE_INTEL_IGD_OPREGION
to identify IGD devices. Still, OpRegion on hotplugged IGD device is
not supported.

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-4-tomitamoeko@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/igd.c