]> Git Repo - qemu.git/commit - dump/dump.c
dump: do not dump non-existent guest memory
authorCornelia Huck <[email protected]>
Wed, 13 Sep 2017 14:20:35 +0000 (16:20 +0200)
committerDr. David Alan Gilbert <[email protected]>
Thu, 14 Sep 2017 14:52:10 +0000 (15:52 +0100)
commitd1e6994abcd12c7f54aa73ff848fb6215c783898
tree1cc2ee843f45f28b4847c8dbf85c1369484d85fb
parent6dba634097d54db60017f10c160a052e46bdf60d
dump: do not dump non-existent guest memory

It does not really make sense to dump memory that is not there.

Moreover, that fixes a segmentation fault when calling dump-guest-memory
with no filter for a machine with no memory defined.

New behaviour is:

(qemu) dump-guest-memory /dev/null
dump: no guest memory to dump
(qemu) dump-guest-memory /dev/null 0 4096
dump: no guest memory to dump

Signed-off-by: Cornelia Huck <[email protected]>
Tested-by: Laurent Vivier <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Message-Id: <20170913142036[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
dump.c
This page took 0.025443 seconds and 4 git commands to generate.