Add chardev-send-break monitor command
authorStefan Fritsch <sf@sfritsch.de>
Sun, 11 Jun 2017 07:48:17 +0000 (09:48 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 29 Jun 2017 16:14:11 +0000 (17:14 +0100)
commitbd1d5ad9f9a1347d6f4338f294253617c565c89a
tree0c6c05f44eae0cca3dae76962669e524a3d5125f
parent18f0828278c62bf5b50ec24a012073cd79535481
Add chardev-send-break monitor command

Sending a break on a serial console can be useful for debugging the
guest. But not all chardev backends support sending breaks (only telnet
and mux do). The chardev-send-break command allows to send a break even
if using other backends.

Signed-off-by: Stefan Fritsch <sf@sfritsch.de>
Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20170611074817.13621-1-sf@sfritsch.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  Use 'send a break' in all 3 pieces of text as suggested by eblake
chardev/char.c
hmp-commands.hx
hmp.c
hmp.h
qapi-schema.json
tests/test-char.c
tests/test-hmp.c