From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: PV USB Use Case for Xen 4.x Date: Mon, 20 Aug 2012 23:10:17 +0300 Message-ID: <20120820201017.GZ19851@reaktio.net> References: <502BD75B.9040301@cbnco.com> <1345109102.27489.38.camel@zakaz.uk.xensource.com> <5032949D.5010805@cbnco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5032949D.5010805@cbnco.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tom Parker Cc: Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, Aug 20, 2012 at 03:48:45PM -0400, Tom Parker wrote: > > > >> 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.) > > Can you give an example of what the syntax *should* be? > There used to be some data in the wiki or in an initial presentation on > PVUSB but as it has never worked for me. I don't remember how it worked. > http://wiki.xen.org/wiki/Xen_USB_Passthrough > > > > Do you happen to know if this uses the PVUSB drivers or some other > > mechanism? "lsmod" in both dom0 and domU should provide a clue if the > > drivers are loaded. > Looks like it: > > dom0 > mgaxen1:~ # lsmod | grep usb > usbbk 23503 0 > xenbus_be 3952 4 usbbk,netbk,blkbk,blktap > usbhid 50900 0 > hid 83977 1 usbhid > usbcore 221920 5 usbbk,usbhid,uhci_hcd,ehci_hcd > > domU > mgaca:~ # lsmod | grep usb > usbcore 220777 3 xen_hcd > So this looks like the PVUSB drivers (usbback/usbfront) from xen unmodified_drivers and/or from Suse's xenlinux forward-ported patches. There's also a PVUSB port to pvops kernels, it's available in konrad's git tree. > > > > Does this work for both PV and HVM guests or do you only use one or the > > other? > I only use PV guests. > PVUSB works for both PV and HVM guests. And James Harper's GPLPV Windows drivers contain PVUSB frontend driver for Windows. -- Pasi