Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-12-11 Thread Chao Gao
On Tue, Dec 11, 2018 at 10:03:10AM -0700, Jan Beulich wrote: On 15.11.18 at 02:10, wrote: >> I find some pass-thru devices don't work any more across guest >> reboot. Assigning it to another domain also meets the same issue. And >> the only way to make it work again is un-binding and binding

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-12-11 Thread Jan Beulich
>>> On 15.11.18 at 02:10, wrote: > I find some pass-thru devices don't work any more across guest > reboot. Assigning it to another domain also meets the same issue. And > the only way to make it work again is un-binding and binding it to > pciback. Someone reported this issue one year ago [1]. >

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-19 Thread Chao Gao
On Mon, Nov 19, 2018 at 05:55:08AM -0700, Jan Beulich wrote: On 19.11.18 at 13:45, wrote: >> Another solution came to my mind: >> >> The intention of Xen setting 'host_maskall' is to mask a single vector. How >> about converting the host_maskall to mask all vectors when Xen tries to init

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-19 Thread Jan Beulich
>>> On 19.11.18 at 13:45, wrote: > Another solution came to my mind: > > The intention of Xen setting 'host_maskall' is to mask a single vector. How > about converting the host_maskall to mask all vectors when Xen tries to init > the first vector in msix_capability_init()? Actually, on

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-19 Thread Chao Gao
On Fri, Nov 16, 2018 at 03:30:11PM +0100, Roger Pau Monné wrote: >On Fri, Nov 16, 2018 at 02:59:41AM -0700, Jan Beulich wrote: >> >>> On 16.11.18 at 10:35, wrote: >> > On Fri, Nov 16, 2018 at 03:53:50PM +0800, Chao Gao wrote: >> >> On Thu, Nov 15, 2018 at 11:40:39AM +0100, Roger Pau Monné wrote:

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-19 Thread Jan Beulich
>>> On 16.11.18 at 15:30, wrote: > On Fri, Nov 16, 2018 at 02:59:41AM -0700, Jan Beulich wrote: >> >>> On 16.11.18 at 10:35, wrote: >> > On Fri, Nov 16, 2018 at 03:53:50PM +0800, Chao Gao wrote: >> >> On Thu, Nov 15, 2018 at 11:40:39AM +0100, Roger Pau Monné wrote: >> >> >On Thu, Nov 15, 2018 at

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-16 Thread Roger Pau Monné
On Fri, Nov 16, 2018 at 02:59:41AM -0700, Jan Beulich wrote: > >>> On 16.11.18 at 10:35, wrote: > > On Fri, Nov 16, 2018 at 03:53:50PM +0800, Chao Gao wrote: > >> On Thu, Nov 15, 2018 at 11:40:39AM +0100, Roger Pau Monné wrote: > >> >On Thu, Nov 15, 2018 at 09:10:26AM +0800, Chao Gao wrote: > >>

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-16 Thread Jan Beulich
>>> On 16.11.18 at 10:35, wrote: > On Fri, Nov 16, 2018 at 03:53:50PM +0800, Chao Gao wrote: >> On Thu, Nov 15, 2018 at 11:40:39AM +0100, Roger Pau Monné wrote: >> >On Thu, Nov 15, 2018 at 09:10:26AM +0800, Chao Gao wrote: >> >> +if ( pdev && list_empty(>msi_list) && pdev->msix ) >> >> +{

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-16 Thread Roger Pau Monné
On Fri, Nov 16, 2018 at 03:53:50PM +0800, Chao Gao wrote: > On Thu, Nov 15, 2018 at 11:40:39AM +0100, Roger Pau Monné wrote: > >On Thu, Nov 15, 2018 at 09:10:26AM +0800, Chao Gao wrote: > >> I find some pass-thru devices don't work any more across guest > >> reboot. Assigning it to another domain

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-15 Thread Chao Gao
On Thu, Nov 15, 2018 at 11:40:39AM +0100, Roger Pau Monné wrote: >On Thu, Nov 15, 2018 at 09:10:26AM +0800, Chao Gao wrote: >> I find some pass-thru devices don't work any more across guest >> reboot. Assigning it to another domain also meets the same issue. And >> the only way to make it work

Re: [Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-15 Thread Roger Pau Monné
On Thu, Nov 15, 2018 at 09:10:26AM +0800, Chao Gao wrote: > I find some pass-thru devices don't work any more across guest > reboot. Assigning it to another domain also meets the same issue. And > the only way to make it work again is un-binding and binding it to > pciback. Someone reported this

[Xen-devel] [PATCH v2] xen/pt: fix some pass-thru devices don't work across reboot

2018-11-15 Thread Chao Gao
I find some pass-thru devices don't work any more across guest reboot. Assigning it to another domain also meets the same issue. And the only way to make it work again is un-binding and binding it to pciback. Someone reported this issue one year ago [1]. If the device's driver doesn't disable