From: Tom Parker <tparker@cbnco.com>
To: xen-devel@lists.xen.org
Subject: PV USB Use Case for Xen 4.x
Date: Wed, 15 Aug 2012 13:07:39 -0400 [thread overview]
Message-ID: <502BD75B.9040301@cbnco.com> (raw)
[-- 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
next reply other threads:[~2012-08-15 17:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-15 17:07 Tom Parker [this message]
2012-08-16 9:25 ` PV USB Use Case for Xen 4.x 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=502BD75B.9040301@cbnco.com \
--to=tparker@cbnco.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.