From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, aliguori@us.ibm.com
Subject: [Qemu-devel] [PATCH 00/19] Fix and improve chardev open error messages
Date: Tue, 7 Feb 2012 15:09:07 +0100 [thread overview]
Message-ID: <1328623766-12287-1-git-send-email-armbru@redhat.com> (raw)
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.
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(-)
--
1.7.6.5
next reply other threads:[~2012-02-07 14:09 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 14:09 Markus Armbruster [this message]
2012-02-07 14:09 ` [Qemu-devel] [PATCH 01/19] Revert "qemu-char: Print strerror message on failure" and deps Markus Armbruster
2012-02-07 15:06 ` Anthony Liguori
2012-02-07 14:09 ` [Qemu-devel] [PATCH 02/19] qemu-char: Use qemu_open() to avoid leaking fds to children Markus Armbruster
2012-02-07 15:07 ` Anthony Liguori
2012-02-07 14:09 ` [Qemu-devel] [PATCH 03/19] qemu-char: Re-apply style fixes from just reverted aad04cd0 Markus Armbruster
2012-02-07 15:07 ` Anthony Liguori
2012-02-07 14:09 ` [Qemu-devel] [PATCH 04/19] qemu-char: qemu_chr_open_fd() can't fail, don't check Markus Armbruster
2012-02-07 15:24 ` Anthony Liguori
2012-02-07 14:09 ` [Qemu-devel] [PATCH 05/19] vl.c: Error locations for options using add_device_config() Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 06/19] gdbstub: Error locations for -gdb Markus Armbruster
2012-02-07 15:32 ` Kevin Wolf
2012-02-09 15:08 ` Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 07/19] sockets: Drop sockets_debug debug code Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 08/19] sockets: Clean up inet_listen_opts()'s convoluted bind() loop Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 09/19] sockets: Chardev open error reporting, sockets part Markus Armbruster
2012-02-07 15:13 ` Anthony Liguori
2012-02-09 16:05 ` Markus Armbruster
2012-02-14 17:24 ` Markus Armbruster
2012-02-14 19:05 ` Anthony Liguori
2012-02-15 13:33 ` Markus Armbruster
2012-02-22 20:28 ` Anthony Liguori
2012-02-23 8:15 ` Markus Armbruster
2012-08-29 15:15 ` Amos Kong
2012-08-29 16:04 ` Amos Kong
2012-09-05 2:19 ` Amos Kong
2012-09-05 18:52 ` Luiz Capitulino
2012-02-07 14:09 ` [Qemu-devel] [PATCH 10/19] qemu-char: Chardev open error reporting, !_WIN32 part Markus Armbruster
2012-02-07 15:52 ` Kevin Wolf
2012-02-09 15:16 ` Markus Armbruster
2012-02-09 15:39 ` Kevin Wolf
2012-02-09 16:19 ` Markus Armbruster
2012-02-09 16:31 ` Luiz Capitulino
2012-02-09 17:08 ` Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 11/19] qemu-char: Chardev open error reporting, _WIN32 part Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 12/19] qemu-char: Chardev open error reporting, tty part Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 13/19] qemu-char: Chardev open error reporting, parport part Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 14/19] console: Eliminate text_consoles[] Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 15/19] console: Chardev open error reporting, console part Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 16/19] spice-qemu-char: Chardev open error reporting, spicevmc part Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 17/19] baum: Chardev open error reporting, braille part Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 18/19] qemu-char: Chardev open error reporting, generic part Markus Armbruster
2012-02-07 14:09 ` [Qemu-devel] [PATCH 19/19] qemu-char: Fix legacy chardev syntax error reporting Markus Armbruster
2012-02-07 16:05 ` [Qemu-devel] [PATCH 00/19] Fix and improve chardev open error messages Kevin Wolf
2012-02-24 15:30 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328623766-12287-1-git-send-email-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).