From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: usbpassthrough of xen-4.1.2 update Date: Tue, 25 Sep 2012 10:04:22 -0400 Message-ID: <20120925140421.GA16478@phenom.dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Qian Hu Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Sep 25, 2012 at 11:17:03AM +0800, Qian Hu wrote: > Hi, everyone! The same question with updated message. > > I am working on the USB passthrough of Xen-4.1.2. My host OS is Fedora 14 > and the guest OS is win7. > > According to the wiki page(http://wiki.xen.org/wiki/Xen_USB_Passthrough), > > xen supports passthrough of usb device from dom0 to guests. I have tried > the Xen HVM guest qemu-dm usb1.1 emulation, > > by specifying "usb = 1" and "usbdevice = host:xxxx:yyyy". I have also tried > the command usb_add host:xxxx:yyyy. Do you also re-assign the device from the Linux kernel? Like this: (the C408 0040 is my mouse). cd /sys/bus/usb/drivers/usbhid for a in `ls -1 | grep :` do for DEV in C408 0040 do grep $DEV $a/modalias if [ $? -eq 0 ]; then echo "Unbinding $a for $DEV" echo $a > unbind fi done done This is what the config file looks for me: builder='hvm' memory = 2048 name = "Windows7" vcpus=3 disk = [ 'phy:/dev/vg_guest/Win7_Home,hda,w'] vnc=1 videoram=8 vnclisten="0.0.0.0" vncpasswd='' stdvga=0 serial='pty' tsc_mode=0 usb=1 usb_add="host:045e:0040" usbdevice='tablet' xen_platform_pci=1 # Remember QEMU_AUDIO_DRV=pa soundhw='es1370' pci=['01:00.0','01:00.1','02:00.0']