From: Rusty Russell <rusty@rustcorp.com.au>
To: Amit Shah <amit.shah@redhat.com>
Cc: virtualization@linux-foundation.org
Subject: Re: [PATCH 8/8] virtio: console: struct ports for multiple ports per device.
Date: Tue, 10 Nov 2009 23:21:42 +1030 [thread overview]
Message-ID: <200911102321.42594.rusty@rustcorp.com.au> (raw)
In-Reply-To: <20091110093328.GA22563@amit-x200.redhat.com>
On Tue, 10 Nov 2009 08:03:28 pm Amit Shah wrote:
> On (Tue) Nov 10 2009 [16:57:30], Rusty Russell wrote:
> >
> > Rather than assume a single port, add a 'struct ports' with an array
> > of ports. Currently, there's always only one, but that will change.
>
> Hey Rusty,
Hi Amit,
> > -static struct port *__devinit alloc_port(u32 vtermno)
> > +static struct ports *__devinit alloc_ports(unsigned int num)
>
> This will have to be changed when we add support for hotplug. So instead
> of doing this, just have a linked list from the start?
No, for hotplug I think we just shift from a dangling array to a pointer
to an array. That changes the alloc and free functions, but *not* change
to any users.
> Other than this, the series is good; I can base my patches on top of
> these.
Excellent!
> I guess we can also assign a number to each vdev that gets probed so
> that sysfs and debugfs entries for ports can be put in their
> vdev-specific directories, like
>
> /sys/class/virtio-console0/vcon0/name
That makes sense; we do the same with virtio_blk IIRC.
> Also, if you think the send/receive workqueues are fine and we move to
> those, they will have to be introduced slightly earlier in this patch
> series.
So far I haven't seen a need for them. This is simple and works. But if
a later patch needs it, we do it and then maybe shuffle the patch backwards
in the sequence.
(As you can tell, I don't use git for development :)
Thanks,
Rusty.
next prev parent reply other threads:[~2009-11-10 12:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1257834450..rusty@rustcorp.com.au>
2009-11-10 6:57 ` [PATCH 8/8] virtio: console: struct ports for multiple ports per device Rusty Russell
2009-11-10 7:24 ` Amit Shah
2009-11-10 13:14 ` Rusty Russell
2009-11-10 8:56 ` [PATCH 3/8] hvc_console: make the ops pointer const Christian Borntraeger
2009-11-10 8:56 ` Christian Borntraeger
2009-11-10 9:33 ` [PATCH 8/8] virtio: console: struct ports for multiple ports per device Amit Shah
2009-11-10 12:51 ` Rusty Russell [this message]
2009-11-10 6:27 Rusty Russell
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=200911102321.42594.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=amit.shah@redhat.com \
--cc=virtualization@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.