Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-26 Thread Chao Gao
On Tue, Aug 27, 2019 at 12:17:28AM +0300, Pasi Kärkkäinen wrote: >Hi Chao, > >On Fri, Aug 09, 2019 at 04:38:33PM +0800, Chao Gao wrote: >> Hi everyone, >> >> I have a device which only supports secondary bus reset. After being >> assigned to a VM, it would be placed under host bridge. For devices

Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-26 Thread Pasi Kärkkäinen
Hi Chao, On Fri, Aug 09, 2019 at 04:38:33PM +0800, Chao Gao wrote: > Hi everyone, > > I have a device which only supports secondary bus reset. After being > assigned to a VM, it would be placed under host bridge. For devices > under host bridge, secondary bus reset is not applicable. Thus, a VM >

Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-09 Thread Chao Gao
On Fri, Aug 09, 2019 at 03:23:59PM +0200, Jan Beulich wrote: >On 09.08.2019 15:24, Chao Gao wrote: >>On Fri, Aug 09, 2019 at 10:49:32AM +0200, Jan Beulich wrote: >>>On 09.08.2019 10:38, Chao Gao wrote: Alternatively, emulating FLR (Function Level Reset) capability for this device might be a

Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-09 Thread Chao Gao
On Fri, Aug 09, 2019 at 02:42:09PM +0200, Roger Pau Monné wrote: >On Fri, Aug 09, 2019 at 04:38:33PM +0800, Chao Gao wrote: >> Hi everyone, >> >> I have a device which only supports secondary bus reset. After being >> assigned to a VM, it would be placed under host bridge. For devices >> under hos

Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-09 Thread Jan Beulich
On 09.08.2019 15:24, Chao Gao wrote: On Fri, Aug 09, 2019 at 10:49:32AM +0200, Jan Beulich wrote: On 09.08.2019 10:38, Chao Gao wrote: Alternatively, emulating FLR (Function Level Reset) capability for this device might be a feasible way and only needs relatively few changes. I am planning to e

Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-09 Thread Chao Gao
On Fri, Aug 09, 2019 at 10:49:32AM +0200, Jan Beulich wrote: >On 09.08.2019 10:38, Chao Gao wrote: >>I have a device which only supports secondary bus reset. After being >>assigned to a VM, it would be placed under host bridge. For devices >>under host bridge, secondary bus reset is not applicable.

Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-09 Thread Roger Pau Monné
On Fri, Aug 09, 2019 at 04:38:33PM +0800, Chao Gao wrote: > Hi everyone, > > I have a device which only supports secondary bus reset. After being > assigned to a VM, it would be placed under host bridge. For devices > under host bridge, secondary bus reset is not applicable. Thus, a VM > has no wa

Re: [Xen-devel] Reset pass-thru devices in a VM

2019-08-09 Thread Jan Beulich
On 09.08.2019 10:38, Chao Gao wrote: I have a device which only supports secondary bus reset. After being assigned to a VM, it would be placed under host bridge. For devices under host bridge, secondary bus reset is not applicable. Thus, a VM has no way to reset this device. This device's usage

[Xen-devel] Reset pass-thru devices in a VM

2019-08-09 Thread Chao Gao
Hi everyone, I have a device which only supports secondary bus reset. After being assigned to a VM, it would be placed under host bridge. For devices under host bridge, secondary bus reset is not applicable. Thus, a VM has no way to reset this device. This device's usage would be limited without