aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorMatthew Rosato <[email protected]>2022-06-06 16:33:22 -0400
committerChristian Borntraeger <[email protected]>2022-07-11 09:54:36 +0200
commitfaf3bfcb895037ae2a8b89d1048090c9e1291cae (patch)
tree792404561cef2fdc8c4ba9c8f1475c4fbd08ddd3 /include/uapi/linux
parent8061d1c31f1a018281bc9877ecce44bfc779e21d (diff)
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 <[email protected]> Reviewed-by: Pierre Morel <[email protected]> Signed-off-by: Matthew Rosato <[email protected]> Acked-by: Alex Williamson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'include/uapi/linux')
-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 */
};
/**