qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/16] VFIO: misc cleanups part2
@ 2024-05-15  8:20 Zhenzhong Duan
  2024-05-15  8:20 ` [PATCH 01/16] vfio/display: Fix error path in call site of ramfb_setup() Zhenzhong Duan
                   ` (16 more replies)
  0 siblings, 17 replies; 39+ messages in thread
From: Zhenzhong Duan @ 2024-05-15  8:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: alex.williamson, clg, eric.auger, chao.p.peng, Zhenzhong Duan

Hi

This is the last round of cleanup series to change functions in hw/vfio/
to return bool when the error is passed through errp parameter.

The first round is at https://lists.gnu.org/archive/html/qemu-devel/2024-05/msg01147.html

I see Cédric is also working on some migration stuff cleanup,
so didn't touch migration.c, but all other files in hw/vfio/ are cleanup now.

Patch1 is a fix patch, all others are cleanup patches.

Test done on x86 platform:
vfio device hotplug/unplug with different backend
reboot

This series is rebased to https://github.com/legoater/qemu/tree/vfio-next

Thanks
Zhenzhong

Zhenzhong Duan (16):
  vfio/display: Fix error path in call site of ramfb_setup()
  vfio/display: Make vfio_display_*() return bool
  vfio/helpers: Use g_autofree in hw/vfio/helpers.c
  vfio/helpers: Make vfio_set_irq_signaling() return bool
  vfio/helpers: Make vfio_device_get_name() return bool
  vfio/platform: Make vfio_populate_device() and vfio_base_device_init()
    return bool
  vfio/ccw: Make vfio_ccw_get_region() return a bool
  vfio/pci: Make vfio_intx_enable_kvm() return a bool
  vfio/pci: Make vfio_pci_relocate_msix() and vfio_msix_early_setup()
    return a bool
  vfio/pci: Make vfio_populate_device() return a bool
  vfio/pci: Make vfio_intx_enable() return bool
  vfio/pci: Make vfio_populate_vga() return bool
  vfio/pci: Make capability related functions return bool
  vfio/pci: Use g_autofree for vfio_region_info pointer
  vfio/pci-quirks: Make vfio_pci_igd_opregion_init() return bool
  vfio/pci-quirks: Make vfio_add_*_cap() return bool

 hw/vfio/pci.h                 |  12 +-
 include/hw/vfio/vfio-common.h |   6 +-
 hw/vfio/ap.c                  |  10 +-
 hw/vfio/ccw.c                 |  25 ++--
 hw/vfio/display.c             |  22 ++--
 hw/vfio/helpers.c             |  33 ++---
 hw/vfio/igd.c                 |   5 +-
 hw/vfio/pci-quirks.c          |  50 ++++----
 hw/vfio/pci.c                 | 227 ++++++++++++++++------------------
 hw/vfio/platform.c            |  61 ++++-----
 10 files changed, 213 insertions(+), 238 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-05-27  3:19 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-15  8:20 [PATCH 00/16] VFIO: misc cleanups part2 Zhenzhong Duan
2024-05-15  8:20 ` [PATCH 01/16] vfio/display: Fix error path in call site of ramfb_setup() Zhenzhong Duan
2024-05-21 12:09   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 02/16] vfio/display: Make vfio_display_*() return bool Zhenzhong Duan
2024-05-21 12:14   ` Cédric Le Goater
2024-05-22  4:45     ` Duan, Zhenzhong
2024-05-15  8:20 ` [PATCH 03/16] vfio/helpers: Use g_autofree in hw/vfio/helpers.c Zhenzhong Duan
2024-05-21 12:19   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 04/16] vfio/helpers: Make vfio_set_irq_signaling() return bool Zhenzhong Duan
2024-05-21 12:24   ` Cédric Le Goater
2024-05-24 13:16   ` Anthony Krowiak
2024-05-27  3:18     ` Duan, Zhenzhong
2024-05-15  8:20 ` [PATCH 05/16] vfio/helpers: Make vfio_device_get_name() " Zhenzhong Duan
2024-05-21 12:25   ` Cédric Le Goater
2024-05-24 13:16   ` Anthony Krowiak
2024-05-15  8:20 ` [PATCH 06/16] vfio/platform: Make vfio_populate_device() and vfio_base_device_init() " Zhenzhong Duan
2024-05-21 12:27   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 07/16] vfio/ccw: Make vfio_ccw_get_region() return a bool Zhenzhong Duan
2024-05-21 12:34   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 08/16] vfio/pci: Make vfio_intx_enable_kvm() " Zhenzhong Duan
2024-05-21 12:36   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 09/16] vfio/pci: Make vfio_pci_relocate_msix() and vfio_msix_early_setup() " Zhenzhong Duan
2024-05-21 12:38   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 10/16] vfio/pci: Make vfio_populate_device() " Zhenzhong Duan
2024-05-21 12:39   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 11/16] vfio/pci: Make vfio_intx_enable() return bool Zhenzhong Duan
2024-05-21 12:42   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 12/16] vfio/pci: Make vfio_populate_vga() " Zhenzhong Duan
2024-05-21 12:44   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 13/16] vfio/pci: Make capability related functions " Zhenzhong Duan
2024-05-21 12:54   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 14/16] vfio/pci: Use g_autofree for vfio_region_info pointer Zhenzhong Duan
2024-05-21 12:48   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 15/16] vfio/pci-quirks: Make vfio_pci_igd_opregion_init() return bool Zhenzhong Duan
2024-05-21 12:48   ` Cédric Le Goater
2024-05-15  8:20 ` [PATCH 16/16] vfio/pci-quirks: Make vfio_add_*_cap() " Zhenzhong Duan
2024-05-21 12:54   ` Cédric Le Goater
2024-05-16 16:48 ` [PATCH 00/16] VFIO: misc cleanups part2 Cédric Le Goater
2024-05-17  9:25   ` 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).