qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] vfio: Move realize after attach_dev
@ 2025-04-23  7:28 Zhenzhong Duan
  2025-04-23  7:28 ` [PATCH v2 1/5] vfio/iommufd: Make a separate call to get IOMMU capabilities Zhenzhong Duan
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Zhenzhong Duan @ 2025-04-23  7:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: alex.williamson, clg, eric.auger, nicolinc, joao.m.martins,
	yi.l.liu, chao.p.peng, Zhenzhong Duan

Hi,

This series addresses Cédric's suggestion[1] and Donald's suggestion[2] to
move realize() call after attach_device().

This way avoid the need to introduce realize_late() to further complex the
interface in nesting series.

[1] https://lists.gnu.org/archive/html/qemu-devel/2025-04/msg01211.html
[2] https://lists.gnu.org/archive/html/qemu-devel/2025-04/msg00898.html

Test:
net card passthrough and ping test
hotplug/unplug

Based on vfio-next(856f36c005).

Thanks
Zhenzhong

Changelog:
v2:
- drop the idea to save host iommu capabilities in VFIODevice.caps
- introduce a new function to create and realize hiod
- remove hiod_typename property

Zhenzhong Duan (5):
  vfio/iommufd: Make a separate call to get IOMMU capabilities
  vfio/iommufd: Move realize() after attachment
  vfio/container: Move realize() after attachment
  vfio: Cleanup host IOMMU device creation
  vfio: Remove hiod_typename property

 include/hw/vfio/vfio-container-base.h |  3 ---
 include/hw/vfio/vfio-device.h         |  3 ++-
 hw/vfio/container.c                   | 25 ++++++++++++--------
 hw/vfio/device.c                      | 33 ++++++++++++---------------
 hw/vfio/iommufd.c                     | 31 +++++++++++++------------
 5 files changed, 47 insertions(+), 48 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-04-23 13:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23  7:28 [PATCH v2 0/5] vfio: Move realize after attach_dev Zhenzhong Duan
2025-04-23  7:28 ` [PATCH v2 1/5] vfio/iommufd: Make a separate call to get IOMMU capabilities Zhenzhong Duan
2025-04-23  8:31   ` Joao Martins
2025-04-23  7:28 ` [PATCH v2 2/5] vfio/iommufd: Move realize() after attachment Zhenzhong Duan
2025-04-23  9:39   ` Joao Martins
2025-04-23  7:28 ` [PATCH v2 3/5] vfio/container: " Zhenzhong Duan
2025-04-23  7:28 ` [PATCH v2 4/5] vfio: Cleanup host IOMMU device creation Zhenzhong Duan
2025-04-23  7:28 ` [PATCH v2 5/5] vfio: Remove hiod_typename property Zhenzhong Duan
2025-04-23 13:21 ` [PATCH v2 0/5] vfio: Move realize after attach_dev Cédric Le Goater
2025-04-23 13:35   ` Cédric Le Goater

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