aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/vfio_pci_core.h
diff options
context:
space:
mode:
authorBen Segal <bpsegal@us.ibm.com>2024-06-19 13:58:46 +0200
committerAlex Williamson <alex.williamson@redhat.com>2024-06-21 12:47:01 -0600
commit4df13a6871d9e97aeeef72244e9a954c5cf11f54 (patch)
treeeedeb1d7c8cbf7b3bd1df8acac7afed11c0be661 /include/linux/vfio_pci_core.h
parentvfio/pci: Extract duplicated code into macro (diff)
downloadwireguard-linux-4df13a6871d9e97aeeef72244e9a954c5cf11f54.tar.xz
wireguard-linux-4df13a6871d9e97aeeef72244e9a954c5cf11f54.zip
vfio/pci: Support 8-byte PCI loads and stores
Many PCI adapters can benefit or even require full 64bit read and write access to their registers. In order to enable work on user-space drivers for these devices add two new variations vfio_pci_core_io{read|write}64 of the existing access methods when the architecture supports 64-bit ioreads and iowrites. Signed-off-by: Ben Segal <bpsegal@us.ibm.com> Co-developed-by: Gerd Bayer <gbayer@linux.ibm.com> Signed-off-by: Gerd Bayer <gbayer@linux.ibm.com> Link: https://lore.kernel.org/r/20240619115847.1344875-3-gbayer@linux.ibm.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/vfio_pci_core.h')
-rw-r--r--include/linux/vfio_pci_core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/vfio_pci_core.h b/include/linux/vfio_pci_core.h
index f87067438ed4..7b45f70f84c3 100644
--- a/include/linux/vfio_pci_core.h
+++ b/include/linux/vfio_pci_core.h
@@ -155,5 +155,8 @@ int vfio_pci_core_ioread##size(struct vfio_pci_core_device *vdev, \
VFIO_IOREAD_DECLATION(8)
VFIO_IOREAD_DECLATION(16)
VFIO_IOREAD_DECLATION(32)
+#ifdef ioread64
+VFIO_IOREAD_DECLATION(64)
+#endif
#endif /* VFIO_PCI_CORE_H */