diff options
author | Tomita Moeko <tomitamoeko@gmail.com> | 2025-03-07 02:01:23 +0800 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2025-03-11 17:01:14 +0100 |
commit | ae9d9ec4a643aae8704b4252b402488bde7b4be4 (patch) | |
tree | c4544aae4915f849a66c843dac89d86c671f278f /tests/functional/qemu_test/linuxkernel.py | |
parent | 5faec6a5e2202d3460b6b0550ec4ad897be3c76f (diff) | |
download | qemu-ae9d9ec4a643aae8704b4252b402488bde7b4be4.zip qemu-ae9d9ec4a643aae8704b4252b402488bde7b4be4.tar.gz qemu-ae9d9ec4a643aae8704b4252b402488bde7b4be4.tar.bz2 |
vfio/igd: Consolidate OpRegion initialization into a single function
Both x-igd-opregion option and legacy mode require identical steps to
set up OpRegion for IGD devices. Consolidate these steps into a single
vfio_pci_igd_setup_opregion function.
The function call in pci.c is wrapped with ifdef temporarily to prevent
build error for non-x86 archs, it will be removed after we decouple it
from legacy mode.
Additionally, move vfio_pci_igd_opregion_init to igd.c to prevent it
from being compiled in non-x86 builds.
Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Corvin Köhne <c.koehne@beckhoff.com>
Link: https://lore.kernel.org/qemu-devel/20250306180131.32970-4-tomitamoeko@gmail.com
[ clg: Fixed spelling in vfio_pci_igd_setup_opregion() ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'tests/functional/qemu_test/linuxkernel.py')
0 files changed, 0 insertions, 0 deletions