Skip to contentSkip to conversation

usb device in domU status

DISCUSSION Hans-Christian Armingeon 4 participants 4 messages Mar 23, 2006 – Mar 26, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I searched the archives for information about USB devices in domU, but I didn't understand everything.

Are the changes in the current linux-2.6 hg tree, or do I need some patches? I tried the current xen-unstable hg tree.

I have a

usb = [ 'path=4-4' ]

line in my config.

xm create says:
Error: Device 0 (usb) yould not be connected. Hotplug scripts not working.

What am I doing wrong?

It it possible, to pass an usb port to a domU, and to this port I connect an USB hub, and all the devices on the hub will be available in a domU? What happens, if someone plugs a device off, that is exportet to a domU?

Thanks in advance,

Johnny

#1 lore raw
Quoted 15 lines · Hans-Christian Armingeon

Hi,

I searched the archives for information about USB devices in domU, but I didn't understand everything.

Are the changes in the current linux-2.6 hg tree, or do I need some patches? I tried the current xen-unstable hg tree.

I have a

usb = [ 'path=4-4' ]

line in my config.

xm create says:
Error: Device 0 (usb) yould not be connected. Hotplug scripts not working.

Quoted 9 lines

What am I doing wrong?

It it possible, to pass an usb port to a domU, and to this port I connect an USB hub, and all the devices on the hub will be available in a domU? What happens, if someone plugs a device off, that is exportet to a domU?

Thanks in advance,

Johnny

There's a USB support patch floating around to do what you want, but I haven't tested it myself. What you could possibly do is use the PCI driver domain support to place your USB controllers (which are PCI devices) in your domU. That moves *all* USB devices into the domU, not just a particular hub or device so it may not be what you want. Support to do this with PCI devices was in Xen 2.0.x, will be in Xen 3.0.2 (when it is released), and is currently in the xen-unstable tree.

Ryan

#2 lore raw
In reply to Hans-Christian Armingeon
Quoted 5 lines · Hans-Christian Armingeon

Hi,

I searched the archives for information about USB devices in domU, but I didn't understand everything.

Are the changes in the current linux-2.6 hg tree, or do I need some patches? I tried the current xen-unstable hg tree.

This is the most recent version of the patch.

http://lists.xensource.com/archives/html/xen-devel/2006-03/msg00019.html

Quoted 9 lines

I have a

usb = [ 'path=4-4' ]

line in my config.

xm create says:
Error: Device 0 (usb) yould not be connected. Hotplug scripts not working.

The patch contains updates to the hotplug scripts which are required. It was tested with udev.

Quoted 2 lines

What am I doing wrong?

Maybe you don't have the hotplug scripts from the above patch installed. Maybe you are using hotplug and not udev (this used to work but recently I was testing with udev).

Quoted 2 lines

It it possible, to pass an usb port to a domU, and to this port I connect an USB hub, and all the devices on the hub will be available in a domU?

I don't think that will work. You can export all the ports on the hub individually to domU instead though which I think gives you pretty much the same function.

Quoted 1 line

What happens, if someone plugs a device off, that is exportet to a domU?

You can hot plug and unplug devices to domU and the domU will see them come and go and the hotplug scripts in domU should get invoked.

Quoted 10 lines

Thanks in advance,

Johnny

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

Any plans for this to end up in 3.0.x?

Signature · 3 lines
Jason
The place where you made your stand never mattered,
only that you were there... and still on your feet
Quoted 61 lines · Harry Butterworth
Quoted 5 lines · Hans-Christian Armingeon

Hi,

I searched the archives for information about USB devices in domU, but I didn't understand everything.

Are the changes in the current linux-2.6 hg tree, or do I need some patches? I tried the current xen-unstable hg tree.

This is the most recent version of the patch.

http://lists.xensource.com/archives/html/xen-devel/2006-03/msg00019.html

Quoted 9 lines

I have a

usb = [ 'path=4-4' ]

line in my config.

xm create says:
Error: Device 0 (usb) yould not be connected. Hotplug scripts not working.

The patch contains updates to the hotplug scripts which are required. It was tested with udev.

Quoted 2 lines

What am I doing wrong?

Maybe you don't have the hotplug scripts from the above patch installed. Maybe you are using hotplug and not udev (this used to work but recently I was testing with udev).

Quoted 2 lines

It it possible, to pass an usb port to a domU, and to this port I connect an USB hub, and all the devices on the hub will be available in a domU?

I don't think that will work. You can export all the ports on the hub individually to domU instead though which I think gives you pretty much the same function.

Quoted 1 line

What happens, if someone plugs a device off, that is exportet to a domU?

You can hot plug and unplug devices to domU and the domU will see them come and go and the hotplug scripts in domU should get invoked.

Quoted 10 lines

Thanks in advance,

Johnny

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel