xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* PV USB Use Case for Xen 4.x
@ 2012-08-15 17:07 Tom Parker
  2012-08-16  9:25 ` Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Parker @ 2012-08-15 17:07 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1325 bytes --]

Good Afternoon.  My colleague Stefan (sstan) was asked on the IRC
channel to provide our use case for PV USB in our environment.  This is
possible with the current xm stack but not available with the xl stack.

Currently we use PVUSB to attach a USB Smartcard reader through our dom0
(SLES 11 SP1) running on an HP Blade Server with the Token mounted on an
internal USB Port to our domU CA server (SLES 11)

The config file syntax is broken so we have to manually attach (I have
it scripted) whenever our hosts reboot (which is almost never.)

On the dom0 server I have to do the following steps:

*/usr/sbin/xm usb-list-assignable-devices* (get the bus-id of the USB
device)
*/usr/sbin/xm usb-hc-create $Domain 2 2* (Create a USB 2.0 Root Hub with
2 ports in $Domain)
*/usr/sbin/xm usb-attach $Domain $DevId $PortNumber $BusId* (Attach the
USB bus-id found in step 1 to the hub created in step 2)

On the domU the lsusb looks like this after the above (before it returns
nothing)
*
mgaca:~ # lsusb
Bus 001 Device 002: ID 04e6:5116 SCM Microsystems, Inc. SCR331-LC1
SmartCard Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub*

Once I have done this I can use the usb devce in the domU as if it was
directly connected.

Thanks for your time.

Tom Parker
Canadian Bank Note Company, Ltd.
tparker@cbnco.com

[-- Attachment #1.2: Type: text/html, Size: 1893 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-21  6:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 17:07 PV USB Use Case for Xen 4.x Tom Parker
2012-08-16  9:25 ` Ian Campbell
2012-08-16 12:21   ` Pasi Kärkkäinen
2012-08-20 19:48   ` Tom Parker
2012-08-20 20:10     ` Pasi Kärkkäinen
2012-08-21  6:18       ` James Harper

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).