migration: dump vmstate info as a json file for static analysis
commitabfd9ce341ec66eb2e63756b9da43f77c054788e
authorAmit Shah <amit.shah@redhat.com>
Fri, 20 Jun 2014 13:26:08 +0000 (20 18:56 +0530)
committerJuan Quintela <quintela@redhat.com>
Mon, 23 Jun 2014 17:14:50 +0000 (23 19:14 +0200)
tree025a056ec9e74179c8b4ca4971b30cc06c261281
parente325b49a320b493cc5d69e263751ff716dc458fe
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 <amit.shah@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/vmstate.h
qemu-options.hx
savevm.c
vl.c