This series separates the QEMUFile and VMState code from savevm.c, and adds a few unit tests to the VMState code.
Eduardo Habkost (9): qemu-file: Make a few functions non-static migration: Move QEMU_VM_* defines to migration/migration.h savevm: Convert all tabs to spaces savevm.c: Coding style fixes savevm.c: Coding style fix vmstate: Move VMState code to vmstate.c qemu-file: Move QEMUFile code to qemu-file.c savevm: Small comment about why timer QEMUFile/VMState code is in savevm.c tests: Some unit tests for vmstate.c Makefile.objs | 2 + include/migration/migration.h | 11 + include/migration/qemu-file.h | 4 + qemu-file.c | 826 +++++++++++++++++++++ savevm.c | 1590 ++--------------------------------------- tests/.gitignore | 1 + tests/Makefile | 4 + tests/test-vmstate.c | 357 +++++++++ vmstate.c | 650 +++++++++++++++++ 9 files changed, 1921 insertions(+), 1524 deletions(-) create mode 100644 qemu-file.c create mode 100644 tests/test-vmstate.c create mode 100644 vmstate.c -- 1.8.3.1