mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
	Amit Shah <amit.shah@redhat.com>,
	linux-kernel@vger.kernel.org,
	virtualization@linux-foundation.org,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH v10 1/1] virtio_console: Add support for multiple ports for generic guest and host communication
Date: Fri, 6 Nov 2009 15:12:40 +0100	[thread overview]
Message-ID: <200911061512.40413.borntraeger@de.ibm.com> (raw)
In-Reply-To: <4AF41DF0.7050002@us.ibm.com>

Am Freitag 06 November 2009 14:00:32 schrieb Anthony Liguori:
> > I like simplicity. According to David A. Wheeler's SLOCCount, the old
> > console has 141 lines of code and the I truly believe that a separate
> > guest-host comm vehicle would also be a lot simpler if it must not take
> > care of the old virtio_console interface.
> 
> It's the wrong metrics for evaluating a device ABI.  We should consider
> device ABIs based on whether they make sense--not about how many lines
> of code it takes to implement the Linux driver.

Well, code size is often related to complexity of the interface and affects 
maintainability. But if that does not convince you, what about intended use and 
semantics?

> Fundamentally speaking, right now, virtio-console is a single stream
> that acts as an interactive terminal.  What we're looking to add here is
> to support multiple terminals that can be enumerated in a rationale way.

Right, that is a point where I disagree. The original purpose and intent of the 
multiple port thing was to have a generic guest/host comm channels and *NOT* to 
have multiple console devices. Having multiple console devices is just a fall-
out of the current implementation.

Following your argument about single-streaming, we could also merge virtio-rng, 
no? 
If a common interface for stream workload is desired I would have preferred a 
write/read virtqueue_op besides or on top of add_buf/getbuf. I think that would 
have been the right level of abstraction.

>I agree and there are multiple maintainers on the qemu side who feel the
>same way I do.  I'm really strongly opposed to making this separate devices.

As a maintainer you sometimes have to make a controversial decision. If you made 
this final decision (and Rusty agrees) I am fine, even if I disagree.

(If it turns out to be a wrong decision you have been warned.  ;-) )

Christian

  reply	other threads:[~2009-11-06 14:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-03 16:38 [PATCH v10 0/1] virtio-console: Support for generic ports and multiple consoles Amit Shah
2009-11-03 16:38 ` [PATCH v10 1/1] virtio_console: Add support for multiple ports for generic guest and host communication Amit Shah
2009-11-06  7:10   ` Rusty Russell
2009-11-06  8:00     ` Christian Borntraeger
2009-11-06 13:00       ` Anthony Liguori
2009-11-06 14:12         ` Christian Borntraeger [this message]
2009-11-06 14:32           ` Anthony Liguori
2009-11-09 12:08     ` Amit Shah
2009-11-10  2:19       ` Rusty Russell
2009-11-06  7:43   ` Christian Borntraeger
2009-11-09 12:09     ` 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=200911061512.40413.borntraeger@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=amit.shah@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®