From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> Hi, This patch-pair adds the QEMUSizedBuffer based in-memory QEMUFile written by Stefan Berger and Joel Schopp. I've made some minor fixes (and typo cleanups) and modified the existing test-vmstate to use it for some test cases.
While there's nothing other than test cases using it yet, I think it's worth going in by itself, since I'm using it in two separate patchsets (postcopy and visitor/BER) and Sanidhya uses it in the periodic vmstate test world. In addition both microcheckpointing and COLO have similar but independent implementations (although they both have some extra-gotcha's so it might not be possible to reuse it), and there was another implementation of the same thing in the Yabusame Postcopy world. Thus it seems best to put in, if only to stop people writing yet another implementation. Dr. David Alan Gilbert (2): QEMUSizedBuffer based QEMUFile Tests: QEMUSizedBuffer/QEMUBuffer include/migration/qemu-file.h | 28 +++ include/qemu/typedefs.h | 1 + qemu-file.c | 410 ++++++++++++++++++++++++++++++++++++++++++ tests/Makefile | 2 +- tests/test-vmstate.c | 73 ++++---- 5 files changed, 477 insertions(+), 37 deletions(-) -- 1.9.3