[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Feature proposal: USB devices over TCP
From: |
Eduardo Felipe |
Subject: |
[Qemu-devel] Feature proposal: USB devices over TCP |
Date: |
Sat, 7 Apr 2007 03:11:30 +0200 |
Hi everybody,
I think that a useful feature for QEMU would be to expose the USB interface through TCP.
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
usb_over_tcp.diff
Description: Binary data
usb_mouse.py
Description: Text Data
- [Qemu-devel] Feature proposal: USB devices over TCP,
Eduardo Felipe <=