Re: [Xen-devel] [PATCH] x86/vMSI-X: avoid missing first unmask of vectors

2016-04-25 Thread Jan Beulich
>>> On 25.04.16 at 15:25, wrote: > On Thu, Apr 21, 2016 at 03:38:26AM -0600, Jan Beulich wrote: >> Recent changes to Linux result in there just being a single unmask >> operation prior to expecting the first interrupts to arrive. However, >> we've had a chicken-and-egg problem here: Qemu invokes >

Re: [Xen-devel] [PATCH] x86/vMSI-X: avoid missing first unmask of vectors

2016-04-25 Thread Wei Liu
On Thu, Apr 21, 2016 at 03:38:26AM -0600, Jan Beulich wrote: > Recent changes to Linux result in there just being a single unmask > operation prior to expecting the first interrupts to arrive. However, > we've had a chicken-and-egg problem here: Qemu invokes > xc_domain_update_msi_irq(), ultimately

Re: [Xen-devel] [PATCH] x86/vMSI-X: avoid missing first unmask of vectors

2016-04-21 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 21 April 2016 12:44 > To: Paul Durrant > Cc: Andrew Cooper; Wei Liu; xen-devel; Keir (Xen.org) > Subject: RE: [PATCH] x86/vMSI-X: avoid missing first unmask of vectors > > >>> On 21.04.16 at 13:33, wrote: > >> Fro

Re: [Xen-devel] [PATCH] x86/vMSI-X: avoid missing first unmask of vectors

2016-04-21 Thread Jan Beulich
>>> On 21.04.16 at 13:33, wrote: >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 21 April 2016 10:38 >> --- a/xen/arch/x86/hvm/vmsi.c >> +++ b/xen/arch/x86/hvm/vmsi.c >> @@ -341,7 +352,21 @@ static int msixtbl_range(struct vcpu *v, >> desc = msixtbl_addr_to_desc(msixtbl_find_entry(v,

Re: [Xen-devel] [PATCH] x86/vMSI-X: avoid missing first unmask of vectors

2016-04-21 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 21 April 2016 10:38 > To: xen-devel > Cc: Andrew Cooper; Paul Durrant; Wei Liu; Keir (Xen.org) > Subject: [PATCH] x86/vMSI-X: avoid missing first unmask of vectors > > Recent changes to Linux result in there just b

Re: [Xen-devel] [PATCH] x86/vMSI-X: avoid missing first unmask of vectors

2016-04-21 Thread Jan Beulich
>>> On 21.04.16 at 11:38, wrote: > Recent changes to Linux result in there just being a single unmask > operation prior to expecting the first interrupts to arrive. However, > we've had a chicken-and-egg problem here: Qemu invokes > xc_domain_update_msi_irq(), ultimately leading to > msixtbl_pt_re

[Xen-devel] [PATCH] x86/vMSI-X: avoid missing first unmask of vectors

2016-04-21 Thread Jan Beulich
Recent changes to Linux result in there just being a single unmask operation prior to expecting the first interrupts to arrive. However, we've had a chicken-and-egg problem here: Qemu invokes xc_domain_update_msi_irq(), ultimately leading to msixtbl_pt_register(), upon seeing that first unmask oper