Skip to content

Another cleanup of includes

Juan Quintela qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 15 repliesIn review
  2. v111 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- patch 1 got reviewed on the pull request
- drop one change from patch2 as lvivier comments
- fix include of snapshot.h

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10migration: Remove unneeded includes of migration/vmstate.hhw/core/qdev.c include/hw/acpi/memory_hotplug.h include/hw/acpi/pcihp.h +5 more+0 -82 replies
2/10migration: Split qemu-file.hhw/i2c/i2c-ddc.c hw/intc/s390_flic.c hw/intc/s390_flic_kvm.c +17 more+186 -1692 replies
3/10migration: Export exec.c functions in its own fileinclude/migration/migration.h migration/exec.c migration/exec.h +1 more+28 -41 reply
4/10migration: Export fd.c functions in its own fileinclude/migration/migration.h migration/fd.c migration/fd.h +1 more+25 -41 reply
5/10migration: Export socket.c functions in its own fileinclude/migration/migration.h migration/migration.c migration/socket.c +1 more+30 -81 reply
6/10migration: Export tls.c functions in its own fileinclude/migration/migration.h migration/channel.c migration/migration.c +2 more+36 -113 replies
7/10migration: Export rdma.c functions in its own fileinclude/migration/migration.h migration/migration.c migration/rdma.c +1 more+27 -43 replies
8/10migration: Create include for migration snapshotshmp.c include/block/block_int.h include/migration/snapshot.h +4 more+34 -121 reply
9/10migration: Export ram.c functions in its own fileinclude/migration/migration.h include/migration/misc.h migration/migration.c +6 more+98 -390 replies
10/10migration: Move include/migration/block.h into migration/include/migration/misc.h migration/block.c migration/block.h +3 more+12 -61 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéDr. David Alan Gilbert
1/10R-b R-b R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/10] Another cleanup of includes

Hi

Changes from v1:
- patch 1 got reviewed on the pull request
- drop one change from patch2 as lvivier comments
- fix include of snapshot.h

Please review.

Thanks, Juan.

{v1}
- make all migration methods export its functions in its own header
- move block.h into migration/
- create migration/savevm.h for functions exported in savevm.c
- create migration/ram.h for functions from ram.c
- split qemu-file.h into it an qemu-file-types.h
only the last one is used outside of migration/
- move migration.h to be private
- create include/migration/misc.h for misc exported functions that don't belong anywhere

Juan Quintela (10):
migration: Remove unneeded includes of migration/vmstate.h
migration: Split qemu-file.h
migration: Export exec.c functions in its own file
migration: Export fd.c functions in its own file
migration: Export socket.c functions in its own file
migration: Export tls.c functions in its own file
migration: Export rdma.c functions in its own file
migration: Create include for migration snapshots
migration: Export ram.c functions in its own file
migration: Move include/migration/block.h into migration/

 hmp.c                                        |   5 +-
 hw/core/qdev.c                               |   1 -
 hw/i2c/i2c-ddc.c                             |   1 +
 hw/intc/s390_flic.c                          |   1 -
 hw/intc/s390_flic_kvm.c                      |   1 -
 hw/s390x/s390-skeys.c                        |   1 -
 include/block/block_int.h                    |   4 +-
 include/hw/acpi/memory_hotplug.h             |   1 -
 include/hw/acpi/pcihp.h                      |   1 -
 include/hw/hw.h                              |   2 +-
 include/hw/pci/shpc.h                        |   1 -
 include/migration/migration.h                |  68 -----------
 include/migration/misc.h                     |  29 +++++
 include/migration/qemu-file-types.h          | 164 +++++++++++++++++++++++++++
 include/migration/snapshot.h                 |  21 ++++
 include/sysemu/sysemu.h                      |   3 -
 migration/block.c                            |   5 +-
 {include/migration => migration}/block.h     |   2 -
 migration/channel.c                          |   1 +
 migration/colo.c                             |   4 +-
 migration/exec.c                             |   1 +
 migration/exec.h                             |  26 +++++
 migration/fd.c                               |   1 +
 migration/fd.h                               |  23 ++++
 migration/migration.c                        |  10 +-
 migration/postcopy-ram.c                     |   3 +-
 migration/qemu-file-channel.c                |   3 +-
 migration/qemu-file.c                        |   2 +-
 {include/migration => migration}/qemu-file.h | 157 +------------------------
 migration/ram.c                              |   4 +-
 migration/ram.h                              |  70 ++++++++++++
 migration/rdma.c                             |   5 +-
 migration/rdma.h                             |  25 ++++
 migration/savevm.c                           |   7 +-
 migration/socket.c                           |   3 +-
 migration/socket.h                           |  28 +++++
 migration/tls.c                              |   1 +
 migration/tls.h                              |  34 ++++++
 migration/vmstate-types.c                    |   3 +-
 migration/vmstate.c                          |   2 +-
 replay/replay-snapshot.c                     |   5 +-
 target/alpha/cpu.c                           |   1 -
 target/hppa/cpu.c                            |   1 -
 target/s390x/cpu.c                           |   1 -
 target/tilegx/cpu.c                          |   1 -
 tests/test-vmstate.c                         |   3 +-
 vl.c                                         |   5 +-
 47 files changed, 476 insertions(+), 265 deletions(-)
 create mode 100644 include/migration/misc.h
 create mode 100644 include/migration/qemu-file-types.h
 create mode 100644 include/migration/snapshot.h
 rename {include/migration => migration}/block.h (93%)
 create mode 100644 migration/exec.h
 create mode 100644 migration/fd.h
 rename {include/migration => migration}/qemu-file.h (62%)
 create mode 100644 migration/ram.h
 create mode 100644 migration/rdma.h
 create mode 100644 migration/socket.h
 create mode 100644 migration/tls.h
Signature · 1 line
2.9.4