]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/igd: support legacy mode for all known generations
authorCorvin Köhne <corvin.koehne@gmail.com>
Wed, 28 Aug 2024 13:43:23 +0000 (15:43 +0200)
committerCédric Le Goater <clg@redhat.com>
Tue, 17 Sep 2024 08:37:55 +0000 (10:37 +0200)
commitabd9dda914eac1fdcf21ce9b3ddd79ebe0172db2
treed37605785697b18d7d159fd4254de18e7fd80076
parente433f208973ffee4ca9159ebc7c8f6ab520358fa
vfio/igd: support legacy mode for all known generations

We're soon going to add support for legacy mode to ElkhartLake and
TigerLake devices. Those are gen 11 and 12 devices. At the moment, all
devices identified by our igd_gen function do support legacy mode. This
won't change when adding our new devices of gen 11 and 12. Therefore, it
makes more sense to accept legacy mode for all known devices instead of
maintaining a long list of known good generations. If we add a new
generation to igd_gen which doesn't support legacy mode for some reason,
it'll be easy to advance the check to reject legacy mode for this
specific generation.

Signed-off-by: Corvin Köhne <c.koehne@beckhoff.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/igd.c