[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] usbpassthrough of xen-4.1.2 update



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']

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.