diff options
| author | Thomas Huth <thuth@redhat.com> | 2018-03-05 17:37:48 +0100 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-12 09:03:15 +0100 |
| commit | f771c5440e04626f1cf9a6a7d1b1c6cd8168cacd (patch) | |
| tree | 7afbd5af20b8df5f06e9f5857f8d331c26cdde41 /hmp-commands.hx | |
| parent | b153f9019b5fcf7c085de688b123eb34f924f870 (diff) | |
| download | focaccia-qemu-f771c5440e04626f1cf9a6a7d1b1c6cd8168cacd.tar.gz focaccia-qemu-f771c5440e04626f1cf9a6a7d1b1c6cd8168cacd.zip | |
qapi: Add device ID and head parameters to screendump
QEMU's screendump command can only take dumps from the primary display. When using multiple VGA cards, there is no way to get a dump from a secondary card or other display heads yet. So let's add a 'device' and a 'head' parameter to the HMP and QMP commands to be able to specify alternative devices and heads with the screendump command, too. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1520267868-31778-1-git-send-email-thuth@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
| -rw-r--r-- | hmp-commands.hx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx index 964eb515cf..1723cbe1df 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -253,9 +253,10 @@ ETEXI { .name = "screendump", - .args_type = "filename:F", - .params = "filename", - .help = "save screen into PPM image 'filename'", + .args_type = "filename:F,device:s?,head:i?", + .params = "filename [device [head]]", + .help = "save screen from head 'head' of display device 'device' " + "into PPM image 'filename'", .cmd = hmp_screendump, }, |