vfio/container: Move spapr specific init/deinit into spapr.c
commit770c3b6e431e5160b81f889ccb76c07dcfeb5da5
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 2 Nov 2023 07:12:24 +0000 (2 15:12 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 6 Nov 2023 12:23:23 +0000 (6 13:23 +0100)
tree8ec0e28863dfc541c130d587e0ab52ff4a36e6bc
parent521c8f4ebc5923576436228211f8947f306b9d82
vfio/container: Move spapr specific init/deinit into spapr.c

Move spapr specific init/deinit code into spapr.c and wrap
them with vfio_spapr_container_init/deinit, this way footprint
of spapr is further reduced, vfio_prereg_listener could also
be made static.

vfio_listener_release is unnecessary when prereg_listener is
moved out, so have it removed.

No functional changes intended.

Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c
hw/vfio/spapr.c
include/hw/vfio/vfio-common.h