All of lore.kernel.org
 help / color / mirror / Atom feed
* IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
@ 2024-02-23 16:00 GOURLOT Francois
  2024-02-24 13:37 ` Julien Grall
  0 siblings, 1 reply; 9+ messages in thread
From: GOURLOT Francois @ 2024-02-23 16:00 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org; +Cc: Kelly Choi


[-- Attachment #1.1: Type: text/plain, Size: 2023 bytes --]

Dear All,

We send you a message few days ago.

We have major performance with XEN USB Drivers. We use your driver to load data in a device and we need USB3 High Speed USB protocole

Do you have a new issue of the HCI and NEC USB Xen Driver ?

We hope you will contact us quickly.

Best regards

Program Manager

Thales SIX GTS France

T: +33(0) 1 41 30 26 67
M: +33 (0) 6 85 23 12 30

4 Avenue des Louvresses
92622 Gennevilliers
France






De : LARRIEU Dominique <dominique.larrieu@thalesgroup.com>
Envoyé : jeudi 22 février 2024 13:58
À : xen-devel@lists.xenproject.org
Cc : WILLEMS Louis <louis.willems@thalesgroup.com>; GRUO Nicolas <nicolas-n.gruo@thalesgroup.com>; GOURLOT Francois <francois.gourlot@thalesgroup.com>; Kelly Choi <kelly.choi@cloud.com>
Objet : Need help on USB port virtualization with Xen hypervisor
Critère de diffusion : Confidentiel

Dear all,

We are detecting several issues with USB port virtualization with the Xen hypervisor.
- We cannot do PCI passthrough of the PCI usb bus on a Windows 10 1607 64-bit virtual machine. The bad result is a Windows blue screen.
- When we use the passthrough functionality on a Windows 21H2 virtual machine, we notice that the speed of the USB port is not high speed but full speed on a USB 3.0 port
- We notice instabilities when using the nec-usb-xhci driver,  USB 2.0 keys are not recognized by the Windows virtual machine (incorrect descriptor)

We need your help to find a solution for these problems.

The Software used are :

-        Debian 11 version 5.10.0-20

-        Xen version 4.14

-        Windows 10 1607 and 21H2 for virtual machines. Virtual Machine HVM

Thanks in advance for your help.

Best regards,




Dominique LARRIEU

Cyber Project Manager

Thales


4, avenue des Louvresses
92230 Gennevilliers, France

[cid:image001.png@01D7E1DE.77862BB0]

Retrouvez Thales sur les réseaux sociaux et sur www.thalesgroup.com<https://www.thalesgroup.com/>







[-- Attachment #1.2: Type: text/html, Size: 17745 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 3376 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
  2024-02-23 16:00 IMPORTANT - : Need help on USB port virtualization with Xen hypervisor GOURLOT Francois
@ 2024-02-24 13:37 ` Julien Grall
  2024-02-25 12:19   ` Rob Townley
       [not found]   ` <a46ac2e14fa2410eafc26a37a00a442f@thalesgroup.com>
  0 siblings, 2 replies; 9+ messages in thread
From: Julien Grall @ 2024-02-24 13:37 UTC (permalink / raw)
  To: GOURLOT Francois, xen-devel@lists.xenproject.org
  Cc: Kelly Choi, Jan Beulich, Roger Pau Monné, Andrew Cooper,
	George Dunlap, Jan Beulich, Juergen Gross

Hi Dominique and Francois,

Thank you for the report. I am CCing some person who I think could help.

I also have some questions (see below).

On 23/02/2024 16:00, GOURLOT Francois wrote:
> Dear All,
> 
> We send you a message few days ago.
> 
> We have major performance with XEN USB Drivers. We use your driver to 
> load data in a device and we need USB3 High Speed USB protocole
> 
> Do you have a new issue of the HCI and NEC USB Xen Driver ?

[...]

> *De :*LARRIEU Dominique <dominique.larrieu@thalesgroup.com>
> *Envoyé :* jeudi 22 février 2024 13:58
> *À :* xen-devel@lists.xenproject.org
> *Cc :* WILLEMS Louis <louis.willems@thalesgroup.com>; GRUO Nicolas 
> <nicolas-n.gruo@thalesgroup.com>; GOURLOT Francois 
> <francois.gourlot@thalesgroup.com>; Kelly Choi <kelly.choi@cloud.com>
> *Objet :* Need help on USB port virtualization with Xen hypervisor
> *Critère de diffusion :* Confidentiel
> 
>     Dear all,
> 
>     We are detectingseveral issues with USB port virtualization with the
>     Xen hypervisor.

Just to clarify, you are assigning the PCI USB bus (rather than just the 
USB device) to the guest. Is that correct?

If so...

 >
 > Do you have a new issue of the HCI and NEC USB Xen Driver ?

... I am not sure what Xen driver you are talking about. If the USB bus 
is assigned to the guest, then I would expect no specific Xen driver are 
required. Do you have any pointer to the existing one?

>     - We cannot do PCI passthrough of the PCI usb bus on a Windows 10
>     1607 64-bit virtual machine. The bad result is a Windows blue screen.
> 
>     - When we use the passthrough functionality on a Windows 21H2
>     virtual machine, we notice thatthe speed of the USB port is not high
>     speed but full speed on a USB 3.0 port
> 
>     - We notice instabilities when using the nec-usb-xhci driver,  USB
>     2.0 keys are not recognized by the Windows virtual machine
>     (incorrect descriptor)

Do you have any logs you could share from the guest OS? Also, would you 
be able to share more details on how you configure the guest? (e.g. xl 
configuration, libvirt...)?

> 
>     We needyour helpto find a solution for these problems.
> 
>     The Software used are :

Can you share some details of the HW you are using?

> 
>     -Debian 11 version5.10.0-20
> 
>     -Xen version4.14

Are minor version of Xen 4.14 are you using? Any patches on top?

Xen 4.14 has also been out of support for a few months now. If that's 
possible, I would recommend to try a new Xen version (the last stable is 
4.18) just in case your issue as been fixed in newer release.

> 
>     -Windows 10 1607 and 21H2 for virtual machines. Virtual Machine HVM

Cheers,

-- 
Julien Grall


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
  2024-02-24 13:37 ` Julien Grall
@ 2024-02-25 12:19   ` Rob Townley
  2024-02-26  9:15     ` GOURLOT Francois
       [not found]   ` <a46ac2e14fa2410eafc26a37a00a442f@thalesgroup.com>
  1 sibling, 1 reply; 9+ messages in thread
From: Rob Townley @ 2024-02-25 12:19 UTC (permalink / raw)
  To: Julien Grall
  Cc: Andrew Cooper, GOURLOT Francois, George Dunlap, Jan Beulich,
	Juergen Gross, Kelly Choi, Roger Pau Monné,
	xen-devel@lists.xenproject.org

[-- Attachment #1: Type: text/plain, Size: 4341 bytes --]

In short, purchase an addon PCIe USB card to isolate traffic.  USB is a
shared medium and is rooted in the cheapest electronics.   It was never
considered enterprise grade hardware for most all of history.    The letter
B in  USB  stands for BUS which actually means a shared roadway that other
USB devices can and do impede traffic.   We experienced interfering traffic
on inexpensive laptops running  XEN based Qubes-OS.  Turned out the WiFi
card was actually wired onto the USB bus.   Unplugging all external USB
electronics reduced inexplicable WiFi disconnects and reliably improved
throughput.    However, there was no way to remove the keyboard, touchpad,
and touchscreen which all used the USB roadway.

Those were cheap laptops, but even enterprise class hardware such as HPE
 and Dell Servers running XCP-NG did not have great speeds.   But in this
scenario, we could simplify the problem and  isolate the issue by purchasing
a  new add-on PCIe card with USB ports and then assign the entire PCIe card
to the VM.   The VM would then have entire control of the PCIe card and
isolate traffic to devices plugged into that card.

I did not know until later that Wireshark has plugins for sniffing USB
traffic, but my name is  not Heisenberg and not sure if that traffic
monitoring does not also slow down other devices.

On Sat, Feb 24, 2024 at 8:39 AM Julien Grall <julien@xen.org> wrote:

> Hi Dominique and Francois,
>
> Thank you for the report. I am CCing some person who I think could help.
>
> I also have some questions (see below).
>
> On 23/02/2024 16:00, GOURLOT Francois wrote:
> > Dear All,
> >
> > We send you a message few days ago.
> >
> > We have major performance with XEN USB Drivers. We use your driver to
> > load data in a device and we need USB3 High Speed USB protocole
> >
> > Do you have a new issue of the HCI and NEC USB Xen Driver ?
> p
> [...]
>
> > *De :*LARRIEU Dominique <dominique.larrieu@thalesgroup.com>
> > *Envoyé :* jeudi 22 février 2024 13:58
> > *À :* xen-devel@lists.xenproject.org
> > *Cc :* WILLEMS Louis <louis.willems@thalesgroup.com>; GRUO Nicolas
> > <nicolas-n.gruo@thalesgroup.com>; GOURLOT Francois
> > <francois.gourlot@thalesgroup.com>; Kelly Choi <kelly.choi@cloud.com>
> > *Objet :* Need help on USB port virtualization with Xen hypervisor
> > *Critère de diffusion :* Confidentiel
> >
> >     Dear all,
> >
> >     We are detectingseveral issues with USB port virtualization with the
> >     Xen hypervisor.
>
> Just to clarify, you are assigning the PCI USB bus (rather than just the
> USB device) to the guest. Is that correct?
>
> If so...
>
>  >
>  > Do you have a new issue of the HCI and NEC USB Xen Driver ?
>
> ... I am not sure what Xen driver you are talking about. If the USB bus
> is assigned to the guest, then I would expect no specific Xen driver are
> required. Do you have any pointer to the existing one?
>
> >     - We cannot do PCI passthrough of the PCI usb bus on a Windows 10
> >     1607 64-bit virtual machine. The bad result is a Windows blue screen.
> >
> >     - When we use the passthrough functionality on a Windows 21H2
> >     virtual machine, we notice thatthe speed of the USB port is not high
> >     speed but full speed on a USB 3.0 port
> >
> >     - We notice instabilities when using the nec-usb-xhci driver,  USB
> >     2.0 keys are not recognized by the Windows virtual machine
> >     (incorrect descriptor)
>
> Do you have any logs you could share from the guest OS? Also, would you
> be able to share more details on how you configure the guest? (e.g. xl
> configuration, libvirt...)?
>
> >
> >     We needyour helpto find a solution for these problems.
> >
> >     The Software used are :
>
> Can you share some details of the HW you are using?
>
> >
> >     -Debian 11 version5.10.0-20
> >
> >     -Xen version4.14
>
> Are minor version of Xen 4.14 are you using? Any patches on top?
>
> Xen 4.14 has also been out of support for a few months now. If that's
> possible, I would recommend to try a new Xen version (the last stable is
> 4.18) just in case your issue as been fixed in newer release.
>
> >
> >     -Windows 10 1607 and 21H2 for virtual machines. Virtual Machine HVM
>
> Cheers,
>
> --
> Julien Grall
>
>

[-- Attachment #2: Type: text/html, Size: 7604 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
  2024-02-25 12:19   ` Rob Townley
@ 2024-02-26  9:15     ` GOURLOT Francois
  0 siblings, 0 replies; 9+ messages in thread
From: GOURLOT Francois @ 2024-02-26  9:15 UTC (permalink / raw)
  To: Rob.Townley@gmail.com, Julien Grall
  Cc: Andrew Cooper, George Dunlap, Jan Beulich, Juergen Gross,
	Kelly Choi, Roger Pau Monné, xen-devel@lists.xenproject.org,
	LARRIEU Dominique

[-- Attachment #1: Type: text/plain, Size: 5277 bytes --]

Dear Rob and Julien,

Thank you for your messages.

Dominique and the Thales crew will give you more information quickly.

Best regards

Responsable Programme

Département RAFALE F4
Thales SIX GTS France

T: +33(0) 1 41 30 26 67
M: +33 (0) 6 85 23 12 30

4 Avenue des Louvresses
92622 Gennevilliers
France



De : Rob Townley <rob.townley@gmail.com> De
Envoyé : dimanche 25 février 2024 13:20
À : Julien Grall <julien@xen.org>
Cc : Andrew Cooper <andrew.cooper3@citrix.com>; GOURLOT Francois <francois.gourlot@thalesgroup.com>; George Dunlap <george.dunlap@citrix.com>; Jan Beulich <jbeulich@suse.com>; Juergen Gross <jgross@suse.com>; Kelly Choi <kelly.choi@cloud.com>; Roger Pau Monné <roger.pau@citrix.com>; xen-devel@lists.xenproject.org
Objet : Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor

In short, purchase an addon PCIe USB card to isolate traffic.  USB is a shared medium and is rooted in the cheapest electronics.   It was never considered enterprise grade hardware for most all of history.    The letter B in  USB  stands for BUS which actually means a shared roadway that other USB devices can and do impede traffic.   We experienced interfering traffic on inexpensive laptops running  XEN based Qubes-OS.  Turned out the WiFi card was actually wired onto the USB bus.   Unplugging all external USB electronics reduced inexplicable WiFi disconnects and reliably improved throughput.    However, there was no way to remove the keyboard, touchpad, and touchscreen which all used the USB roadway.

Those were cheap laptops, but even enterprise class hardware such as HPE  and Dell Servers running XCP-NG did not have great speeds.   But in this scenario, we could simplify the problem and  isolate the issue by purchasing a  new add-on PCIe card with USB ports and then assign the entire PCIe card to the VM.   The VM would then have entire control of the PCIe card and isolate traffic to devices plugged into that card.

I did not know until later that Wireshark has plugins for sniffing USB traffic, but my name is  not Heisenberg and not sure if that traffic monitoring does not also slow down other devices.

On Sat, Feb 24, 2024 at 8:39 AM Julien Grall <julien@xen.org<mailto:julien@xen.org>> wrote:
Hi Dominique and Francois,

Thank you for the report. I am CCing some person who I think could help.

I also have some questions (see below).

On 23/02/2024 16:00, GOURLOT Francois wrote:
> Dear All,
>
> We send you a message few days ago.
>
> We have major performance with XEN USB Drivers. We use your driver to
> load data in a device and we need USB3 High Speed USB protocole
>
> Do you have a new issue of the HCI and NEC USB Xen Driver ?
p
[...]

> *De :*LARRIEU Dominique <dominique.larrieu@thalesgroup.com<mailto:dominique.larrieu@thalesgroup.com>>
> *Envoyé :* jeudi 22 février 2024 13:58
> *À :* xen-devel@lists.xenproject.org<mailto:xen-devel@lists.xenproject.org>
> *Cc :* WILLEMS Louis <louis.willems@thalesgroup.com<mailto:louis.willems@thalesgroup.com>>; GRUO Nicolas
> <nicolas-n.gruo@thalesgroup.com<mailto:nicolas-n.gruo@thalesgroup.com>>; GOURLOT Francois
> <francois.gourlot@thalesgroup.com<mailto:francois.gourlot@thalesgroup.com>>; Kelly Choi <kelly.choi@cloud.com<mailto:kelly.choi@cloud.com>>
> *Objet :* Need help on USB port virtualization with Xen hypervisor
> *Critère de diffusion :* Confidentiel
>
>     Dear all,
>
>     We are detectingseveral issues with USB port virtualization with the
>     Xen hypervisor.

Just to clarify, you are assigning the PCI USB bus (rather than just the
USB device) to the guest. Is that correct?

If so...

 >
 > Do you have a new issue of the HCI and NEC USB Xen Driver ?

... I am not sure what Xen driver you are talking about. If the USB bus
is assigned to the guest, then I would expect no specific Xen driver are
required. Do you have any pointer to the existing one?

>     - We cannot do PCI passthrough of the PCI usb bus on a Windows 10
>     1607 64-bit virtual machine. The bad result is a Windows blue screen.
>
>     - When we use the passthrough functionality on a Windows 21H2
>     virtual machine, we notice thatthe speed of the USB port is not high
>     speed but full speed on a USB 3.0 port
>
>     - We notice instabilities when using the nec-usb-xhci driver,  USB
>     2.0 keys are not recognized by the Windows virtual machine
>     (incorrect descriptor)

Do you have any logs you could share from the guest OS? Also, would you
be able to share more details on how you configure the guest? (e.g. xl
configuration, libvirt...)?

>
>     We needyour helpto find a solution for these problems.
>
>     The Software used are :

Can you share some details of the HW you are using?

>
>     -Debian 11 version5.10.0-20
>
>     -Xen version4.14

Are minor version of Xen 4.14 are you using? Any patches on top?

Xen 4.14 has also been out of support for a few months now. If that's
possible, I would recommend to try a new Xen version (the last stable is
4.18) just in case your issue as been fixed in newer release.

>
>     -Windows 10 1607 and 21H2 for virtual machines. Virtual Machine HVM

Cheers,

--
Julien Grall

[-- Attachment #2: Type: text/html, Size: 13555 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
       [not found]       ` <673b2bc630d748e8af0a15d4b553906e@thalesgroup.com>
@ 2024-02-29 10:33         ` LARRIEU Dominique
  2024-02-29 11:51           ` Julien Grall
  0 siblings, 1 reply; 9+ messages in thread
From: LARRIEU Dominique @ 2024-02-29 10:33 UTC (permalink / raw)
  To: Julien Grall
  Cc: GOURLOT Francois, GRUO Nicolas, Cc, Kelly Choi, Jan Beulich,
	Roger Pau Monné, Andrew Cooper, George Dunlap, Jan Beulich,
	Juergen Gross, WILLEMS Louis

[-- Attachment #1: Type: text/plain, Size: 5357 bytes --]

Hi Julien,

Thank you for your quick answer.

You will find below our answers (in red) to your questions.

To summarize our request : what we would like is to use USB 3.0 driver with high speed configuration.
Today, it is not possible to do that.
The driver stay in full speed mode, and more often in USB 1.0 or 2.0 configuration.

Is it possible to configure the XEN USB 3.0 driver with the high speed mode ?
(read in our answers below the reference to the driver)

Best regards,
Dominique




-----Message d'origine-----

De : Julien Grall <julien@xen.org<mailto:julien@xen.org>>

Envoyé : samedi 24 février 2024 14:37

À : GOURLOT Francois <francois.gourlot@thalesgroup.com<mailto:francois.gourlot@thalesgroup.com>>; xen-devel@lists.xenproject.org<mailto:xen-devel@lists.xenproject.org> Cc : Kelly Choi <kelly.choi@cloud.com<mailto:kelly.choi@cloud.com>>; Jan Beulich <jbeulich@suse.com<mailto:jbeulich@suse.com>>; Roger Pau Monné <roger.pau@citrix.com<mailto:roger.pau@citrix.com>>; Andrew Cooper <andrew.cooper3@citrix.com<mailto:andrew.cooper3@citrix.com>>; George Dunlap <george.dunlap@citrix.com<mailto:george.dunlap@citrix.com>>; Jan Beulich <jbeulich@suse.com<mailto:jbeulich@suse.com>>; Juergen Gross <jgross@suse.com<mailto:jgross@suse.com>> Objet : Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor



Hi Dominique and Francois,



Thank you for the report. I am CCing some person who I think could help.



I also have some questions (see below).



On 23/02/2024 16:00, GOURLOT Francois wrote:

> Dear All,

>

> We send you a message few days ago.

>

> We have major performance with XEN USB Drivers. We use your driver to

> load data in a device and we need USB3 High Speed USB protocole

>

> Do you have a new issue of the HCI and NEC USB Xen Driver ?



[...]



> *De :*LARRIEU Dominique <dominique.larrieu@thalesgroup.com<mailto:dominique.larrieu@thalesgroup.com>>

> *Envoyé :* jeudi 22 février 2024 13:58 *À :*

> xen-devel@lists.xenproject.org<mailto:xen-devel@lists.xenproject.org> *Cc :* WILLEMS Louis

> <louis.willems@thalesgroup.com<mailto:louis.willems@thalesgroup.com>>; GRUO Nicolas

> <nicolas-n.gruo@thalesgroup.com<mailto:nicolas-n.gruo@thalesgroup.com>>; GOURLOT Francois

> <francois.gourlot@thalesgroup.com<mailto:francois.gourlot@thalesgroup.com>>; Kelly Choi <kelly.choi@cloud.com<mailto:kelly.choi@cloud.com>>

> *Objet :* Need help on USB port virtualization with Xen hypervisor

> *Critère de diffusion :* Confidentiel

>

>     Dear all,

>

>     We are detecting several issues with USB port virtualization with the

>     Xen hypervisor.



Just to clarify, you are assigning the PCI USB bus (rather than just the USB device) to the guest. Is that correct?



If so...



[Thales] : we are using the USB chipset of the mother board (see below the references)



>

> Do you have a new issue of the HCI and NEC USB Xen Driver ?



... I am not sure what Xen driver you are talking about. If the USB bus is assigned to the guest, then I would expect no specific Xen driver are required. Do you have any pointer to the existing one?



[Thales] : see references to HW and SW below



>     - We cannot do PCI passthrough of the PCI usb bus on a Windows 10

>     1607 64-bit virtual machine. The bad result is a Windows blue screen.

>

>     - When we use the passthrough functionality on a Windows 21H2

>     virtual machine, we notice thatthe speed of the USB port is not high

>     speed but full speed on a USB 3.0 port

>

>     - We notice instabilities when using the nec-usb-xhci driver,  USB

>     2.0 keys are not recognized by the Windows virtual machine

>     (incorrect descriptor)



Do you have any logs you could share from the guest OS? Also, would you be able to share more details on how you configure the guest? (e.g. xl configuration, libvirt...)?



>

>     We needyour helpto find a solution for these problems.

>

>     The Software used are :



Can you share some details of the HW you are using ?



[Thales] : HW :

[Thales] : We are using a GETAC X500 using the Mobile Intel QM175 Chipset

[Thales] : USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)

[Thales] : Subsystem: Mitac 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller



[Thales] : SW :

[Thales] : Kernel driver in use: xhci_hcd

[Thales] : Kernel modules : xhci_pci



>

>     -Debian 11 version5.10.0-20

>

>     -Xen version4.14



Are minor version of Xen 4.14 are you using ? Any patches on top ?



Xen 4.14 has also been out of support for a few months now. If that’s possible, I would recommend to try a new Xen version (the last stable is

4.18) just in case your issue as been fixed in newer release.



[Thales] : we have to use Xen release that are downloaded from the Debian official repository  (requested by our customer)

[Thales] : the last one is version 4.14, but we would like to know if there is one more recent that is compatible with Linux Debian 11 ?



>

>     -Windows 10 1607 and 21H2 for virtual machines. Virtual Machine

> HVM



Cheers,



--

Julien Grall

[-- Attachment #2: Type: text/html, Size: 16334 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
  2024-02-29 10:33         ` LARRIEU Dominique
@ 2024-02-29 11:51           ` Julien Grall
       [not found]             ` <8f2a2bbaf29e41709eeab695efe48f17@thalesgroup.com>
  0 siblings, 1 reply; 9+ messages in thread
From: Julien Grall @ 2024-02-29 11:51 UTC (permalink / raw)
  To: LARRIEU Dominique
  Cc: GOURLOT Francois, GRUO Nicolas, Cc, Kelly Choi, Jan Beulich,
	Roger Pau Monné, Andrew Cooper, George Dunlap, Juergen Gross,
	WILLEMS Louis

Hi Dominique,

On 29/02/2024 10:33, LARRIEU Dominique wrote:
> Thank you for your quick answer.
> 
> You will find below our answers (in red) to your questions.
> 
> To summarize our request : what we would like is to use USB 3.0 driver with high speed configuration.
> Today, it is not possible to do that.
> The driver stay in full speed mode, and more often in USB 1.0 or 2.0 configuration.
> 
> Is it possible to configure the XEN USB 3.0 driver with the high speed mode ?
> (read in our answers below the reference to the driver)

Looking at what you provided below, it is still unclear what you mean by 
"Xen USB 3.0 driver". By any chance, are you confused with the "x" in xhci?

The drivers "xhci_hcd" and "xhci_pci" are generic and not 
provided/maintained by Xen. So far, with the information provided, it is 
unclear whether the problem is actually in the driver itself. I have a 
few more questions. See below.

>>      We are detecting several issues with USB port virtualization with the
> 
>>      Xen hypervisor.
> 
> 
> 
> Just to clarify, you are assigning the PCI USB bus (rather than just the USB device) to the guest. Is that correct?
> 
> 
> 
> If so...
> 
> 
> 
> [Thales] : we are using the USB chipset of the mother board (see below the references)

Thanks for the clarification. IIUC, you said you are having problem in 
the guest itself. Have you tried to access the same USB device from 
dom0? Or better without any Xen involved (i.e. booting Debian on baremetal).

This would help to narrow down the issue.

>>
> 
>>      We needyour helpto find a solution for these problems.
> 
>>
> 
>>      The Software used are :
> 
> 
> 
> Can you share some details of the HW you are using ?
> 
> 
> 
> [Thales] : HW :
> 
> [Thales] : We are using a GETAC X500 using the Mobile Intel QM175 Chipset
> 
> [Thales] : USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
> 
> [Thales] : Subsystem: Mitac 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller
> 
> 
> 
> [Thales] : SW :
> 
> [Thales] : Kernel driver in use: xhci_hcd
> 
> [Thales] : Kernel modules : xhci_pci
> 
> 
> 
>>
> 
>>      -Debian 11 version5.10.0-20

IIUC, before you said you had problem with Windows. So is this the 
software in dom0? Or did you actually try with Debian and still see the 
same issue?

Regarding the configuration, given you are using the official Debian 
package. Are you using 'xl' to create your guest?

The ideal would be if you can paste the full configuration. If you can't 
can you tell us if you are using any of these options: 'pci', 'usbdev', 
'usbctrl'?

[...]

>>      -Xen version4.14
> 
> 
> 
> Are minor version of Xen 4.14 are you using ? Any patches on top ?
> 
> 
> 
> Xen 4.14 has also been out of support for a few months now. If that’s possible, I would recommend to try a new Xen version (the last stable is
> 
> 4.18) just in case your issue as been fixed in newer release.
> 
> 
> 
> [Thales] : we have to use Xen release that are downloaded from the Debian official repository  (requested by our customer)
> 
> [Thales] : the last one is version 4.14, but we would like to know if there is one more recent that is compatible with Linux Debian 11 ?

Newer Xen releases should be compatible with Debian 11. But I am not 
aware of any "official" package for that specific version.

Cheers,

-- 
Julien Grall


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
       [not found]               ` <acf5d91425f34721b496cd49f3883ac9@thalesgroup.com>
@ 2024-03-14 13:52                 ` LARRIEU Dominique
  2024-03-15 23:32                   ` Stefano Stabellini
  0 siblings, 1 reply; 9+ messages in thread
From: LARRIEU Dominique @ 2024-03-14 13:52 UTC (permalink / raw)
  To: Julien Grall
  Cc: GOURLOT Francois, GRUO Nicolas, Cc, Kelly Choi, Jan Beulich,
	Roger Pau Monné, Andrew Cooper, George Dunlap, Juergen Gross,
	WILLEMS Louis

[-- Attachment #1: Type: text/plain, Size: 5884 bytes --]

Hi Julien,



You will find here above the answers to your questions.



Thank you very much for your help.



Best regards,

Dominique







-----Message d'origine-----
De : Julien Grall <julien@xen.org<mailto:julien@xen.org>>
Envoyé : jeudi 29 février 2024 12:52
À : LARRIEU Dominique <dominique.larrieu@thalesgroup.com<mailto:dominique.larrieu@thalesgroup.com>>
Cc : GOURLOT Francois <francois.gourlot@thalesgroup.com<mailto:francois.gourlot@thalesgroup.com>>; GRUO Nicolas <nicolas-n.gruo@thalesgroup.com<mailto:nicolas-n.gruo@thalesgroup.com>>; Cc <xen-devel@lists.xenproject.org<mailto:xen-devel@lists.xenproject.org>>; Kelly Choi <kelly.choi@cloud.com<mailto:kelly.choi@cloud.com>>; Jan Beulich <jbeulich@suse.com<mailto:jbeulich@suse.com>>; Roger Pau Monné <roger.pau@citrix.com<mailto:roger.pau@citrix.com>>; Andrew Cooper <andrew.cooper3@citrix.com<mailto:andrew.cooper3@citrix.com>>; George Dunlap <george.dunlap@citrix.com<mailto:george.dunlap@citrix.com>>; Juergen Gross <jgross@suse.com<mailto:jgross@suse.com>>; WILLEMS Louis <louis.willems@thalesgroup.com<mailto:louis.willems@thalesgroup.com>>
Objet : Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor



Hi Dominique,



On 29/02/2024 10:33, LARRIEU Dominique wrote:

> Thank you for your quick answer.

>

> You will find below our answers (in red) to your questions.

>

> To summarize our request : what we would like is to use USB 3.0 driver with high speed configuration.

> Today, it is not possible to do that.

> The driver stay in full speed mode, and more often in USB 1.0 or 2.0 configuration.

>

> Is it possible to configure the XEN USB 3.0 driver with the high speed mode ?

> (read in our answers below the reference to the driver)



Looking at what you provided below, it is still unclear what you mean by "Xen USB 3.0 driver". By any chance, are you confused with the "x" in xhci?



The drivers "xhci_hcd" and "xhci_pci" are generic and not provided/maintained by Xen. So far, with the information provided, it is unclear whether the problem is actually in the driver itself. I have a few more questions. See below.



>>      We are detecting several issues with USB port virtualization

>> with the

>

>>      Xen hypervisor.

>

>

>

> Just to clarify, you are assigning the PCI USB bus (rather than just the USB device) to the guest. Is that correct?

>

>

>

> If so...

>

>

>

> [Thales] : we are using the USB chipset of the mother board (see below

> the references)



Thanks for the clarification. IIUC, you said you are having problem in the guest itself. Have you tried to access the same USB device from dom0? Or better without any Xen involved (i.e. booting Debian on baremetal).



This would help to narrow down the issue.



[Thales, 14/03/24] We have no difficulty accessing the USB device on the dom0



>>

>

>>      We needyour helpto find a solution for these problems.

>

>>

>

>>      The Software used are :

>

>

>

> Can you share some details of the HW you are using ?

>

>

>

> [Thales] : HW :

>

> [Thales] : We are using a GETAC X500 using the Mobile Intel QM175

> Chipset

>

> [Thales] : USB controller: Intel Corporation 100 Series/C230 Series

> Chipset Family USB 3.0 xHCI Controller (rev 31)

>

> [Thales] : Subsystem: Mitac 100 Series/C230 Series Chipset Family USB

> 3.0 xHCI Controller

>

>

>

> [Thales] : SW :

>

> [Thales] : Kernel driver in use: xhci_hcd

>

> [Thales] : Kernel modules : xhci_pci

>

>

>

>>

>

>>      -Debian 11 version5.10.0-20



IIUC, before you said you had problem with Windows. So is this the software in dom0? Or did you actually try with Debian and still see the same issue?

[Thales, 14/03/24] We are not sure to understand the question. The information we provided to you was the modules on the dom0. The driver which is back on the dom guest Windows: controleur hote ReunesasUSB 3.0 extensible



Regarding the configuration, given you are using the official Debian package. Are you using 'xl' to create your guest?

[Thales, 14/03/24] yes we do



The ideal would be if you can paste the full configuration. If you can't can you tell us if you are using any of these options: 'pci', 'usbdev', 'usbctrl'?

[Thales, 14/03/24]

device_model_args = [ "

                      "-device","nec-usb-xhci,id=xhci",

                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=13",

                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=10",

                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=2",

                      "-device","usb-host,bus=xhci.0,hostbus=2,hostport=2",

                      "-device","usb-host,bus=xhci.0,hostbus=2,hostport=1",

                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=1"]

[end Thales, 14/03/24]



[...]



>>      -Xen version4.14

>

>

>

> Are minor version of Xen 4.14 are you using ? Any patches on top ?

>

>

>

> Xen 4.14 has also been out of support for a few months now. If that’s

> possible, I would recommend to try a new Xen version (the last stable

> is

>

> 4.18) just in case your issue as been fixed in newer release.

>

>

>

> [Thales] : we have to use Xen release that are downloaded from the

> Debian official repository  (requested by our customer)

>

> [Thales] : the last one is version 4.14, but we would like to know if there is one more recent that is compatible with Linux Debian 11 ?



Newer Xen releases should be compatible with Debian 11. But I am not aware of any "official" package for that specific version.



Cheers,



--

Julien Grall

[-- Attachment #2: Type: text/html, Size: 17539 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
  2024-03-14 13:52                 ` LARRIEU Dominique
@ 2024-03-15 23:32                   ` Stefano Stabellini
  2024-03-16  6:38                     ` Jürgen Groß
  0 siblings, 1 reply; 9+ messages in thread
From: Stefano Stabellini @ 2024-03-15 23:32 UTC (permalink / raw)
  To: LARRIEU Dominique
  Cc: Julien Grall, GOURLOT Francois, GRUO Nicolas, Cc, Kelly Choi,
	Jan Beulich, Roger Pau Monné, Andrew Cooper, George Dunlap,
	Juergen Gross, WILLEMS Louis, vikram.garhwal, Edgar.Iglesias,
	sstabellini

[-- Attachment #1: Type: text/plain, Size: 7590 bytes --]

Hi Dominique,

You posted this configuration:

device_model_args = [ "
                      "-device","nec-usb-xhci,id=xhci",
                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=13",
                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=10",
                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=2",
                      "-device","usb-host,bus=xhci.0,hostbus=2,hostport=2",
                      "-device","usb-host,bus=xhci.0,hostbus=2,hostport=1",
                      "-device","usb-host,bus=xhci.0,hostbus=1,hostport=1"]

It looks like you are using QEMU-based USB passthrough. Basically QEMU
(independently from Xen) is accessing the USB device in Dom0 and
exposing a corresponding device to the guest. I am not sure if there is
anything that can be done in QEMU to support USB 3.0 with high speed,
people in CC might know.

There two other alternatives to this approach. You can use PV USB
Passthrough instead. Juergen (CCed) is the original author. I am not
sure if that supports USB 3.0 either.

Finally, you can directly assign the entire USB Controller to the guest
using PCI Passthrough: assign the whole USB Controller, with all the USB
devices connect to it, as a PCI device to the guest. For sure, if this
approach is OK for you, it will lead to the best performance.

Cheers,

Stefano



On Thu, 14 Mar 2024, LARRIEU Dominique wrote:
> Hi Julien,
> 
>  
> 
> You will find here above the answers to your questions.
> 
>  
> 
> Thank you very much for your help.
> 
>  
> 
> Best regards,
> 
> Dominique
> 
>  
> 
>  
> 
>  
> 
> -----Message d'origine-----
> De : Julien Grall <julien@xen.org>
> Envoyé : jeudi 29 février 2024 12:52
> À : LARRIEU Dominique <dominique.larrieu@thalesgroup.com>
> Cc : GOURLOT Francois <francois.gourlot@thalesgroup.com>; GRUO Nicolas <nicolas-n.gruo@thalesgroup.com>; Cc
> <xen-devel@lists.xenproject.org>; Kelly Choi <kelly.choi@cloud.com>; Jan Beulich <jbeulich@suse.com>; Roger Pau Monné
> <roger.pau@citrix.com>; Andrew Cooper <andrew.cooper3@citrix.com>; George Dunlap <george.dunlap@citrix.com>; Juergen Gross
> <jgross@suse.com>; WILLEMS Louis <louis.willems@thalesgroup.com>
> Objet : Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
> 
>  
> 
> Hi Dominique,
> 
>  
> 
> On 29/02/2024 10:33, LARRIEU Dominique wrote:
> 
> > Thank you for your quick answer.
> 
> >
> 
> > You will find below our answers (in red) to your questions.
> 
> >
> 
> > To summarize our request : what we would like is to use USB 3.0 driver with high speed configuration.
> 
> > Today, it is not possible to do that.
> 
> > The driver stay in full speed mode, and more often in USB 1.0 or 2.0 configuration.
> 
> >
> 
> > Is it possible to configure the XEN USB 3.0 driver with the high speed mode ?
> 
> > (read in our answers below the reference to the driver)
> 
>  
> 
> Looking at what you provided below, it is still unclear what you mean by "Xen USB 3.0 driver". By any chance, are you confused with the "x"
> in xhci?
> 
>  
> 
> The drivers "xhci_hcd" and "xhci_pci" are generic and not provided/maintained by Xen. So far, with the information provided, it is unclear
> whether the problem is actually in the driver itself. I have a few more questions. See below.
> 
>  
> 
> >>      We are detecting several issues with USB port virtualization
> 
> >> with the
> 
> >
> 
> >>      Xen hypervisor.
> 
> >
> 
> >
> 
> >
> 
> > Just to clarify, you are assigning the PCI USB bus (rather than just the USB device) to the guest. Is that correct?
> 
> >
> 
> >
> 
> >
> 
> > If so...
> 
> >
> 
> >
> 
> >
> 
> > [Thales] : we are using the USB chipset of the mother board (see below
> 
> > the references)
> 
>  
> 
> Thanks for the clarification. IIUC, you said you are having problem in the guest itself. Have you tried to access the same USB device from
> dom0? Or better without any Xen involved (i.e. booting Debian on baremetal).
> 
>  
> 
> This would help to narrow down the issue.
> 
>  
> 
> [Thales, 14/03/24] We have no difficulty accessing the USB device on the dom0
> 
>  
> 
> >> 
> 
> >
> 
> >>      We needyour helpto find a solution for these problems.
> 
> >
> 
> >> 
> 
> >
> 
> >>      The Software used are :
> 
> >
> 
> >
> 
> >
> 
> > Can you share some details of the HW you are using ?
> 
> >
> 
> >
> 
> >
> 
> > [Thales] : HW :
> 
> >
> 
> > [Thales] : We are using a GETAC X500 using the Mobile Intel QM175
> 
> > Chipset
> 
> >
> 
> > [Thales] : USB controller: Intel Corporation 100 Series/C230 Series
> 
> > Chipset Family USB 3.0 xHCI Controller (rev 31)
> 
> >
> 
> > [Thales] : Subsystem: Mitac 100 Series/C230 Series Chipset Family USB
> 
> > 3.0 xHCI Controller
> 
> >
> 
> >
> 
> >
> 
> > [Thales] : SW :
> 
> >
> 
> > [Thales] : Kernel driver in use: xhci_hcd
> 
> >
> 
> > [Thales] : Kernel modules : xhci_pci
> 
> >
> 
> >
> 
> >
> 
> >> 
> 
> >
> 
> >>      -Debian 11 version5.10.0-20
> 
>  
> 
> IIUC, before you said you had problem with Windows. So is this the software in dom0? Or did you actually try with Debian and still see the
> same issue?
> 
> [Thales, 14/03/24] We are not sure to understand the question. The information we provided to you was the modules on the dom0. The driver
> which is back on the dom guest Windows: controleur hote ReunesasUSB 3.0 extensible
> 
>  
> 
> Regarding the configuration, given you are using the official Debian package. Are you using 'xl' to create your guest?
> 
> [Thales, 14/03/24] yes we do
> 
>  
> 
> The ideal would be if you can paste the full configuration. If you can't can you tell us if you are using any of these options: 'pci',
> 'usbdev', 'usbctrl'?
> 
> [Thales, 14/03/24]
> 
> device_model_args = [ "
> 
>                       "-device","nec-usb-xhci,id=xhci",
> 
>                       "-device","usb-host,bus=xhci.0,hostbus=1,hostport=13",
> 
>                       "-device","usb-host,bus=xhci.0,hostbus=1,hostport=10",
> 
>                       "-device","usb-host,bus=xhci.0,hostbus=1,hostport=2",
> 
>                       "-device","usb-host,bus=xhci.0,hostbus=2,hostport=2",
> 
>                       "-device","usb-host,bus=xhci.0,hostbus=2,hostport=1",
> 
>                       "-device","usb-host,bus=xhci.0,hostbus=1,hostport=1"]
> 
> [end Thales, 14/03/24]
> 
>  
> 
> [...]
> 
>  
> 
> >>      -Xen version4.14
> 
> >
> 
> >
> 
> >
> 
> > Are minor version of Xen 4.14 are you using ? Any patches on top ?
> 
> >
> 
> >
> 
> >
> 
> > Xen 4.14 has also been out of support for a few months now. If that’s
> 
> > possible, I would recommend to try a new Xen version (the last stable
> 
> > is
> 
> >
> 
> > 4.18) just in case your issue as been fixed in newer release.
> 
> >
> 
> >
> 
> >
> 
> > [Thales] : we have to use Xen release that are downloaded from the
> 
> > Debian official repository  (requested by our customer)
> 
> >
> 
> > [Thales] : the last one is version 4.14, but we would like to know if there is one more recent that is compatible with Linux Debian 11 ?
> 
>  
> 
> Newer Xen releases should be compatible with Debian 11. But I am not aware of any "official" package for that specific version.
> 
>  
> 
> Cheers,
> 
>  
> 
> --
> 
> Julien Grall
> 
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: IMPORTANT - : Need help on USB port virtualization with Xen hypervisor
  2024-03-15 23:32                   ` Stefano Stabellini
@ 2024-03-16  6:38                     ` Jürgen Groß
  0 siblings, 0 replies; 9+ messages in thread
From: Jürgen Groß @ 2024-03-16  6:38 UTC (permalink / raw)
  To: Stefano Stabellini, LARRIEU Dominique
  Cc: Julien Grall, GOURLOT Francois, GRUO Nicolas, Cc, Kelly Choi,
	Jan Beulich, Roger Pau Monné, Andrew Cooper, George Dunlap,
	WILLEMS Louis, vikram.garhwal, Edgar.Iglesias

On 16.03.24 00:32, Stefano Stabellini wrote:
> Hi Dominique,
> 
> You posted this configuration:
> 
> device_model_args = [ "
>                        "-device","nec-usb-xhci,id=xhci",
>                        "-device","usb-host,bus=xhci.0,hostbus=1,hostport=13",
>                        "-device","usb-host,bus=xhci.0,hostbus=1,hostport=10",
>                        "-device","usb-host,bus=xhci.0,hostbus=1,hostport=2",
>                        "-device","usb-host,bus=xhci.0,hostbus=2,hostport=2",
>                        "-device","usb-host,bus=xhci.0,hostbus=2,hostport=1",
>                        "-device","usb-host,bus=xhci.0,hostbus=1,hostport=1"]
> 
> It looks like you are using QEMU-based USB passthrough. Basically QEMU
> (independently from Xen) is accessing the USB device in Dom0 and
> exposing a corresponding device to the guest. I am not sure if there is
> anything that can be done in QEMU to support USB 3.0 with high speed,
> people in CC might know.
> 
> There two other alternatives to this approach. You can use PV USB
> Passthrough instead. Juergen (CCed) is the original author. I am not
> sure if that supports USB 3.0 either.

PV USB doesn't support USB 3.0.

Instead of using device_model_args= in the guest configuration I'd rather
use the usbctrl= and usbdev= items (see the related xl.cfg(5) man page).
I'm not sure this will really make a performance difference, though.


Juergen



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-03-16  6:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-23 16:00 IMPORTANT - : Need help on USB port virtualization with Xen hypervisor GOURLOT Francois
2024-02-24 13:37 ` Julien Grall
2024-02-25 12:19   ` Rob Townley
2024-02-26  9:15     ` GOURLOT Francois
     [not found]   ` <a46ac2e14fa2410eafc26a37a00a442f@thalesgroup.com>
     [not found]     ` <427d2ecb865648b7a459c592c208c0be@thalesgroup.com>
     [not found]       ` <673b2bc630d748e8af0a15d4b553906e@thalesgroup.com>
2024-02-29 10:33         ` LARRIEU Dominique
2024-02-29 11:51           ` Julien Grall
     [not found]             ` <8f2a2bbaf29e41709eeab695efe48f17@thalesgroup.com>
     [not found]               ` <acf5d91425f34721b496cd49f3883ac9@thalesgroup.com>
2024-03-14 13:52                 ` LARRIEU Dominique
2024-03-15 23:32                   ` Stefano Stabellini
2024-03-16  6:38                     ` Jürgen Groß

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.