vfio: Split out container code from the init/cleanup functions
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 22 Sep 2022 19:20:23 +0000 (16:20 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Sep 2022 21:46:06 +0000 (15:46 -0600)
commitc41da4622e08f874ab02e12eb6b6aaa9ac21daa7
treea2257893ea9acaed073150767a913bc51d2bbd88
parent444d43ecd01033a758e73b8ae154ee7f3e827f7b
vfio: Split out container code from the init/cleanup functions

This miscdev, noiommu driver and a couple of globals are all container
items. Move this init into its own functions.

A following patch will move the vfio_container functions to their own .c
file.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/5-v3-297af71838d2+b9-vfio_container_split_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_main.c