Gerd Hoffmann wrote: >> Userspace can detect when new virtio-consoles appear via udev events. >> When it sees a new ttyVN, it can then look in sysfs to discover it's >> name. > > No. udev can create symlinks for you, so apps don't have to dig into > sysfs. You'll need a rule along the lines (untested): > > SUBSYSTEM=="virtio", \ > DRIVERS="virtio-console", \ > SYMLINK+="vcon/$attr{name}" > > then udev will create a /dev/vcon/org.qemu.clipboard symlink pointing > to dev/ttyV0. Apps can just open /dev/vcon/$name then. That works equally well. I don't necessarily think that naming is more useful. Regards, Anthony Liguori _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization