Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-12 Thread Cédric Le Goater
On 2/11/19 7:42 AM, Benjamin Herrenschmidt wrote: > On Mon, 2019-02-11 at 13:38 +1100, David Gibson wrote: >> >> 1) All in kernel >> >> The offset always maps directly to guest irq number and the kernel >> somehow binds it either to an IPI or a host irq as necessary. >> Cédric's original code

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-10 Thread Benjamin Herrenschmidt
On Mon, 2019-02-11 at 13:38 +1100, David Gibson wrote: > > 1) All in kernel > > The offset always maps directly to guest irq number and the kernel > somehow binds it either to an IPI or a host irq as necessary. > Cédric's original code attempts this, but the mechanism of keeping a > pointer to

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-10 Thread David Gibson
On Sat, Feb 09, 2019 at 10:41:38AM +0100, Cédric Le Goater wrote: > On 2/8/19 10:53 PM, Paul Mackerras wrote: > > On Fri, Feb 08, 2019 at 08:58:14AM +0100, Cédric Le Goater wrote: > >> On 2/8/19 6:15 AM, David Gibson wrote: > >>> On Thu, Feb 07, 2019 at 10:03:15AM +0100, Cédric Le Goater wrote: >

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-09 Thread Cédric Le Goater
On 2/8/19 10:53 PM, Paul Mackerras wrote: > On Fri, Feb 08, 2019 at 08:58:14AM +0100, Cédric Le Goater wrote: >> On 2/8/19 6:15 AM, David Gibson wrote: >>> On Thu, Feb 07, 2019 at 10:03:15AM +0100, Cédric Le Goater wrote: That's the plan I have in mind as suggested by Paul if I understood it

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-08 Thread Paul Mackerras
On Fri, Feb 08, 2019 at 08:58:14AM +0100, Cédric Le Goater wrote: > On 2/8/19 6:15 AM, David Gibson wrote: > > On Thu, Feb 07, 2019 at 10:03:15AM +0100, Cédric Le Goater wrote: > >> That's the plan I have in mind as suggested by Paul if I understood it > >> well. > >> The mechanics are more

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-07 Thread Cédric Le Goater
On 2/8/19 6:15 AM, David Gibson wrote: > On Thu, Feb 07, 2019 at 10:03:15AM +0100, Cédric Le Goater wrote: >> On 2/7/19 3:49 AM, David Gibson wrote: >>> On Wed, Feb 06, 2019 at 08:21:10AM +0100, Cédric Le Goater wrote: On 2/6/19 2:23 AM, David Gibson wrote: > On Tue, Feb 05, 2019 at

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-07 Thread David Gibson
On Thu, Feb 07, 2019 at 10:03:15AM +0100, Cédric Le Goater wrote: > On 2/7/19 3:49 AM, David Gibson wrote: > > On Wed, Feb 06, 2019 at 08:21:10AM +0100, Cédric Le Goater wrote: > >> On 2/6/19 2:23 AM, David Gibson wrote: > >>> On Tue, Feb 05, 2019 at 01:55:40PM +0100, Cédric Le Goater wrote: >

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-07 Thread Cédric Le Goater
On 2/7/19 3:49 AM, David Gibson wrote: > On Wed, Feb 06, 2019 at 08:21:10AM +0100, Cédric Le Goater wrote: >> On 2/6/19 2:23 AM, David Gibson wrote: >>> On Tue, Feb 05, 2019 at 01:55:40PM +0100, Cédric Le Goater wrote: On 2/5/19 6:28 AM, David Gibson wrote: > On Mon, Feb 04, 2019 at

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-06 Thread David Gibson
On Wed, Feb 06, 2019 at 08:21:10AM +0100, Cédric Le Goater wrote: > On 2/6/19 2:23 AM, David Gibson wrote: > > On Tue, Feb 05, 2019 at 01:55:40PM +0100, Cédric Le Goater wrote: > >> On 2/5/19 6:28 AM, David Gibson wrote: > >>> On Mon, Feb 04, 2019 at 12:30:39PM +0100, Cédric Le Goater wrote: >

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-05 Thread Cédric Le Goater
On 2/6/19 2:23 AM, David Gibson wrote: > On Tue, Feb 05, 2019 at 01:55:40PM +0100, Cédric Le Goater wrote: >> On 2/5/19 6:28 AM, David Gibson wrote: >>> On Mon, Feb 04, 2019 at 12:30:39PM +0100, Cédric Le Goater wrote: On 2/4/19 5:45 AM, David Gibson wrote: > On Mon, Jan 07, 2019 at

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-05 Thread David Gibson
On Tue, Feb 05, 2019 at 01:55:40PM +0100, Cédric Le Goater wrote: > On 2/5/19 6:28 AM, David Gibson wrote: > > On Mon, Feb 04, 2019 at 12:30:39PM +0100, Cédric Le Goater wrote: > >> On 2/4/19 5:45 AM, David Gibson wrote: > >>> On Mon, Jan 07, 2019 at 07:43:18PM +0100, Cédric Le Goater wrote: >

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-05 Thread Cédric Le Goater
On 2/5/19 6:28 AM, David Gibson wrote: > On Mon, Feb 04, 2019 at 12:30:39PM +0100, Cédric Le Goater wrote: >> On 2/4/19 5:45 AM, David Gibson wrote: >>> On Mon, Jan 07, 2019 at 07:43:18PM +0100, Cédric Le Goater wrote: This will let the guest create a memory mapping to expose the ESB MMIO

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-04 Thread David Gibson
On Mon, Feb 04, 2019 at 12:30:39PM +0100, Cédric Le Goater wrote: > On 2/4/19 5:45 AM, David Gibson wrote: > > On Mon, Jan 07, 2019 at 07:43:18PM +0100, Cédric Le Goater wrote: > >> This will let the guest create a memory mapping to expose the ESB MMIO > >> regions used to control the interrupt

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-04 Thread Cédric Le Goater
On 2/4/19 5:45 AM, David Gibson wrote: > On Mon, Jan 07, 2019 at 07:43:18PM +0100, Cédric Le Goater wrote: >> This will let the guest create a memory mapping to expose the ESB MMIO >> regions used to control the interrupt sources, to trigger events, to >> EOI or to turn off the sources. >> >>

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-02-03 Thread David Gibson
On Mon, Jan 07, 2019 at 07:43:18PM +0100, Cédric Le Goater wrote: > This will let the guest create a memory mapping to expose the ESB MMIO > regions used to control the interrupt sources, to trigger events, to > EOI or to turn off the sources. > > Signed-off-by: Cédric Le Goater > --- >

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-01-23 Thread Cédric Le Goater
On 1/22/19 6:09 AM, Paul Mackerras wrote: > On Mon, Jan 07, 2019 at 07:43:18PM +0100, Cédric Le Goater wrote: >> This will let the guest create a memory mapping to expose the ESB MMIO >> regions used to control the interrupt sources, to trigger events, to >> EOI or to turn off the sources. >> >>

Re: [PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-01-21 Thread Paul Mackerras
On Mon, Jan 07, 2019 at 07:43:18PM +0100, Cédric Le Goater wrote: > This will let the guest create a memory mapping to expose the ESB MMIO > regions used to control the interrupt sources, to trigger events, to > EOI or to turn off the sources. > > Signed-off-by: Cédric Le Goater > --- >

[PATCH 06/19] KVM: PPC: Book3S HV: add a GET_ESB_FD control to the XIVE native device

2019-01-07 Thread Cédric Le Goater
This will let the guest create a memory mapping to expose the ESB MMIO regions used to control the interrupt sources, to trigger events, to EOI or to turn off the sources. Signed-off-by: Cédric Le Goater --- arch/powerpc/include/uapi/asm/kvm.h | 4 ++ arch/powerpc/kvm/book3s_xive_native.c |