Virtualization of USB interfaces

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Virtualization of USB interfaces

1,304 次查看
david_gounaris
Contributor IV

Hello, I have a question regarding virtualization of usbh1 and usbotg1 using Xen on imx8qm.

In the provided device-tree fsl-imx8qm-device.dtsi, the referenced usbphy (usbphy1 and usbphynop2) for the two controllers (usbh1 and usbotg1) share the same clock and power-domain.

Is it possible to use usbh1 in dom0 and usbotg1 in domu?

Could you please provide an example of how this could be done?

0 项奖励
回复
4 回复数

1,291 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello david,

 

There are two general methods for passing through individual host devices to a guest. The first is via an emulated USB device controller; the second is PVUSB.

more information: https://wiki.xenproject.org/wiki/Xen_USB_Passthrough

Regards

 

0 项奖励
回复

1,283 次查看
david_gounaris
Contributor IV

Thank you for your reply.

I have followed the examples in fsl-imx8qm-mek-dom0.dts and fsl-imx8qm-mek-domu.dts to pass-through other devices to domu. This has worked as expected, but not for usbh1 and usbotg1. I think it is a problem that they share the same clock and power-domain. Can you check if possible to split them into the two domains?

I consider Emulated USB and PVUSB as an alternative if the above method is not possible.


Best Regards / David

0 项奖励
回复

1,275 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi

To change the clock in different domain it not possible, sorry.

 

Regards

 

0 项奖励
回复

1,245 次查看
david_gounaris
Contributor IV

The response is a bit unclear to me. Is it not possible to share the clock between two domains? Is the preferred method in this case to use pvusb?

Best Regards / David Gounaris

0 项奖励
回复