Re: [RFC v2 11/11] vfio: Move vfio group specific code into group.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2022/11/24 22:36, Jason Gunthorpe wrote:
On Thu, Nov 24, 2022 at 04:27:02AM -0800, Yi Liu wrote:
This prepares for compiling out vfio group after vfio device cdev is
added. No vfio_group decode code should be in vfio_main.c.

No functional change is intended.

Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx>
---
  drivers/vfio/Makefile    |   1 +
  drivers/vfio/group.c     | 842 +++++++++++++++++++++++++++++++++++++++
  drivers/vfio/vfio.h      |  17 +
  drivers/vfio/vfio_main.c | 830 +-------------------------------------
  4 files changed, 863 insertions(+), 827 deletions(-)
  create mode 100644 drivers/vfio/group.c

vfio_device_open_file() should be moved into group.c as well and
export vfio_device_open/close() instead

also need export vfio_device_ops as well:-)

--
Regards,
Yi Liu



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux