]> git.proxmox.com Git - mirror_qemu.git/commit
dump: Add command interface for kdump-raw formats
authorStephen Brennan <stephen.s.brennan@oracle.com>
Mon, 18 Sep 2023 23:32:33 +0000 (16:32 -0700)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 2 Nov 2023 14:40:37 +0000 (18:40 +0400)
commite6549197f7edf2c590894f51aaed2fa81991becc
treecf7941957e3da37668417166a16b1fbb3228b85c
parentd43a01db285fd10f9c429476eb9c63fa5e00f3cc
dump: Add command interface for kdump-raw formats

The QMP dump API represents the dump format as an enumeration. Add three
new enumerators, one for each supported kdump compression, each named
"kdump-raw-*".

For the HMP command line, rather than adding a new flag corresponding to
each format, it seems more human-friendly to add a single flag "-R" to
switch the kdump formats to "raw" mode. The choice of "-R" also
correlates nicely to the "makedumpfile -R" option, which would serve to
reassemble a flattened vmcore.

Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
[ Marc-André: replace loff_t with off_t, indent fixes ]
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230918233233.1431858-4-stephen.s.brennan@oracle.com>
dump/dump-hmp-cmds.c
dump/dump.c
hmp-commands.hx
qapi/dump.json