mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Amit Shah <amit.shah@redhat.com>,
	Anthony Liguori <aliguori@us.ibm.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 09:00:49 +0100	[thread overview]
Message-ID: <200911060900.49923.borntraeger@de.ibm.com> (raw)
In-Reply-To: <200911061740.03734.rusty@rustcorp.com.au>

Am Freitag 06 November 2009 08:10:02 schrieb Rusty Russell:
> On Wed, 4 Nov 2009 03:08:39 am Amit Shah wrote:
> > Expose multiple char devices ("ports") for simple communication
> > between the host userspace and guest.
> 
> OK, I've taken the chance to audit this patch.  I started adding patches
> until I got overwhelmed.   It's a complete mess and needs a total rewrite
>  :(

I know that Anthony disagrees, but _If we start over_, I still think we should 
use that chance and leave the old virtio console untouched and add a new driver 
for the host guest communication. IMHO it turned out that there is only a tiny 
bit of commonality. (most code pathes check for use_multiport and  then do two 
completely different things).
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.

On the other hand we all should agree on one driver vs. two drivers before we go 
on. Everything else would be unfair to Amit, who had the unpleasant task to 
implement conflicting review comments....

Christian

  reply	other threads:[~2009-11-06  8:00 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 [this message]
2009-11-06 13:00       ` Anthony Liguori
2009-11-06 14:12         ` Christian Borntraeger
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=200911060900.49923.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®