Skip to content

vfio/pci: Split pci.c

Cédric Le Goater qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9vfio/pci: Extract interrupt handling into pci-irq.chw/vfio/meson.build hw/vfio/pci-irq.c hw/vfio/pci.c +1 more+1757 -17120 replies
2/9vfio/pci: Move vfio_mmap_set_enabled() to region.chw/vfio/pci-irq.c hw/vfio/pci.h hw/vfio/region.c +1 more+17 -150 replies
3/9vfio/pci: Rename IRQ functionshw/vfio-user/pci.c hw/vfio/cpr.c hw/vfio/pci-irq.c +2 more+74 -760 replies
4/9vfio/pci: Replace deprecated g_memdup() with g_memdup2()hw/vfio/pci.c+1 -10 replies
5/9vfio/pci: Extract PCI capability setup into pci-caps.chw/vfio/meson.build hw/vfio/pci-caps.c hw/vfio/pci.c +1 more+736 -7080 replies
6/9vfio/pci: Rename capability functionshw/vfio/pci-caps.c hw/vfio/pci.c hw/vfio/pci.h+27 -270 replies
7/9vfio/pci: Rename vfio_sub_page_bar_update_mappings() functionhw/vfio/cpr.c hw/vfio/pci.c hw/vfio/pci.h+3 -30 replies
8/9vfio/pci: Extract ROM handling into pci-rom.chw/vfio/meson.build hw/vfio/pci-rom.c hw/vfio/pci.c +1 more+241 -2180 replies
9/9vfio/pci: Rename vfio_opt_rom_in_denylist() to vfio_quirk_rom_in_denylist()hw/vfio/pci-quirks.c hw/vfio/pci-rom.c hw/vfio/pci.h+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH for-12.0 0/9] vfio/pci: Split pci.c

Hello,

hw/vfio/pci.c has grown into a large monolithic file. This series extract interrupt handling, PCI capability setup and ROM management into dedicated files and normalizes function names for consistency. Other aspects, config space, BAR setup, VGA, could be addressed later.

A g_memdup deprecation fix is included as a standalone cleanup.

No functional changes.

Thanks,

C.

Cédric Le Goater (9):
vfio/pci: Extract interrupt handling into pci-irq.c vfio/pci: Move vfio_mmap_set_enabled() to region.c vfio/pci: Rename IRQ functions
vfio/pci: Replace deprecated g_memdup() with g_memdup2() vfio/pci: Extract PCI capability setup into pci-caps.c vfio/pci: Rename capability functions
vfio/pci: Rename vfio_sub_page_bar_update_mappings() function vfio/pci: Extract ROM handling into pci-rom.c vfio/pci: Rename vfio_opt_rom_in_denylist() to
vfio_quirk_rom_in_denylist()

 hw/vfio/pci.h         |   46 +-
 hw/vfio/vfio-region.h |    4 +-
 hw/vfio-user/pci.c    |    4 +-
 hw/vfio/cpr.c         |    4 +-
 hw/vfio/pci-caps.c    |  730 ++++++++++
 hw/vfio/pci-irq.c     | 1630 +++++++++++++++++++++
 hw/vfio/pci-quirks.c  |    2 +-
 hw/vfio/pci-rom.c     |  239 ++++
 hw/vfio/pci.c         | 3128 ++++-------------------------------------
 hw/vfio/region.c      |   12 +-
 hw/vfio/meson.build   |    3 +
 11 files changed, 2949 insertions(+), 2853 deletions(-)
 create mode 100644 hw/vfio/pci-caps.c
 create mode 100644 hw/vfio/pci-irq.c
 create mode 100644 hw/vfio/pci-rom.c
Signature · 1 line
2.56.0