On (Thu) 24 Jan 2013 [08:51:39], Greg KH wrote:
> On Thu, Jan 24, 2013 at 02:30:59PM +0100, Sjur Brændeland 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
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization