[PATCH 0/4] VFIO device init cleanup

Zhenzhong Duan posted 4 patches 1 year ago
Failed in applying to current master (apply log)
There is a newer version of this series
hw/vfio/ap.c       | 26 +++++++++++++-------------
hw/vfio/ccw.c      | 30 +++++++++++++++---------------
hw/vfio/pci.c      | 10 ++++++----
hw/vfio/platform.c | 10 +++++-----
4 files changed, 39 insertions(+), 37 deletions(-)
[PATCH 0/4] VFIO device init cleanup
Posted by Zhenzhong Duan 1 year ago
Hi,

This is a clean up based on Cedric'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

Zhenzhong Duan (4):
  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

 hw/vfio/ap.c       | 26 +++++++++++++-------------
 hw/vfio/ccw.c      | 30 +++++++++++++++---------------
 hw/vfio/pci.c      | 10 ++++++----
 hw/vfio/platform.c | 10 +++++-----
 4 files changed, 39 insertions(+), 37 deletions(-)

-- 
2.34.1
Re: [PATCH 0/4] VFIO device init cleanup
Posted by Philippe Mathieu-Daudé 1 year ago
On 15/11/23 09:32, Zhenzhong Duan wrote:

> Zhenzhong Duan (4):
>    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

Series:
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>