qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Feature proposal: USB devices over TCP
Date: Fri, 06 Apr 2007 22:38:33 -0500	[thread overview]
Message-ID: <46171239.6090608@codemonkey.ws> (raw)
In-Reply-To: <83a4d4ca0704061811ka631da0ufad5af1a63ba19c2@mail.gmail.com>

Eduardo Felipe wrote:
> Hi everybody,
>
> I think that a useful feature for QEMU would be to expose the USB 
> interface through TCP.

Hi Eduardo,

I don't know all that much about USB, but I think the most useful way to 
do this would be to do something that's protocol compatible with USBIP.  
We could then tunnel this traffic over VNC and allow for exposing local 
USB devices to a remote VM.

Think of a virtual desktop being hosted on a server and exposed on a 
thin client.  If you could plug in your iPod and it would just work with 
the VM, that would be an exceedingly cool feature.

Are you familiar with USBIP?  If so, does this sound reasonable?

Regards,

Anthony Liguori

> It would allow quick USB device development in high level languages 
> without recompiling QEMU. We could have an instance of QEMU running 
> all the time while we create our device and hot plug/unplug it 
> whenever we want to.
>
> This could also attract people interested in hardware emulation, but 
> scared of learning QEMU internals just to create a simple new device.
>
> I think USB is quite suited for this, as it is designed for pluggable 
> external devices, but something similar could be made for serial and 
> parallel devices too.
>
> The attached patch is a quick hack derived from the VNC server just to 
> show the idea, not intended for commiting. A dummy protocol is used 
> for message interchange between server and client.
>
> It adds the new command line option:
>  -usbtcp port
> It starts a socket listening on port for incoming connections. A 
> sample USB mouse in python is also provided that moves the cursor in 
> circles.
>
> Would such a feature be of any interest for QEMU?
>
> Regards,
> Eduardo Felipe

  reply	other threads:[~2007-04-07  3:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-07  1:11 [Qemu-devel] Feature proposal: USB devices over TCP Eduardo Felipe
2007-04-07  3:38 ` Anthony Liguori [this message]
2007-04-07 12:14   ` Eduardo Felipe
2007-04-07 12:49     ` Paul Brook

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=46171239.6090608@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --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 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).