]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/igd: Enable OpRegion by default
authorTomita Moeko <tomitamoeko@gmail.com>
Mon, 5 May 2025 17:03:02 +0000 (01:03 +0800)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:27 +0000 (12:42 +0200)
commit16cbb43302a228f804c067992f6f61787934f3e9
treeb9aa1eb4d20fa923e6dcbd0c9209da34a14d1ce6
parent106cdbcef4ef1c99c2c66b68f8c3349363fac97b
vfio/igd: Enable OpRegion by default

As the presence of OpRegion is used to detect IGD device now, and
guest driver usually depends on OpRegion to work. Enable OpRegion
on IGD devices by default for out-of-the-box passthrough experience
(except pre-boot display output), especially for libvirt users.

Example of IGD passthrough with libvirt:
<hostdev mode="subsystem" type="pci" managed="yes">
  <source>
    <address domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
  </source>
  <rom file="/path/to/igd/rom"/>
  <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
 </hostdev>

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