From: Amit Shah <amit.shah@redhat.com>
To: Juan Quintela <quintela@trasno.org>
Cc: Blue Swirl <blauwirbel@gmail.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] virtio-console: Have a static instance of virtconsole
Date: Fri, 4 Sep 2009 23:10:06 +0530 [thread overview]
Message-ID: <20090904174006.GA32444@amit-x200.redhat.com> (raw)
In-Reply-To: <m3y6ouy5lq.fsf@neno.mitica>
On (Fri) Sep 04 2009 [19:36:33], Juan Quintela wrote:
> >> >
> >> > There's only one instance of a virtio device created, and this device
> >> > hosts multiple ports. And VirIOConsole is the master structure.
> >>
> >> But instead of this, you should have a separate structure for the
> >> master one, if that way you can avoid the static instance.
> >
> > The problem with that is that the config space and the ports array have
> > to be made static anyway (because they get used at command-line parsing
> > time, before the virtio-console init function is called). So there's no
> > net gain for doing it that way and we're just keeping things outside of
> > the struct. And that doesn't fit well with the new proposed VMState
> > handlers.
>
> I haven't looked at that, but qdev should help here.
> There has to be a way to create multiple devices from the command line,
> or qdev is doomed :)
We don't want multiple devices; just one virtio-console device with
several ports.
> What I haven't looked is at what part of how virt-console share the
> ports.
Share the ports in what sense?
Amit
next prev parent reply other threads:[~2009-09-04 17:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 9:14 [Qemu-devel] [PATCH] virtio-console: Have a static instance of virtconsole Amit Shah
2009-09-04 16:26 ` Blue Swirl
2009-09-04 16:33 ` Amit Shah
2009-09-04 16:37 ` Blue Swirl
2009-09-04 16:40 ` Amit Shah
2009-09-04 16:45 ` Blue Swirl
2009-09-04 16:51 ` Amit Shah
[not found] ` <m3y6ouy5lq.fsf@neno.mitica>
2009-09-04 17:40 ` Amit Shah [this message]
2009-09-08 14:08 ` [Qemu-devel] " Anthony Liguori
2009-09-08 14:41 ` Gerd Hoffmann
2009-09-09 6:07 ` 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=20090904174006.GA32444@amit-x200.redhat.com \
--to=amit.shah@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@trasno.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).