qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] VFIO device init cleanup
@ 2023-11-16  7:59 Zhenzhong Duan
  2023-11-16  7:59 ` [PATCH v2 1/5] vfio/pci: Move VFIODevice initializations in vfio_instance_init Zhenzhong Duan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Zhenzhong Duan @ 2023-11-16  7:59 UTC (permalink / raw)
  To: qemu-devel
  Cc: alex.williamson, clg, jgg, nicolinc, joao.m.martins, eric.auger,
	peterx, jasowang, kevin.tian, yi.l.liu, yi.y.sun, chao.p.peng,
	Zhenzhong Duan

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-16  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-16  7:59 [PATCH v2 0/5] VFIO device init cleanup Zhenzhong Duan
2023-11-16  7:59 ` [PATCH v2 1/5] vfio/pci: Move VFIODevice initializations in vfio_instance_init Zhenzhong Duan
2023-11-16  7:59 ` [PATCH v2 2/5] vfio/platform: Move VFIODevice initializations in vfio_platform_instance_init Zhenzhong Duan
2023-11-16  7:59 ` [PATCH v2 3/5] vfio/ap: Move VFIODevice initializations in vfio_ap_instance_init Zhenzhong Duan
2023-11-16  7:59 ` [PATCH v2 4/5] vfio/ccw: Move VFIODevice initializations in vfio_ccw_instance_init Zhenzhong Duan
2023-11-16  7:59 ` [PATCH v2 5/5] vfio: Introduce a helper function to initialize VFIODevice Zhenzhong Duan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).