virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Amit Shah <amit.shah@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Subject: Re: [PATCH 01/15] virtio_console: Initialize hv_ops struct at declaration instead of in the probe() routine
Date: Tue, 10 Nov 2009 23:37:39 +1030	[thread overview]
Message-ID: <200911102337.39372.rusty@rustcorp.com.au> (raw)
In-Reply-To: <1257846101-23258-2-git-send-email-amit.shah@redhat.com>

On Tue, 10 Nov 2009 08:11:27 pm Amit Shah wrote:
> Initialize the hv_ops function pointers using C99 style. However, we
> need to re-init the 'put_chars' field to our implementation in the
> probe() routine as we replace it for early_init to use the caller's
> put_chars implementation.

(I've decided one email for all the feedback, because obviously the merge
of the two series will cause substantial changes)

It's interesting to contrast this with mine.  There's nothing *wrong*
with this, but the larger issue of making as much kernel data const lead
me to the separate early_put_chars hook.

Re: [PATCH 02/15] virtio_console: We support only one device at a time

> We support only one virtio_console device at a time. If multiple are
> found, error out if one is already initialized.

I like this; it should be integrated early in my series; technically it's
a fix.  But it should use dev_err() (or dev_warn maybe) not pr_err().

Re: [PATCH 03/15] virtio_console: Club all globals into one struct

I chose "port" as a name; it's better once we're finished than
"struct virtio_console_struct".  You also dropped the static, which is
sloppy.

Re: [PATCH 04/15] virtio_console: Introduce a workqueue for handling host->guest notifications

This one I disagree with.  The host will wait until a buffer comes available.
It has to anyway, and it should work just fine.  *If* we need speed, then we
might need workqueues so we reduce guest exits, but I don't think we need that
yet.

Will defer most of the other patches until we sort this issue out.  But one
minor thing:

Re: [PATCH 10/15] virtio_console: Register with sysfs and create a 'name' attribute

Is there a better way to have that attribute dynamic, rather than just having
the sysfs file there but empty if it has no name?

I think get_port_from_dev_t cannot fail (BUG() at the end?).

Thanks!
Rusty.

  parent reply	other threads:[~2009-11-10 13:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10  9:41 virtio_console: support for multiple ports, console and generic Amit Shah
2009-11-10  9:41 ` [PATCH 01/15] virtio_console: Initialize hv_ops struct at declaration instead of in the probe() routine Amit Shah
2009-11-10  9:41   ` [PATCH 02/15] virtio_console: We support only one device at a time Amit Shah
2009-11-10  9:41     ` [PATCH 03/15] virtio_console: Club all globals into one struct Amit Shah
2009-11-10  9:41       ` [PATCH 04/15] virtio_console: Introduce a workqueue for handling host->guest notifications Amit Shah
2009-11-10  9:41         ` [PATCH 05/15] virtio_console: Buffer data that comes in from the host Amit Shah
2009-11-10  9:41           ` [PATCH 06/15] virtio_console: Create a buffer pool for sending data to host Amit Shah
2009-11-10  9:41             ` [PATCH 07/15] virtio_console: config: Prepare for handling multiple ports and hotplug Amit Shah
2009-11-10  9:41               ` [PATCH 08/15] virtio_console: Add support for multiple ports: console as well as generic Amit Shah
2009-11-10  9:41                 ` [PATCH 09/15] virtio_console: Handle port hot-plug Amit Shah
2009-11-10  9:41                   ` [PATCH 10/15] virtio_console: Register with sysfs and create a 'name' attribute Amit Shah
2009-11-10  9:41                     ` [PATCH 11/15] virtio_console: Ensure only one process can have a port open at a time Amit Shah
2009-11-10  9:41                       ` [PATCH 12/15] virtio_console: Add debugfs files for each port to expose debug info Amit Shah
2009-11-10  9:41                         ` [PATCH 13/15] virtio_console: Add throttling support to prevent flooding ports Amit Shah
2009-11-10  9:41                           ` [PATCH 14/15] virtio_console: Add option to remove cached buffers on port close Amit Shah
2009-11-10  9:41                             ` [PATCH 15/15] virtio_console: Add ability to hot-unplug ports Amit Shah
2009-11-10 13:07   ` Rusty Russell [this message]
2009-11-11 18:42     ` [PATCH 01/15] virtio_console: Initialize hv_ops struct at declaration instead of in the probe() routine Amit Shah
2009-11-12  2:01       ` Rusty Russell
2009-11-12  5:54         ` Amit Shah

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=200911102337.39372.rusty@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=amit.shah@redhat.com \
    --cc=virtualization@lists.linux-foundation.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).