[PATCH v2 0/5] VFIO device init cleanup

Zhenzhong Duan posted 5 patches 1 year ago
Failed in applying to current master (apply log)
include/hw/vfio/vfio-common.h |  2 ++
hw/vfio/ap.c                  | 22 +++++++++-------------
hw/vfio/ccw.c                 | 26 +++++++++++---------------
hw/vfio/helpers.c             | 11 +++++++++++
hw/vfio/pci.c                 |  8 ++++----
hw/vfio/platform.c            |  8 +++-----
6 files changed, 40 insertions(+), 37 deletions(-)
[PATCH v2 0/5] VFIO device init cleanup
Posted by Zhenzhong Duan 1 year ago
Hi,

This is a cleanup based on Cédric's suggestion at
https://lists.gnu.org/archive/html/qemu-devel/2023-11/msg02722.html

VFIO device initializations are all moved from realize to instance_init.

Based on https://github.com/legoater/qemu/commits/vfio-8.2

Thanks
Zhenzhong

Changelog:
v2: Append a new patch to introduce vfio_device_init (Cédric)
    Add RB

Zhenzhong Duan (5):
  vfio/pci: Move VFIODevice initializations in vfio_instance_init
  vfio/platform: Move VFIODevice initializations in
    vfio_platform_instance_init
  vfio/ap: Move VFIODevice initializations in vfio_ap_instance_init
  vfio/ccw: Move VFIODevice initializations in vfio_ccw_instance_init
  vfio: Introduce a helper function to initialize VFIODevice

 include/hw/vfio/vfio-common.h |  2 ++
 hw/vfio/ap.c                  | 22 +++++++++-------------
 hw/vfio/ccw.c                 | 26 +++++++++++---------------
 hw/vfio/helpers.c             | 11 +++++++++++
 hw/vfio/pci.c                 |  8 ++++----
 hw/vfio/platform.c            |  8 +++-----
 6 files changed, 40 insertions(+), 37 deletions(-)

-- 
2.34.1