From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amit Shah Subject: Re: [RFC] virtio_console: Add DRIVER and INTERFACE to uevent. Date: Fri, 25 Jan 2013 14:57:08 +0530 Message-ID: <20130125092708.GD30483@amit.redhat.com> References: <1358425438-4633-1-git-send-email-sjur.brandeland@stericsson.com> <87pq0yw23j.fsf@rustcorp.com.au> <20130122161647.GA10600@kroah.com> <20130124165139.GE15208@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20130124165139.GE15208@kroah.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Greg KH Cc: virtualization@lists.linux-foundation.org, Linus Walleij , "Michael S. Tsirkin" List-Id: virtualization@lists.linuxfoundation.org On (Thu) 24 Jan 2013 [08:51:39], Greg KH wrote: > On Thu, Jan 24, 2013 at 02:30:59PM +0100, Sjur Br=E6ndeland wrote: > > Another approach could perhaps be to change the way port-names are > > generated by virtio_console... > = > How would that help here? > = > The way to solve this is to provide userspace with some "unique" > identifier of your device. Traditionally that is done with a number of > different methods: > - serial numbers and other unique strings in sysfs files > - device paths (plugged into the 3rd port on the 4th USB device) > - a "label" in the device (think about filesystems) virtio-console does have a concept of port 'names'. For example, the QEMU guest agent knows it just has to open ports available with the /dev/virtio-ports/org.qemu.guest-agent* names. Sjur, if you add minimal support for multiport, and use the VIRTIO_CONSOLE_PORT_NAME feature, this should be already supported by udev. Amit