virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: greg@kroah.com, linux-kernel@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	Amit Shah <amit.shah@redhat.com>, Alan Cox <alan@linux.intel.com>
Subject: Re: [PATCH] virtio_console: Add support for multiple ports for generic guest and host communication
Date: Tue, 15 Sep 2009 16:08:24 +0200	[thread overview]
Message-ID: <4AAF9FD8.1010008@redhat.com> (raw)
In-Reply-To: <4AAF8F26.8030503@codemonkey.ws>

On 09/15/09 14:57, Anthony Liguori wrote:
> That's probably not what we want. I imagine what we want is:
>
> /dev/ttyV0
> /dev/ttyV1
> /dev/ttyVN

Yes.

> And then we want:
>
> /sys/class/virtio-console/ttyV0/name -> "org.qemu.clipboard"

Yes.

> 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.

cheers,
   Gerd

  parent reply	other threads:[~2009-09-15 14:08 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1252678386-17404-1-git-send-email-amit.shah@redhat.com>
2009-09-11 14:13 ` [PATCH] virtio_console: Add support for multiple ports for generic guest and host communication Amit Shah
     [not found] ` <1252678386-17404-2-git-send-email-amit.shah@redhat.com>
2009-09-11 16:00   ` Alan Cox
     [not found]   ` <20090911170010.34c80f2d@linux.intel.com>
2009-09-11 16:38     ` Amit Shah
     [not found]     ` <20090911163806.GB25535@amit-x200.redhat.com>
2009-09-11 17:26       ` Anthony Liguori
     [not found]       ` <4AAA8838.1080106@codemonkey.ws>
2009-09-11 17:33         ` Amit Shah
     [not found]         ` <20090911173307.GB27046@amit-x200.redhat.com>
2009-09-11 17:35           ` Anthony Liguori
     [not found]           ` <4AAA8A56.3040707@codemonkey.ws>
2009-09-16 10:23             ` Alan Cox
     [not found]             ` <20090916112332.6bf981a5@linux.intel.com>
2009-09-16 22:20               ` Anthony Liguori
     [not found]               ` <4AB164A0.8000402@codemonkey.ws>
2009-09-17 13:06                 ` Markus Armbruster
     [not found]                 ` <87tyz1en5f.fsf@pike.pond.sub.org>
2009-09-17 13:15                   ` Alan Cox
     [not found]                   ` <20090917141531.4d2489d4@lxorguk.ukuu.org.uk>
2009-09-17 13:41                     ` Amit Shah
     [not found]                     ` <20090917134125.GA27511@amit-x200.redhat.com>
2009-09-17 15:57                       ` Alan Cox
     [not found]                       ` <20090917165701.400ad28c@lxorguk.ukuu.org.uk>
2009-09-17 16:46                         ` Amit Shah
2009-09-18 16:00                 ` Alan Cox
     [not found]                 ` <20090918170048.53ba8cf6@linux.intel.com>
2009-09-18 17:55                   ` Anthony Liguori
     [not found]                   ` <4AB3C988.2040303@codemonkey.ws>
2009-09-18 17:57                     ` H. Peter Anvin
2009-09-18 20:11                     ` Gerd Hoffmann
2009-09-19  7:01                     ` Amit Shah
     [not found]                     ` <4AB3CA27.1040307@zytor.com>
2009-09-18 18:02                       ` Anthony Liguori
2009-09-19  7:04                       ` Amit Shah
2009-09-21 10:06                     ` Alan Cox
2009-09-15 12:37     ` Amit Shah
     [not found]     ` <20090915123752.GB5247@amit-x200.redhat.com>
2009-09-15 12:57       ` Anthony Liguori
     [not found]       ` <4AAF8F26.8030503@codemonkey.ws>
2009-09-15 13:03         ` Amit Shah
     [not found]         ` <20090915130357.GC5247@amit-x200.redhat.com>
2009-09-15 13:37           ` Anthony Liguori
2009-09-15 14:08         ` Gerd Hoffmann [this message]
2009-09-15 14:09           ` Anthony Liguori
2009-09-22  2:44     ` Rusty Russell
     [not found]     ` <200909221214.04340.rusty@rustcorp.com.au>
2009-09-22 15:45       ` Amit Shah
     [not found]       ` <20090922154549.GA11379@amit-x200.redhat.com>
2009-09-29  9:24         ` Amit Shah
     [not found]         ` <20090929092431.GA3368@amit-x200.redhat.com>
2009-09-29 10:09           ` Christian Borntraeger
     [not found]           ` <200909291209.25775.borntraeger@de.ibm.com>
2009-09-29 10:33             ` Amit Shah
     [not found]             ` <20090929103354.GA3766@amit-x200.redhat.com>
2009-09-29 11:02               ` Christian Borntraeger
     [not found]               ` <200909291302.51432.borntraeger@de.ibm.com>
2009-09-29 11:40                 ` Christian Borntraeger
2009-09-29 12:03           ` Christian Borntraeger
     [not found]           ` <200909291403.08547.borntraeger@de.ibm.com>
2009-09-29 12:20             ` Amit Shah
     [not found]             ` <20090929122006.GB3766@amit-x200.redhat.com>
2009-09-29 12:56               ` Christian Borntraeger
     [not found]               ` <200909291456.56723.borntraeger@de.ibm.com>
2009-09-29 13:09                 ` Amit Shah
     [not found]                 ` <20090929130950.GA23395@amit-x200.redhat.com>
2009-09-29 13:31                   ` Christian Borntraeger
     [not found]                   ` <200909291531.23389.borntraeger@de.ibm.com>
2009-09-30 17:13                     ` Amit Shah
     [not found]                     ` <20090930171321.GA17200@amit-x200.redhat.com>
2009-10-01  8:17                       ` Christian Borntraeger
     [not found]                       ` <200910011017.29502.borntraeger@de.ibm.com>
2009-10-01  8:47                         ` Amit Shah
     [not found]                         ` <20091001084737.GA8385@amit-x200.redhat.com>
2009-10-01  8:55                           ` Christian Borntraeger
2009-10-01  9:00                       ` Christian Borntraeger
     [not found]                       ` <200910011100.48087.borntraeger@de.ibm.com>
2009-10-01 10:04                         ` Amit Shah
2009-10-01 10:28                       ` Christian Borntraeger
     [not found]                       ` <200910011228.30563.borntraeger@de.ibm.com>
2009-10-01 10:42                         ` Amit Shah
2009-10-01 11:58                         ` Amit Shah
     [not found]                         ` <20091001114244.GB12334@amit-x200.redhat.com>
2009-10-01 12:04                           ` Christian Borntraeger
     [not found]                           ` <200910011404.37601.borntraeger@de.ibm.com>
2009-10-01 13:50                             ` Amit Shah
2009-10-05 14:05                         ` Amit Shah
2009-10-06  6:49                           ` Christian Borntraeger
2009-10-06  6:55                             ` Amit Shah
2009-09-29 13:11   ` Rusty Russell
     [not found]   ` <200909292241.46275.rusty@rustcorp.com.au>
2009-09-29 13:24     ` Amit Shah
     [not found] <1252483925-26336-1-git-send-email-amit.shah@redhat.com>
2009-09-09  8:12 ` Amit Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AAF9FD8.1010008@redhat.com \
    --to=kraxel@redhat.com \
    --cc=alan@linux.intel.com \
    --cc=amit.shah@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).