qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] VFIO migration related refactor and bug fix
@ 2023-06-21  8:02 Zhenzhong Duan
  2023-06-21  8:02 ` [PATCH v3 1/3] vfio/pci: Fix resource leak in vfio_realize Zhenzhong Duan
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Zhenzhong Duan @ 2023-06-21  8:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: alex.williamson, clg, joao.m.martins, avihaih, chao.p.peng

PATCH3 refactors the VFIO migration blocker related code based on
suggestions from Joao and Cedric, so that code is simpler and
"Migration disabled" printed in right case.

But before that works, also found some hotplug bugs when testing
blocker adding failed case. PATCH1 and PATCH2 fix them.

See patch description for details.

Thanks

v3: Add PATCH1,2 to fix hotplug bug
    Fix bugs in PATCH3 Avihai and Joao pointed out

Tested vfio hotplug/unplug with vfio migration supported and unsupported cases,
including blocker adding failed case.

Zhenzhong Duan (3):
  vfio/pci: Fix resource leak in vfio_realize
  vfio/pci: Fix a segfault in vfio_realize
  vfio/migration: vfio/migration: Refactor and fix print of "Migration
    disabled"

 hw/vfio/common.c              | 54 +++++------------------------------
 hw/vfio/migration.c           | 37 +++++++++++-------------
 hw/vfio/pci.c                 |  9 ++++--
 include/hw/vfio/vfio-common.h |  7 ++---
 4 files changed, 33 insertions(+), 74 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2023-06-28  2:27 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21  8:02 [PATCH v3 0/3] VFIO migration related refactor and bug fix Zhenzhong Duan
2023-06-21  8:02 ` [PATCH v3 1/3] vfio/pci: Fix resource leak in vfio_realize Zhenzhong Duan
2023-06-21 11:08   ` Joao Martins
2023-06-25  6:00     ` Duan, Zhenzhong
2023-06-26  7:02       ` Duan, Zhenzhong
2023-06-26 10:07         ` Joao Martins
2023-06-27  2:38           ` Duan, Zhenzhong
2023-06-27 10:21             ` Joao Martins
2023-06-27 10:28               ` Duan, Zhenzhong
2023-06-21  8:02 ` [PATCH v3 2/3] vfio/pci: Fix a segfault " Zhenzhong Duan
2023-06-21 11:08   ` Joao Martins
2023-06-25  6:01     ` Duan, Zhenzhong
2023-06-26  9:58       ` Joao Martins
2023-06-21  8:02 ` [PATCH v3 3/3] vfio/migration: vfio/migration: Refactor and fix print of "Migration disabled" Zhenzhong Duan
2023-06-26  9:34   ` Avihai Horon
2023-06-26 10:18     ` Joao Martins
2023-06-27  2:55       ` Duan, Zhenzhong
2023-06-27 10:56         ` Joao Martins
2023-06-28  2:26           ` Duan, Zhenzhong
2023-06-27  2:46     ` Duan, Zhenzhong

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).