qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 00/19] Fix and improve chardev open error messag


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 00/19] Fix and improve chardev open error messages
Date: Fri, 24 Feb 2012 09:30:25 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15

On 02/07/2012 08:09 AM, Markus Armbruster wrote:
Our chardev open error messages are an embarrassment.  Commit 6e1db57b
tried to improve the useless "opening backend FOO failed" message in
qemu_chr_open_opts(), but it is flawed: some failure modes went from
an unhelpful "failed" to an outright misleading error message (see
first patch for details).  And even for failure modes where the
message isn't misleading, it's still sub-par.

Clue: many backends already report their errors.  The "failed" message
is merely redundant then.

Since I'm touching the error reporting anyway, convert it to
error_report(), so that a future a monitor command to add character
devices emits its errors to the monitor, not stderr.

I've applied 1-8 and 14 as discussed in the mail exchange.

I've still got the remaining patches in my review queue.

Thanks,

Anthony Liguori


Outline:

[01-04/19] Revert the flawed commit
[05-06/19] Prepare for use of error_report()
[07-17/19] Make the backends report decent errors on all failure paths
[   18/18] Rip out the useless "failed" message
[   19/19] Bonus fix: legacy chardev syntax error reporting

Markus Armbruster (19):
   Revert "qemu-char: Print strerror message on failure" and deps
   qemu-char: Use qemu_open() to avoid leaking fds to children
   qemu-char: Re-apply style fixes from just reverted aad04cd0
   qemu-char: qemu_chr_open_fd() can't fail, don't check
   vl.c: Error locations for options using add_device_config()
   gdbstub: Error locations for -gdb
   sockets: Drop sockets_debug debug code
   sockets: Clean up inet_listen_opts()'s convoluted bind() loop
   sockets: Chardev open error reporting, sockets part
   qemu-char: Chardev open error reporting, !_WIN32 part
   qemu-char: Chardev open error reporting, _WIN32 part
   qemu-char: Chardev open error reporting, tty part
   qemu-char: Chardev open error reporting, parport part
   console: Eliminate text_consoles[]
   console: Chardev open error reporting, console part
   spice-qemu-char: Chardev open error reporting, spicevmc part
   baum: Chardev open error reporting, braille part
   qemu-char: Chardev open error reporting, generic part
   qemu-char: Fix legacy chardev syntax error reporting

  console.c         |   28 ++----
  console.h         |    2 +-
  hw/baum.c         |   16 ++--
  hw/baum.h         |    2 +-
  hw/msmouse.c      |    5 +-
  hw/msmouse.h      |    2 +-
  qemu-char.c       |  263 ++++++++++++++++++++++++++++++-----------------------
  qemu-sockets.c    |  203 +++++++++++++++--------------------------
  spice-qemu-char.c |   21 ++--
  ui/qemu-spice.h   |    2 +-
  vl.c              |   20 ++---
  11 files changed, 265 insertions(+), 299 deletions(-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]