]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-pci/zdev: different maxstbl for interpreted devices
authorMatthew Rosato <mjrosato@linux.ibm.com>
Mon, 6 Jun 2022 20:33:23 +0000 (16:33 -0400)
committerChristian Borntraeger <borntraeger@linux.ibm.com>
Mon, 11 Jul 2022 07:54:37 +0000 (09:54 +0200)
commite4e668b3799504b1e01c3062695d62479144fe7b
treeb88f7940b9e36f7127b4ca91ce89bf5cedad349c
parent143ea8d375849f6e4992f8bec463e7eded9f7e44
vfio-pci/zdev: different maxstbl for interpreted devices

When doing load/store interpretation, the maximum store block length is
determined by the underlying firmware, not the host kernel API.  Reflect
that in the associated Query PCI Function Group clp capability and let
userspace decide which is appropriate to present to the guest.

Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lore.kernel.org/r/20220606203325.110625-20-mjrosato@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
drivers/vfio/pci/vfio_pci_zdev.c
include/uapi/linux/vfio_zdev.h