vfio/pci: rename and export do_io_rw()
authorAnkit Agrawal <ankita@nvidia.com>
Tue, 20 Feb 2024 11:50:53 +0000 (17:20 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Feb 2024 19:20:20 +0000 (12:20 -0700)
commit4de676d494cd8fb2b4c65e58c19ebbdb36673957
tree2fd965f4b13d5de81aed87a62fd9fa14a6fd49f2
parent77943f4d2de0c5fa284013b97967e6c271c04310
vfio/pci: rename and export do_io_rw()

do_io_rw() is used to read/write to the device MMIO. The grace hopper
VFIO PCI variant driver require this functionality to read/write to
its memory.

Rename this as vfio_pci_core functions and export as GPL.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Ankit Agrawal <ankita@nvidia.com>
Link: https://lore.kernel.org/r/20240220115055.23546-2-ankita@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_rdwr.c
include/linux/vfio_pci_core.h