diff options
| author | Gonglei | 2014-10-29 13:49:43 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2014-10-31 11:29:01 +0100 |
| commit | 522abf69995ca20680ab048cad003796be36ef77 (patch) | |
| tree | cbec0c989f80768a46ad3c88159dd593789cc682 /include | |
| parent | Add skip_dump flag to ignore memory region during dump (diff) | |
| download | qemu-522abf69995ca20680ab048cad003796be36ef77.tar.gz qemu-522abf69995ca20680ab048cad003796be36ef77.tar.xz qemu-522abf69995ca20680ab048cad003796be36ef77.zip | |
vl.c: Fix Coverity complaining for vmstate_dump_file
commit abfd9ce3(migration: dump vmstate info as a json
file for static analysis) introduce 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.
However, only one instance of the -dump-vmstate option is supported.
If more were given, the vmstate_dump_file variable would be overwritten.
This fix also helps silence a Coverity error.
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
