* Marc-André Lureau (marcandre.lur...@gmail.com) wrote: > On Tue, Jun 27, 2017 at 9:46 PM Eric Blake <ebl...@redhat.com> wrote: > > > On 06/11/2017 02:48 AM, Stefan Fritsch wrote: > > > 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 <s...@sfritsch.de> > > > Acked-by: Dr. David Alan Gilbert <dgilb...@redhat.com> > > > > Looks good to me, > Reviewed-by: Marc-André Lureau <marcandre.lur...@redhat.com> > > > > --- > > > v2: added tests and Acked-by line > > > > > > > > +++ b/hmp-commands.hx > > > @@ -1745,6 +1745,22 @@ Removes the chardev @var{id}. > > > ETEXI > > > > > > { > > > + .name = "chardev-send-break", > > > + .args_type = "id:s", > > > + .params = "id", > > > + .help = "send break on chardev", > > > > Compare this wording,... > > > > > +STEXI > > > +@item chardev-send-break id > > > +@findex chardev-send-break > > > +Sends break on the chardev @var{id}. > > > > repeated here, > > > > > +++ b/qapi-schema.json > > > @@ -5114,6 +5114,26 @@ > > > { 'command': 'chardev-remove', 'data': {'id': 'str'} } > > > > > > ## > > > +# @chardev-send-break: > > > +# > > > +# Send a break to a character device > > > > ...with this wording. I like 'send a break' better than 'send break', > > but even better might be 'send a break sequence' or even 'emulate a > > break sequence' (by definition, a break is NOT a character, but on bare > > metal character devices it IS a defined electrical sequence distinct > > from characters to make the recipient aware that the sender is trying to > > get attention). > > > > Otherwise, the patch looks fine to me. If all that changes is some > > word-smithing (and the maintainer may be willing to do that), you can add: > > Reviewed-by: Eric Blake <ebl...@redhat.com> > > > > Paolo would you take it (perhaps on the next iteration)?
I can take it through HMP; I'm just doing a pull now. Dave > thanks > -- > Marc-André Lureau -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK