[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AAFA025.3050401@codemonkey.ws>
Date: Tue, 15 Sep 2009 09:09:41 -0500
From: Anthony Liguori <anthony@...emonkey.ws>
To: Gerd Hoffmann <kraxel@...hat.com>
CC: Amit Shah <amit.shah@...hat.com>, Alan Cox <alan@...ux.intel.com>,
rusty@...tcorp.com.au, virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, greg@...ah.com
Subject: Re: [PATCH] virtio_console: Add support for multiple ports for generic
guest and host communication
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists