]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/igd: Require host VGA decode for legacy mode
authorTomita Moeko <tomitamoeko@gmail.com>
Wed, 23 Jul 2025 16:09:05 +0000 (00:09 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 28 Jul 2025 15:52:34 +0000 (17:52 +0200)
commite0b33efe2acc3c6c651bb761394ef597e763e349
tree0ef26c26d27baabb2ace6de1fdfb82b744be636a
parent9751377c3a9445f597c5d0bf134a79c8cb58e45d
vfio/igd: Require host VGA decode for legacy mode

Commit a59d06305fff ("vfio/pci: Introduce x-pci-class-code option")
allows user to expose non-VGA IGD device as VGA controller to the
guest. However, legacy mode requires host VGA range access. Check
that GGC.IVD == 0 before enabling legacy mode to ensure IGD is a real
VGA device claiming host VGA ranges.

Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250723160906.44941-2-tomitamoeko@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
docs/igd-assign.txt
hw/vfio/igd.c