]> git.ipfire.org Git - thirdparty/qemu.git/commit
s390x/pci: only limit DMA aperture if vfio DMA limit reported
authorMatthew Rosato <mjrosato@linux.ibm.com>
Fri, 10 Nov 2023 17:51:08 +0000 (12:51 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 19 Nov 2023 18:15:06 +0000 (21:15 +0300)
commit25f55508fc53ed5b0ca90a0b1b158e7d6accb487
treeeda9a0fd51eb7d431cd1d00d1f7fde9fcc2033ac
parent150ebd076e4aff712a7e098ff59fc962dc218697
s390x/pci: only limit DMA aperture if vfio DMA limit reported

If the host kernel lacks vfio DMA limit reporting, do not attempt
to shrink the guest DMA aperture.

Fixes: df202e3ff3 ("s390x/pci: shrink DMA aperture to be bound by vfio DMA limit")
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Message-ID: <20231110175108.465851-3-mjrosato@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 8011b508cf0ddbdbda03820f4fa6cd484a6d9aed)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/s390x/s390-pci-vfio.c