Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-05-07 Thread Chao Gao
On Mon, May 06, 2019 at 03:39:40AM -0600, Jan Beulich wrote: On 06.05.19 at 06:44, wrote: >> On Thu, May 02, 2019 at 10:20:09AM +0200, Roger Pau Monné wrote: >>>Can you see about avoiding the XEN_DOMCTL_bind_pt_irq call in QEMU if >>>the interrupt is going to be routed over an event channel?

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-05-06 Thread Roger Pau Monné
On Mon, May 06, 2019 at 12:44:41PM +0800, Chao Gao wrote: > On Thu, May 02, 2019 at 10:20:09AM +0200, Roger Pau Monné wrote: > >On Wed, May 01, 2019 at 12:41:13AM +0800, Chao Gao wrote: > >> On Tue, Apr 30, 2019 at 11:30:33AM +0200, Roger Pau Monné wrote: > >> >On Tue, Apr 30, 2019 at 05:01:21PM

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-05-06 Thread Jan Beulich
>>> On 06.05.19 at 06:44, wrote: > On Thu, May 02, 2019 at 10:20:09AM +0200, Roger Pau Monné wrote: >>Can you see about avoiding the XEN_DOMCTL_bind_pt_irq call in QEMU if >>the interrupt is going to be routed over an event channel? > > Yes. It is doable. But it needs changes in both qemu and

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-05-02 Thread Roger Pau Monné
On Tue, Apr 30, 2019 at 05:48:14PM +0100, Andrew Cooper wrote: > On 30/04/2019 17:24, Chao Gao wrote: > > On Tue, Apr 30, 2019 at 11:08:54AM +0200, Roger Pau Monné wrote: > >> On Tue, Apr 30, 2019 at 01:19:19PM +0800, Chao Gao wrote: > >>> When testing with an UP guest with a pass-thru device with

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-05-02 Thread Roger Pau Monné
On Wed, May 01, 2019 at 12:41:13AM +0800, Chao Gao wrote: > On Tue, Apr 30, 2019 at 11:30:33AM +0200, Roger Pau Monné wrote: > >On Tue, Apr 30, 2019 at 05:01:21PM +0800, Chao Gao wrote: > >> On Tue, Apr 30, 2019 at 01:56:31AM -0600, Jan Beulich wrote: > >> On 30.04.19 at 07:19, wrote: > >>

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Andrew Cooper
On 30/04/2019 17:24, Chao Gao wrote: > On Tue, Apr 30, 2019 at 11:08:54AM +0200, Roger Pau Monné wrote: >> On Tue, Apr 30, 2019 at 01:19:19PM +0800, Chao Gao wrote: >>> When testing with an UP guest with a pass-thru device with vt-d pi >>> enabled in host, we observed that guest couldn't receive

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Chao Gao
On Tue, Apr 30, 2019 at 11:30:33AM +0200, Roger Pau Monné wrote: >On Tue, Apr 30, 2019 at 05:01:21PM +0800, Chao Gao wrote: >> On Tue, Apr 30, 2019 at 01:56:31AM -0600, Jan Beulich wrote: >> On 30.04.19 at 07:19, wrote: >> >> When testing with an UP guest with a pass-thru device with vt-d pi

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Chao Gao
On Tue, Apr 30, 2019 at 11:08:54AM +0200, Roger Pau Monné wrote: >On Tue, Apr 30, 2019 at 01:19:19PM +0800, Chao Gao wrote: >> When testing with an UP guest with a pass-thru device with vt-d pi >> enabled in host, we observed that guest couldn't receive interrupts >> from that pass-thru device.

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Jan Beulich
>>> On 30.04.19 at 11:01, wrote: > On Tue, Apr 30, 2019 at 01:56:31AM -0600, Jan Beulich wrote: >>In any event it doesn't look correct to skip migration altogether in >>that case. I'd rather expect it to require getting done differently. >>After all there still is a (CPU, vector) tuple associated

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Roger Pau Monné
On Tue, Apr 30, 2019 at 05:01:21PM +0800, Chao Gao wrote: > On Tue, Apr 30, 2019 at 01:56:31AM -0600, Jan Beulich wrote: > On 30.04.19 at 07:19, wrote: > >> When testing with an UP guest with a pass-thru device with vt-d pi > >> enabled in host, we observed that guest couldn't receive

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Roger Pau Monné
On Tue, Apr 30, 2019 at 01:19:19PM +0800, Chao Gao wrote: > When testing with an UP guest with a pass-thru device with vt-d pi > enabled in host, we observed that guest couldn't receive interrupts > from that pass-thru device. Dumping IRTE, we found the corresponding > IRTE is set to posted format

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Chao Gao
On Tue, Apr 30, 2019 at 01:56:31AM -0600, Jan Beulich wrote: On 30.04.19 at 07:19, wrote: >> When testing with an UP guest with a pass-thru device with vt-d pi >> enabled in host, we observed that guest couldn't receive interrupts >> from that pass-thru device. Dumping IRTE, we found the

Re: [Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-30 Thread Jan Beulich
>>> On 30.04.19 at 07:19, wrote: > When testing with an UP guest with a pass-thru device with vt-d pi > enabled in host, we observed that guest couldn't receive interrupts > from that pass-thru device. Dumping IRTE, we found the corresponding > IRTE is set to posted format with "vector" field as

[Xen-devel] [PATCH] x86/pt: skip setup of posted format IRTE when gvec is 0

2019-04-29 Thread Chao Gao
When testing with an UP guest with a pass-thru device with vt-d pi enabled in host, we observed that guest couldn't receive interrupts from that pass-thru device. Dumping IRTE, we found the corresponding IRTE is set to posted format with "vector" field as 0. We would fall into this issue when