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

[Xen-devel] USB Passthrough: Incorrect device detected in Domain U


  • To: "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>
  • From: Rakesh Awanti <rakesh.a@xxxxxxxxxxxxxxx>
  • Date: Thu, 2 Nov 2017 06:57:02 +0000
  • Accept-language: en-US
  • Delivery-date: Thu, 02 Nov 2017 07:24:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99
  • Thread-index: AQHTU6dSFrA3ZvUJeE6sNP0bvcClOQ==
  • Thread-topic: USB Passthrough: Incorrect device detected in Domain U

Hello,

I'm trying USB passthrough on x86 and ARM platforms. I've taken the USB frontend and backend code from 

When I passthrough a certain USB device it shows up in the device list of Dom-u, I've verified this with "xl usb-list Dom-u". When I switch to Dom-u, this USB device does not show up instead a USB device with different address is showing up all the time.

*************************** Dom-0 ******************************
root@salvator-x-xen-dom0:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 005: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Command "xl usbctrl-attach dom-u version=2 ports" is creating USB controller but with the following error.

root@salvator-x-xen-dom0:~# xl usbctrl-attach dom-u version=2 ports=8
[ 2000.019717] rcar_gen3_thermal e61a8000.thermal: Can't register thermal zone
[ 2000.026768] xen-pvusb: urb-ring-ref 0, conn-ring-ref 0, event-channel 7
[ 2000.033565] xen-pvusb: Dom3 provided bogus ring requests (0x720d0d0d - 0x0 = 1913457933). Halting ring processing on dev=0x0
[ 2000.034177] xen-pvusb: urb-ring-ref 0, conn-ring-ref 0, event-channel 7

libxl: error: libxl_device.c:1074:device_backend_callback: unable to add device with path /local/domain/0/backend/vusb/3/0
libxl: error: libxl.c:2009:device_addrm_aocomplete: unable to add vusb with id 0
libxl_device_usbctrl_add failed.

root@salvator-x-xen-dom0:~# xl usbdev-attach Domain hostbus=5 hostaddr=5 
[ 5024.235683] rroot@salvator-x-xen-dom0:~# car_gen3_thermal e61a8000.thermal: Can't register thermal zone

root@salvator-x-xen-dom0:~# 
root@salvator-x-xen-dom0:~# 
root@salvator-x-xen-dom0:~# 
root@salvator-x-xen-dom0:~# xl usb-list dom-u
Devid  Type         BE  state usb-ver ports
0      pv           0   4     2       8    
  Port 1: Bus 005 Device 005
  Port 2:
  Port 3:
  Port 4:
  Port 5:
  Port 6:
  Port 7:
  Port 8:
root@salvator-x-xen-dom0:~# xl console 3

*************************** Dom-U ******************************
[ 3165.172553] vusb vusb-0: Xen USB2.0 Virtual Host Controller
[ 3165.172588] vusb vusb-0: new USB bus registered, assigned bus number 1
[ 3165.173363] hub 1-0:1.0: USB hub found
[ 3165.173401] hub 1-0:1.0: 8 ports detected
 
root@salvator-x-xen-dom0:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I'm not sure why a different USB device is getting attached to domain U. Any help is really appreciated.

Kernel version: 4.6

Xen version: 4.8


Thanks.


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

 


Rackspace

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