From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Madzs-0000rr-CN for qemu-devel@nongnu.org; Mon, 10 Aug 2009 19:09:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Madzn-0000om-DF for qemu-devel@nongnu.org; Mon, 10 Aug 2009 19:09:43 -0400 Received: from [199.232.76.173] (port=41837 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Madzn-0000of-7q for qemu-devel@nongnu.org; Mon, 10 Aug 2009 19:09:39 -0400 Received: from ozlabs.org ([203.10.76.45]:43254) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Madzm-0004og-MQ for qemu-devel@nongnu.org; Mon, 10 Aug 2009 19:09:39 -0400 From: Rusty Russell Subject: Re: [Qemu-devel] Re: virtio-serial: An interface for =?iso-8859-1?q?host-guest=09communication?= Date: Tue, 11 Aug 2009 08:39:28 +0930 References: <20090805175713.GB28738@shareable.org> <20090810065508.GA4499@amit-x200.redhat.com> <4A7FECCA.8080804@redhat.com> In-Reply-To: <4A7FECCA.8080804@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908110839.28901.rusty@rustcorp.com.au> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, "Richard W.M. Jones" , virtualization@lists.linux-foundation.org, Amit Shah On Mon, 10 Aug 2009 07:17:54 pm Gerd Hoffmann wrote: > On 08/10/09 08:55, Amit Shah wrote: > >> Bad example. Quite a lot of modern devices drivers are using dynamic > >> major/minor numbers because they have proven to be such a pain in the > >> butt. That's why we have more sophisticated mechanisms like udev for > >> userspace to make use of. > > > > Let me explain how we came to this numbering: we first had support for > > 'naming' ports and the names were obtained by userspace programs by an > > ioctl. Rusty suggested to use some numbering scheme where some ports > > could exist at predefined locations so that we wouldn't need the naming > > and the ioctls around it. > > I think the naming is very important. I disagree. If you can hand out names, you can hand out numbers. Whether the guest chooses to put that number in sysfs or make it a minor, I don't care. Rusty.