Re: [Xen-Users] [ARM]USB passthrough and WiFi access

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [Xen-Users] [ARM]USB passthrough and WiFi access

Vikram K
Hi Juergen,

Thanks for the patch.

1. Currently in Linux kernel 4.14 there is no back-end driver available? Is there any patch available ?

Applied the provided patch on DomU Linux kernel .

Config file has below lines
usbctrl=['type=auto,version=2,ports=2']
usbdev=['hostbus=1, hostaddr=1, controller=0,port=1']


Got below error when tried to run xl command
#xl create -c /etc/xen/linux4.9guest.cfg
Parsing config from /etc/xen/linux4.9guest.cfg
libxl: error: libxl_usb.c:1698:libxl__device_usbdev_add: USB device is not assignable.
libxl: error: libxl_create.c:1461:domcreate_attach_devices: unable to add usbdev devices
[ 3984.764382] xl[3770]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x92000006, in libc-2.24.so[7f8f5ab000+130000]
[ 3984.775891] CPU: 7 PID: 3770 Comm: xl Tainted: G S              4.14.0-rc7 #1
[ 3984.783098] Hardware name: HiKey960 (DT)
[ 3984.787073] task: ffffffc0cd9b7080 task.stack: ffffff800fb08000
[ 3984.793065] PC is at 0x7f8f624a20
[ 3984.796411] LR is at 0x7f8f78c7b0
[ 3984.799819] pc : [<0000007f8f624a20>] lr : [<0000007f8f78c7b0>] pstate: 20000000
[ 3984.807286] sp : 0000007ff8b70d70
[ 3984.810660] x29: 0000007ff8b71c40 x28: 0000007ff8b71318
[ 3984.816041] x27: 0000000000000000 x26: 0000000000000000
[ 3984.821411] x25: 00000000341538f0 x24: 0000007ff8b70de0
[ 3984.826796] x23: 0000007ff8b70ea0 x22: 0000007ff8b70e80
[ 3984.832165] x21: 0000007ff8b70ea0 x20: 0000000000000000
[ 3984.837571] x19: 0000007f8f7e3b48 x18: 0000000000000000
[ 3984.842919] x17: 0000007f8f6249f0 x16: 0000007f8f7e1a18
[ 3984.848301] x15: 0000000000000000 x14: 0000000000000008
[ 3984.853669] x13: 0000007ffbad8001 x12: ffffff80ffffffd0
[ 3984.859056] x11: 0000000000000030 x10: 0101010101010101
[ 3984.864425] x9 : 0000007f88000f00 x8 : 0000000000000000
[ 3984.869809] x7 : 0000000000000000 x6 : 0000007f8f6aff00
[ 3984.875178] x5 : 0000007f88000028 x4 : 00000000ffffffff
[ 3984.880560] x3 : 0000000000000000 x2 : 0000000000000061
[ 3984.885933] x1 : 0000000000000000 x0 : 0000007f8f7cfc88
./lg: line 3:  3770 Segmentation fault  



On Fri, Sep 7, 2018 at 2:22 PM, Juergen Gross <[hidden email]> wrote:
On 07/09/18 08:11, Vikram K wrote:
> Hi,
>
> 1. We are using Hikey960 board.
> 2. Xen version is 4.8
> 3. Linux kernel version is 4.14
>
> We want to add/pass-through USB devices to DomU. From the below link I
> understood that there is no USB back and front driver support in latest
> kernel. But PVUSB support is added to *xl* tools since Xen 4.7. Please
> provide pointers on to achieve USB pass-through and hotplug.
> https://wiki.xenproject.org/wiki/Xen_USB_Passthrough
> <https://wiki.xenproject.org/wiki/Xen_USB_Passthrough>

You will need the Linux PVUSB frontend module, which I haven't had
time to upstream yet. Major blocking point was a lack of documentation
of the Xen pv ring protocol the usb maintainer wanted to see first.

I've attached a fairly recent version of the patches in case you want
to build your own kernel with the driver added.


Juergen



--
Thanks & Regards
Vikram KS

This message contains confidential information and is intended only for the individual(s) named. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this mail and attached file/s is strictly prohibited. Please notify the sender immediately and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.


_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users