vfio: Introduce a helper function to initialize VFIODevice
commit6106a329141af7d47bdc3346ce9820d4714e0e5d
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Tue, 21 Nov 2023 08:44:25 +0000 (21 16:44 +0800)
committerCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 18:03:38 +0000 (19 19:03 +0100)
tree3de9916a47b3940bab139bdc3802ffafbae8073e
parentc12b55ad6f9d3b4792b590e9211bd7319e4a2d70
vfio: Introduce a helper function to initialize VFIODevice

Introduce a helper function to replace the common code to initialize
VFIODevice in pci, platform, ap and ccw VFIO device.

No functional change intended.

Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/ap.c
hw/vfio/ccw.c
hw/vfio/helpers.c
hw/vfio/pci.c
hw/vfio/platform.c
include/hw/vfio/vfio-common.h