vfio/common: Introduce vfio_container_init/destroy helper
commited2f7f80170251e7cdd2965a13ee97527d1fbec8
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 2 Nov 2023 07:12:30 +0000 (2 15:12 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 18:03:38 +0000 (19 19:03 +0100)
treebcdb5322bc52268f2ad5cd6297f7b2a6b7174efd
parentb08501a999e2448f500a46d68da503be55186b04
vfio/common: Introduce vfio_container_init/destroy helper

This adds two helper functions vfio_container_init/destroy which will be
used by both legacy and iommufd containers to do base container specific
initialization and release.

No functional change 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-base.c
hw/vfio/container.c
include/hw/vfio/vfio-container-base.h