summaryrefslogtreecommitdiff
path: root/include/uapi/linux/vfio_zdev.h
diff options
context:
space:
mode:
authorMatthew Rosato <mjrosato@linux.ibm.com>2022-06-06 23:33:23 +0300
committerChristian Borntraeger <borntraeger@linux.ibm.com>2022-07-11 10:54:37 +0300
commitba6090ff8ae01b41288be87ed9f6bed3d8cf5961 (patch)
treeb88f7940b9e36f7127b4ca91ce89bf5cedad349c /include/uapi/linux/vfio_zdev.h
parentfaf3bfcb895037ae2a8b89d1048090c9e1291cae (diff)
downloadlinux-ba6090ff8ae01b41288be87ed9f6bed3d8cf5961.tar.xz
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>
Diffstat (limited to 'include/uapi/linux/vfio_zdev.h')
-rw-r--r--include/uapi/linux/vfio_zdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/vfio_zdev.h b/include/uapi/linux/vfio_zdev.h
index 78c022af3d29..77f2aff1f27e 100644
--- a/include/uapi/linux/vfio_zdev.h
+++ b/include/uapi/linux/vfio_zdev.h
@@ -50,6 +50,10 @@ struct vfio_device_info_cap_zpci_group {
__u16 noi; /* Maximum number of MSIs */
__u16 maxstbl; /* Maximum Store Block Length */
__u8 version; /* Supported PCI Version */
+ /* End of version 1 */
+ __u8 reserved;
+ __u16 imaxstbl; /* Maximum Interpreted Store Block Length */
+ /* End of version 2 */
};
/**