From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Parker Subject: PV USB Use Case for Xen 4.x Date: Wed, 15 Aug 2012 13:07:39 -0400 Message-ID: <502BD75B.9040301@cbnco.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2452941091161512089==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============2452941091161512089== Content-Type: multipart/alternative; boundary="------------040300040600080202000602" This is a multi-part message in MIME format. --------------040300040600080202000602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------040300040600080202000602 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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
--------------040300040600080202000602-- --===============2452941091161512089== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============2452941091161512089==--