From: Anthony Liguori <anthony@codemonkey.ws>
To: Amit Shah <amit.shah@redhat.com>
Cc: qemu list <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/1] char: Add a QemuChrHandlers struct to initialise chardev handlers
Date: Fri, 10 Feb 2012 07:28:19 -0600 [thread overview]
Message-ID: <4F351B73.9020001@codemonkey.ws> (raw)
In-Reply-To: <bf284cdd622542c4f8b0c1083ebb6994b6d05536.1328879942.git.amit.shah@redhat.com>
On 02/10/2012 07:19 AM, Amit Shah wrote:
> Instead of passing each handler in the qemu_add_handlers() function,
> create a struct of handlers that can be passed to the function instead.
>
> Signed-off-by: Amit Shah<amit.shah@redhat.com>
Why?
> ---
> gdbstub.c | 9 +++++++--
> hw/ccid-card-passthru.c | 11 +++++++----
> hw/debugcon.c | 2 +-
> hw/escc.c | 9 +++++++--
> hw/etraxfs_ser.c | 13 +++++++++----
> hw/grlib_apbuart.c | 12 +++++++-----
> hw/ivshmem.c | 28 ++++++++++++++++++++++------
> hw/lm32_juart.c | 8 +++++++-
> hw/lm32_uart.c | 8 +++++++-
> hw/mcf_uart.c | 9 +++++++--
> hw/milkymist-uart.c | 8 +++++++-
> hw/pl011.c | 9 +++++++--
> hw/pxa2xx.c | 13 +++++++++----
> hw/qdev-properties.c | 2 +-
> hw/serial.c | 9 +++++++--
> hw/sh_serial.c | 12 +++++++++---
> hw/spapr_vty.c | 9 ++++++---
> hw/strongarm.c | 12 +++++++-----
> hw/usb-serial.c | 9 +++++++--
> hw/virtio-console.c | 9 +++++++--
> hw/xen_console.c | 16 +++++++++++-----
> hw/xilinx_uartlite.c | 11 +++++++++--
> monitor.c | 18 ++++++++++++++----
> net/slirp.c | 8 ++++++--
> qemu-char.c | 32 ++++++++++++++++++++++----------
> qemu-char.h | 12 ++++++++----
> usb-redir.c | 9 +++++++--
> 27 files changed, 225 insertions(+), 82 deletions(-)
It's not a win in terms of code size. If you plan on introducing additional
handlers, perhaps you should include this in that series where it's more
appropriately justified.
As a change on it's own, it doesn't seem to make a lot of sense.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2012-02-10 13:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 13:19 [Qemu-devel] [PATCH 1/1] char: Add a QemuChrHandlers struct to initialise chardev handlers Amit Shah
2012-02-10 13:28 ` Anthony Liguori [this message]
2012-02-10 17:09 ` Amit Shah
2012-02-10 17:22 ` Anthony Liguori
2012-02-10 18:08 ` Kevin Wolf
2012-02-10 18:18 ` 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=4F351B73.9020001@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=amit.shah@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).