From abfd9ce341ec66eb2e63756b9da43f77c054788e Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Fri, 20 Jun 2014 18:56:08 +0530 Subject: migration: dump vmstate info as a json file for static analysis This commit adds a new command, '-dump-vmstate', that takes a filename as an argument. When executed, QEMU will dump the vmstate information for the machine type it's invoked with to the file, and quit. The JSON-format output can then be used to compare the vmstate info for different QEMU versions, specifically to test whether live migration would break due to changes in the vmstate data. A Python script that compares the output of such JSON dumps is included in the following commit. Signed-off-by: Amit Shah Reviewed-by: Juan Quintela Signed-off-by: Juan Quintela --- include/migration/vmstate.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/migration/vmstate.h') diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 799d2d0f03..71a8a95641 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -788,4 +788,6 @@ int64_t self_announce_delay(int round) return 50 + (SELF_ANNOUNCE_ROUNDS - round - 1) * 100; } +void dump_vmstate_json_to_file(FILE *out_fp); + #endif -- cgit v1.2.3