Skip to content

More migration file cleanup

Dr. David Alan Gilbert (git) qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 9 repliesIn review
  2. v24 patches 2 repliesApplied
  3. v13 patches 18 repliesSuperseded

Changes in v3 from the cover letter

xbzrle and vmstate tests now only run if configured for softmmu, since migration directory is only built if configured for softmmu. Pull the MAINTAINERS update into this set, and remove the vmstate line.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Start migrating migration code into a migration directoryMakefile.objs migration/Makefile.objs migration/block-migration.c +12 more+18 -121 reply
2/5Remove migration- pre/post fixes off files in migration/ dirmigration/Makefile.objs migration/block.c migration/exec.c +4 more+4 -41 reply
3/5Split struct QEMUFile outmigration/qemu-file-internal.h migration/qemu-file.c+54 -221 reply
4/5Split the QEMU buffered file code outmigration/Makefile.objs migration/qemu-file-buf.c migration/qemu-file.c +1 more+489 -4575 replies
5/5MAINTAINERS: Update for migrated migration codeMAINTAINERS+1 -21 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchDavid Gibson
1/5R-b
2/5R-b
3/5R-b
4/5
5/5R-b

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/5] More migration file cleanup

From: "Dr. David Alan Gilbert" <[email protected]>

This is a small set of patches that shuffle migration code around, but doesn't change the behaviour:

1) Move a lot of the migration source into a separate 'migration' directory Note this moves a lot of files around, git format-patch -M -B spots the renames
2) Now they're in a migration directory, rename them to remove the migration-
3) Split the 'struct QEMUFile' out into a private header
Because the QEMU Buffered file code wants to access fields, and it's about to be in a separate file from QEMUFile.
4) Split the QEMU buffered file code out in the same way as the stdio and unix/socket code has been split out.
5) Update the MAINTAINERS file to fixup locations.

Dave

v3:
xbzrle and vmstate tests now only run if configured for softmmu, since migration directory is only built if configured for softmmu. Pull the MAINTAINERS update into this set, and remove the vmstate line.

v2:
Also move block-migration.c
Shorten file names now they're all in the migration/ directory

Signature · 47 lines
2.1.0


Dr. David Alan Gilbert (5):
  Start migrating migration code into a migration directory
  Remove migration- pre/post fixes off files in migration/ dir
  Split struct QEMUFile out
  Split the QEMU buffered file code out
  MAINTAINERS: Update for migrated migration code

 MAINTAINERS                                      |   3 +-
 Makefile.objs                                    |  10 +-
 migration/Makefile.objs                          |  10 +
 block-migration.c => migration/block.c           |   0
 migration-exec.c => migration/exec.c             |   0
 migration-fd.c => migration/fd.c                 |   0
 migration.c => migration/migration.c             |   0
 qemu-file.c => migration/qemu-file-buf.c         | 511 +---------------------
 migration/qemu-file-internal.h                   |  53 +++
 qemu-file-stdio.c => migration/qemu-file-stdio.c |   0
 qemu-file-unix.c => migration/qemu-file-unix.c   |   0
 migration/qemu-file.c                            | 519 +++++++++++++++++++++++
 migration-rdma.c => migration/rdma.c             |   0
 migration-tcp.c => migration/tcp.c               |   0
 migration-unix.c => migration/unix.c             |   0
 vmstate.c => migration/vmstate.c                 |   0
 xbzrle.c => migration/xbzrle.c                   |   0
 tests/Makefile                                   |  11 +-
 18 files changed, 593 insertions(+), 524 deletions(-)
 create mode 100644 migration/Makefile.objs
 rename block-migration.c => migration/block.c (100%)
 rename migration-exec.c => migration/exec.c (100%)
 rename migration-fd.c => migration/fd.c (100%)
 rename migration.c => migration/migration.c (100%)
 rename qemu-file.c => migration/qemu-file-buf.c (51%)
 create mode 100644 migration/qemu-file-internal.h
 rename qemu-file-stdio.c => migration/qemu-file-stdio.c (100%)
 rename qemu-file-unix.c => migration/qemu-file-unix.c (100%)
 create mode 100644 migration/qemu-file.c
 rename migration-rdma.c => migration/rdma.c (100%)
 rename migration-tcp.c => migration/tcp.c (100%)
 rename migration-unix.c => migration/unix.c (100%)
 rename vmstate.c => migration/vmstate.c (100%)
 rename xbzrle.c => migration/xbzrle.c (100%)

-- 
2.1.0