Skip to contentSkip to conversation

RFC: usb redirection over the network, interesting outside of spice?

Qemu-devel Hans de Goede 3 participants 3 messages Nov 29, 2010

lore
Share & tools
lore
#0 lore raw

Hi All,

Now that I have usb-1.1 passthrough / local redirection support working reliably (see my patch sets for this), I'm going to start working on doing usb redirection support over the network.

The idea here is that a usb device connected to machine a, will be available for use by the guest os running on host b (machine b).

I'm working on this because it is something which we want / need for spice. I'm wondering if there is interest in this outside of spice ?

I'm asking because at this moment in time the redirection support can probably be written in a way which abstracts the transport channel quite easily, allowing use outside of spice.

Regards,

Hans

#1 lore raw

Hi,

Quoted 6 lines

The idea here is that a usb device connected to machine a, will be available for use by the guest os running on host b (machine b).

I'm working on this because it is something which we want / need for spice. I'm wondering if there is interest in this outside of spice ?

Sure. The idea to support usb forwarding over vnc comes up now and then. Also having a standalone app is probably useful for testing and development and maybe logging the communication between guest OS and device.

Quoted 3 lines

I'm asking because at this moment in time the redirection support can probably be written in a way which abstracts the transport channel quite easily, allowing use outside of spice.

Yes, I think we certainly want to do that. I think on the qemu side we want plumbing into chardev and spice, maybe also vnc. On the client side a library (building on top of libusb?), a standalone app and support in spice client and maybe gtk-vnc would be good I think.

cheers,
Gerd

#2 lore raw
In reply to Hans de Goede
Quoted 9 lines · Hans de Goede

Hi All,

Now that I have usb-1.1 passthrough / local redirection support working reliably (see my patch sets for this), I'm going to start working on doing usb redirection support over the network.

The idea here is that a usb device connected to machine a, will be available for use by the guest os running on host b (machine b).

Quoted 7 lines

I'm working on this because it is something which we want / need for spice. I'm wondering if there is interest in this outside of spice ?

I'm asking because at this moment in time the redirection support can probably be written in a way which abstracts the transport channel quite easily, allowing use outside of spice.

Do you know usbip [1]? I haven't looked at any details, but maybe there is room for synergies.

Jan

[1] http://usbip.sourceforge.net/

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux