vfio/common: Move legacy VFIO backend code into separate container.c
authorYi Liu <yi.l.liu@intel.com>
Mon, 9 Oct 2023 09:09:17 +0000 (11:09 +0200)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (10:10 +0200)
commit7e63b3113889b531cbb56b09d69cc182608bb78e
tree46586abddd5de456a9869374a50615d7411fdce8
parent3d779abafe9fff4fdbbc6c8dd2a6f6f901d98870
vfio/common: Move legacy VFIO backend code into separate container.c

Move all the code really dependent on the legacy VFIO container/group
into a separate file: container.c. What does remain in common.c is
the code related to VFIOAddressSpace, MemoryListeners, migration and
all other general operations.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.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/common.c
hw/vfio/container.c [new file with mode: 0644]
hw/vfio/meson.build
include/hw/vfio/vfio-common.h