Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757509AbZKFOMi (ORCPT ); Fri, 6 Nov 2009 09:12:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755249AbZKFOMh (ORCPT ); Fri, 6 Nov 2009 09:12:37 -0500 Received: from mtagate2.de.ibm.com ([195.212.17.162]:41357 "EHLO mtagate2.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093AbZKFOMh (ORCPT ); Fri, 6 Nov 2009 09:12:37 -0500 From: Christian Borntraeger Organization: IBM To: Anthony Liguori 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 User-Agent: KMail/1.12.2 (Linux/2.6.32-rc6-self-00026-g91d3f9b; KDE/4.3.2; i686; ; ) Cc: Rusty Russell , Amit Shah , linux-kernel@vger.kernel.org, virtualization@linux-foundation.org, "Michael S. Tsirkin" References: <1257266319-24300-1-git-send-email-amit.shah@redhat.com> <200911060900.49923.borntraeger@de.ibm.com> <4AF41DF0.7050002@us.ibm.com> In-Reply-To: <4AF41DF0.7050002@us.ibm.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200911061512.40413.borntraeger@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2122 Lines: 43 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/