]> git.proxmox.com Git - mirror_qemu.git/commit
hw/vfio/pci-quirks: Support alternate offset for GPUDirect Cliques
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 8 Jun 2023 18:05:07 +0000 (12:05 -0600)
committerCédric Le Goater <clg@redhat.com>
Fri, 30 Jun 2023 04:02:51 +0000 (06:02 +0200)
commitf6b30c1984f7db16aa971d7f300e2191e5b730b6
tree625fcae518374134d2f802e9d7c11f617f9e3005
parent634f38f0f73f12b86a53195782b26506c107a418
hw/vfio/pci-quirks: Support alternate offset for GPUDirect Cliques

NVIDIA Turing and newer GPUs implement the MSI-X capability at the offset
previously reserved for use by hypervisors to implement the GPUDirect
Cliques capability.  A revised specification provides an alternate
location.  Add a config space walk to the quirk to check for conflicts,
allowing us to fall back to the new location or generate an error at the
quirk setup rather than when the real conflicting capability is added
should there be no available location.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/pci-quirks.c