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:22 +0300
committerChristian Borntraeger <borntraeger@linux.ibm.com>2022-07-11 10:54:36 +0300
commitfaf3bfcb895037ae2a8b89d1048090c9e1291cae (patch)
tree792404561cef2fdc8c4ba9c8f1475c4fbd08ddd3 /include/uapi/linux/vfio_zdev.h
parent8061d1c31f1a018281bc9877ecce44bfc779e21d (diff)
downloadlinux-faf3bfcb895037ae2a8b89d1048090c9e1291cae.tar.xz
vfio-pci/zdev: add function handle to clp base capability
The function handle is a system-wide unique identifier for a zPCI device. With zPCI instruction interpretation, the host will no longer be executing the zPCI instructions on behalf of the guest. As a result, the guest needs to use the real function handle in order for firmware to associate the instruction with the proper PCI function. Let's provide that handle to the guest. Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com> 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-19-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/vfio_zdev.h b/include/uapi/linux/vfio_zdev.h
index b4309397b6b2..78c022af3d29 100644
--- a/include/uapi/linux/vfio_zdev.h
+++ b/include/uapi/linux/vfio_zdev.h
@@ -29,6 +29,9 @@ struct vfio_device_info_cap_zpci_base {
__u16 fmb_length; /* Measurement Block Length (in bytes) */
__u8 pft; /* PCI Function Type */
__u8 gid; /* PCI function group ID */
+ /* End of version 1 */
+ __u32 fh; /* PCI function handle */
+ /* End of version 2 */
};
/**