WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] How to unload the usb modules?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] How to unload the usb modules?
From: Ruslan Valiyev <ruslan@xxxxxxxxxxx>
Date: Sun, 10 May 2009 03:01:31 +0200
Delivery-date: Sat, 09 May 2009 18:02:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I'm new to Xen and have couple of questions.

My dom0 is an Express Community Edition build 112.
My domU is a Windows Server 2003.

I have a USB printer I would like to use in my domU. Now in order to allow the domU to take control over USB, I need to unload the USB modules from dom0.

Here's a list of all USB modules I could find:

solaris:~# modinfo | grep -i usb
86 fffffffff7b31000 5628 - 1 usbser (USB generic serial module)
87 fffffffff7b37000 2d7d0 - 1 usba (USBA: USB Architecture 2.0 1.66)
96 fffffffff7b7d000 176a8 30 1 ehci (USB EHCI Driver)
97 fffffffff7b95000 faa0 31 1 uhci (USB UHCI Controller Driver)
124 fffffffff7d4b000 2520 18 1 usb_mid (USB Multi Interface Driver)
126 fffffffff88bd000 3d08 20 1 usbprn (USB printer client driver)

I'm not sure which ones I had to unload. I could unload only the last one (usbprn):

solaris:~# modunload -i 126
solaris:~# modinfo | grep -i usb
86 fffffffff7b31000 5628 - 1 usbser (USB generic serial module)
87 fffffffff7b37000 2d7d0 - 1 usba (USBA: USB Architecture 2.0 1.66)
96 fffffffff7b7d000 176a8 30 1 ehci (USB EHCI Driver)
97 fffffffff7b95000 faa0 31 1 uhci (USB UHCI Controller Driver)
124 fffffffff7d4b000 2520 18 1 usb_mid (USB Multi Interface Driver)

When I'm trying to unload usb_mid, the usbprn just gets reattached:

solaris:~# modinfo | grep -i usb
86 fffffffff7b31000 5628 - 1 usbser (USB generic serial module)
87 fffffffff7b37000 2d7d0 - 1 usba (USBA: USB Architecture 2.0 1.66)
96 fffffffff7b7d000 176a8 30 1 ehci (USB EHCI Driver)
97 fffffffff7b95000 faa0 31 1 uhci (USB UHCI Controller Driver)
124 fffffffff7d4b000 2520 18 1 usb_mid (USB Multi Interface Driver)
126 fffffffff88bd000 3d08 20 1 usbprn (USB printer client driver)

Whenever trying to unload any of the upper modules, I get an error:

solaris:~# modunload -i 87
can't unload the module: Device busy


My questions are as following:

1) What modules do I need to unload in order to test if my printer will work in domU?
2) How do I unload the ones that are locked?

PS. It didn't help to just unload usbprn, so it looks like I need to unload some other modules:

# cat qemu-dm.6448.log
domid: 23
qemu: the number of cpus is 1
Watching /local/domain/23/logdirty/next-active
net_tap_init: nic = xvm23_0, setphysaddr = 0
qemu_map_cache_init nr_buckets = 10000
shared page at pfn 3ffff
buffered io page at pfn 3fffd
Time offset set -7200
keypad keysym ffae keycode 83
keypad keysym ffac keycode 83
keypad keysym ffb0 keycode 82
keypad keysym ffb1 keycode 79
keypad keysym ffb2 keycode 80
keypad keysym ffb3 keycode 81
keypad keysym ffb4 keycode 75
keypad keysym ffb5 keycode 76
keypad keysym ffb6 keycode 77
keypad keysym ffb7 keycode 71
keypad keysym ffb8 keycode 72
keypad keysym ffb9 keycode 73
Register xen platform.
Done register platform.
register acpi io
Warning: could not add USB device host:04a9:1712
Triggered log-dirty buffer switch

Any help is appreciated

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] How to unload the usb modules?, Ruslan Valiyev <=