s390x/pci: bypass vfio DMA counting when using cdev
commit0ab35658401a2e0a411ce0d1836a4f509bde717a
authorMatthew Rosato <mjrosato@linux.ibm.com>
Fri, 10 Nov 2023 17:51:07 +0000 (10 12:51 -0500)
committerThomas Huth <thuth@redhat.com>
Mon, 13 Nov 2023 10:35:47 +0000 (13 11:35 +0100)
tree01fe216872fb452b00d4e4926712f381d7868480
parent34aee9c94691f529cd952f9483a6b357ca098042
s390x/pci: bypass vfio DMA counting when using cdev

The current code assumes that there is always a vfio group, but
that's no longer guaranteed with the iommufd backend when using
cdev.  In this case, we don't need to track the vfio dma limit
anyway.

Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Message-ID: <20231110175108.465851-2-mjrosato@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/s390-pci-vfio.c