From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZ0Kb-0006or-89 for qemu-devel@nongnu.org; Thu, 06 Aug 2009 06:36:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZ0KV-0006n0-8m for qemu-devel@nongnu.org; Thu, 06 Aug 2009 06:36:19 -0400 Received: from [199.232.76.173] (port=51921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ0KV-0006mu-5P for qemu-devel@nongnu.org; Thu, 06 Aug 2009 06:36:15 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42105) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZ0KU-0002VK-Et for qemu-devel@nongnu.org; Thu, 06 Aug 2009 06:36:14 -0400 Date: Thu, 6 Aug 2009 16:05:53 +0530 From: Amit Shah Subject: Re: [Qemu-devel] Re: virtio-serial: An interface for host-guest communication Message-ID: <20090806103553.GB9222@amit-x200.redhat.com> References: <1248717876-17630-1-git-send-email-amit.shah@redhat.com> <4A6E0C9E.10908@codemonkey.ws> <20090727203214.GG15020@redhat.com> <20090727204627.GA32432@shareable.org> <4A6E3BDC.8050101@codemonkey.ws> <20090728140029.GA16067@amd.home.annexia.org> <4A77410D.4090804@codemonkey.ws> <20090805175713.GB28738@shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090805175713.GB28738@shareable.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, "Richard W.M. Jones" , qemu-devel@nongnu.org On (Wed) Aug 05 2009 [18:57:13], Jamie Lokier wrote: > Anthony Liguori wrote: > > Richard W.M. Jones wrote: > > Have you considered using a usb serial device? Something attractive > > about it is that a productid/vendorid can be specified which means that > > you can use that as a method of enumerating devices. > > > > Hot add/remove is supported automagically. > > The same applies to PCI: productid/vendorid (and subids); > PCI hotplug is possible though not as native as USB. > > Here's another idea: Many devices these days have a serial number or > id string. E.g. USB storage, ATA drives, media cards, etc. Linux > these days creates alias device nodes which include the id string in > the device name. E.g. /dev/disks/by-id/ata-FUJITSU_MHV2100BH_NWAQT662615H > > So in addition to (or instead of) /dev/vmch0, /dev/vmch1 etc., > Linux guests could easily generate: > > /dev/vmchannel/by-role/clipboard-0 > /dev/vmchannel/by-role/gueststats-0 > /dev/vmchannel/by-role/vmmanager-0 That's interesting; worth a thought. When we actually have all the parties together (libvirt, libguestfs, qemu) to decide which ports need to act as which transports, we'll be able to add this. > It's not necessary to do this at the beginning. All that is needed is > to provide enough id information that will appear in /sys/..., so that > that a udev policy for naming devices can be created at some later date. True. Amit