Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-03-13 Thread David Gibson
On Tue, Mar 12, 2019 at 04:19:35PM +0100, Cédric Le Goater wrote: > On 2/25/19 3:10 AM, David Gibson wrote: > > On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: > >> The associated HW interrupt source is simply allocated at the OPAL/HW > >> level and then MASKED. KVM only needs to

Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-03-12 Thread Cédric Le Goater
On 2/25/19 3:10 AM, David Gibson wrote: > On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: >> The associated HW interrupt source is simply allocated at the OPAL/HW >> level and then MASKED. KVM only needs to know about its type: LSI or >> MSI. >> >> Signed-off-by: Cédric Le Goater

Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-02-26 Thread David Gibson
On Tue, Feb 26, 2019 at 03:25:15PM +1100, Paul Mackerras wrote: > On Mon, Feb 25, 2019 at 01:10:12PM +1100, David Gibson wrote: > > On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: > > > + /* > > > + * If the source doesn't already have an IPI, allocate > > > + * one and get the

Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-02-25 Thread Paul Mackerras
On Mon, Feb 25, 2019 at 01:10:12PM +1100, David Gibson wrote: > On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: > > + /* > > +* If the source doesn't already have an IPI, allocate > > +* one and get the corresponding data > > +*/ > > + if (!state->ipi_number) { > >

Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-02-24 Thread Paul Mackerras
On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: > The associated HW interrupt source is simply allocated at the OPAL/HW > level and then MASKED. KVM only needs to know about its type: LSI or > MSI. I think it would be helpful to explain to the reader here that with XIVE, all inte

Re: [PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-02-24 Thread David Gibson
On Fri, Feb 22, 2019 at 12:28:28PM +0100, Cédric Le Goater wrote: > The associated HW interrupt source is simply allocated at the OPAL/HW > level and then MASKED. KVM only needs to know about its type: LSI or > MSI. > > Signed-off-by: Cédric Le Goater > --- > arch/powerpc/include/uapi/asm/kvm.h

[PATCH v2 04/16] KVM: PPC: Book3S HV: XIVE: add a control to initialize a source

2019-02-22 Thread Cédric Le Goater
The associated HW interrupt source is simply allocated at the OPAL/HW level and then MASKED. KVM only needs to know about its type: LSI or MSI. Signed-off-by: Cédric Le Goater --- arch/powerpc/include/uapi/asm/kvm.h| 5 + arch/powerpc/kvm/book3s_xive.h | 10 ++ arch/powerp