All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/2] Tunnel character device data over VNC (v1)
Date: Wed, 01 Jul 2009 14:11:23 -0500	[thread overview]
Message-ID: <4A4BB4DB.7070708@codemonkey.ws> (raw)
In-Reply-To: <20090701185255.GD24144@redhat.com>

Daniel P. Berrange wrote:
> On Wed, Jul 01, 2009 at 01:47:12PM -0500, Anthony Liguori wrote:
>   
>> Daniel P. Berrange wrote:
>>     
>>> On Wed, Jul 01, 2009 at 01:36:23PM -0500, Anthony Liguori wrote:
>>>  
>>>       
>>>> Daniel P. Berrange wrote:
>>>>    
>>>>         
>>>>> The following two patches make it possible to tunnel character devices
>>>>> over VNC, using a new VNC extension. This is motivated by the existing
>>>>> QEMU support for tunnelling audio streams over VNC, and the code follows
>>>>> a very similar design.  The key requirement here is that it should not
>>>>> be neccessary to specifically configure each character device to make
>>>>> it available via VNC. The admin should be able to configure the char
>>>>> devices with all current available backends (file, pty, null, tcp, udp,
>>>>> unix, etc), and regardless of this config be able to snoop on data from
>>>>> any active VNC client on demand.
>>>>>
>>>>>      
>>>>>           
>>>> Shouldn't it just be the character devices put on vc's?
>>>>    
>>>>         
>>> The 'vc' concept is a stateful one, requiring the user to switch betweeen
>>> channels statically and is opaque to VNC clients - all they see is a
>>> framebuffer with no idea that QEMU has this magic sequence to change
>>> what the framebuffer displays, nor what vc's are available.
>>>       
>> I understand what you're suggesting, but I think the right way to handle 
>> this use-case is to allow character devices to be redirected after 
>> initial open making them truly dynamic.
>>     
>
> The 'vc' reference was puzzelling to me there, but I think you're
> basically suggesting the same thing as Gerd is ? To fully de-couple
> the device specification vs backend configuration
>   

Well, I'm saying, a character device should be exposed via VNC IIF it's 
connected to a 'vc' backend device.  In order to satisfy your use-case, 
I'd also suggest decoupling the monitor front-end's from back-ends so 
that you can reconnect a character device to a 'vc' if you want to.

The easiest way (albeit a little ugly) to do this would be to create a 
pluggable character device that proxied to another character device.  
Change qemu_chr_open() to return qemu_chr_open_proxy(chr, label).

You can then enumerate proxies by label and retarget the proxy to a 
different device.

Regards,

Anthony Liguori

> Daniel
>   

  reply	other threads:[~2009-07-01 19:11 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-01 16:21 [Qemu-devel] [PATCH 0/2] Tunnel character device data over VNC (v1) Daniel P. Berrange
2009-07-01 16:26 ` [Qemu-devel] [PATCH 1/2] APIs to capture character device data Daniel P. Berrange
2009-07-01 16:27 ` [Qemu-devel] [PATCH 2/2] VNC char device data stream tunnelling Daniel P. Berrange
2009-07-01 18:44   ` Anthony Liguori
2009-07-01 16:32 ` [Qemu-devel] [PATCH 0/2] Tunnel character device data over VNC (v1) Daniel P. Berrange
2009-07-01 16:42 ` Gerd Hoffmann
2009-07-01 16:50   ` Daniel P. Berrange
2009-07-01 17:30     ` Gerd Hoffmann
2009-07-01 18:50       ` Daniel P. Berrange
2009-07-01 19:27         ` Gerd Hoffmann
2009-07-01 18:51       ` Anthony Liguori
2009-07-01 19:41         ` Gerd Hoffmann
2009-07-01 19:59           ` Anthony Liguori
2009-07-01 20:56             ` Gerd Hoffmann
2009-07-01 21:32               ` Anthony Liguori
2009-07-01 22:46                 ` Gerd Hoffmann
2009-07-02  2:30               ` Jamie Lokier
2009-07-01 21:07             ` Daniel P. Berrange
2009-07-01 18:36 ` Anthony Liguori
2009-07-01 18:44   ` Daniel P. Berrange
2009-07-01 18:47     ` Anthony Liguori
2009-07-01 18:52       ` Daniel P. Berrange
2009-07-01 19:11         ` Anthony Liguori [this message]
2009-07-01 19:27           ` Daniel P. Berrange

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=4A4BB4DB.7070708@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=berrange@redhat.com \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.