Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-07 Thread Cédric Le Goater
>> With the dual mode, the interrupt mode >> is negotiated at CAS time and when merged, the KVM device will be created >> at reset. In case of failure, QEMU will abort. >> >> I am not saying it is not possible but we will need some internal >> infrastructure to handle dynamically the fall back

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-07 Thread David Gibson
On Thu, Feb 07, 2019 at 09:31:06AM +0100, Cédric Le Goater wrote: > On 2/7/19 3:51 AM, David Gibson wrote: > > On Wed, Feb 06, 2019 at 08:35:24AM +0100, Cédric Le Goater wrote: > >> On 2/6/19 2:18 AM, David Gibson wrote: > >>> On Wed, Feb 06, 2019 at 09:13:15AM +1100, Paul Mackerras wrote: > O

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-07 Thread Cédric Le Goater
On 2/7/19 3:51 AM, David Gibson wrote: > On Wed, Feb 06, 2019 at 08:35:24AM +0100, Cédric Le Goater wrote: >> On 2/6/19 2:18 AM, David Gibson wrote: >>> On Wed, Feb 06, 2019 at 09:13:15AM +1100, Paul Mackerras wrote: On Tue, Feb 05, 2019 at 12:31:28PM +0100, Cédric Le Goater wrote: As

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-06 Thread David Gibson
On Wed, Feb 06, 2019 at 08:35:24AM +0100, Cédric Le Goater wrote: > On 2/6/19 2:18 AM, David Gibson wrote: > > On Wed, Feb 06, 2019 at 09:13:15AM +1100, Paul Mackerras wrote: > >> On Tue, Feb 05, 2019 at 12:31:28PM +0100, Cédric Le Goater wrote: > >> As for nesting, I suggest for the foreseeabl

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-05 Thread Cédric Le Goater
On 2/6/19 2:18 AM, David Gibson wrote: > On Wed, Feb 06, 2019 at 09:13:15AM +1100, Paul Mackerras wrote: >> On Tue, Feb 05, 2019 at 12:31:28PM +0100, Cédric Le Goater wrote: >> As for nesting, I suggest for the foreseeable future we stick to XICS >> emulation in nested guests. > > o

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-05 Thread David Gibson
On Wed, Feb 06, 2019 at 09:13:15AM +1100, Paul Mackerras wrote: > On Tue, Feb 05, 2019 at 12:31:28PM +0100, Cédric Le Goater wrote: > > >>> As for nesting, I suggest for the foreseeable future we stick to XICS > > >>> emulation in nested guests. > > >> > > >> ok. so no kernel_irqchip at all. hmm.

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-05 Thread Paul Mackerras
On Tue, Feb 05, 2019 at 12:31:28PM +0100, Cédric Le Goater wrote: > >>> As for nesting, I suggest for the foreseeable future we stick to XICS > >>> emulation in nested guests. > >> > >> ok. so no kernel_irqchip at all. hmm. > > I was confused with what Paul calls 'XICS emulation'. It's not the QE

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-05 Thread Cédric Le Goater
>>> As for nesting, I suggest for the foreseeable future we stick to XICS >>> emulation in nested guests. >> >> ok. so no kernel_irqchip at all. hmm. I was confused with what Paul calls 'XICS emulation'. It's not the QEMU XICS emulated device but the XICS-over-XIVE KVM device, the KVM XICS devic

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-02-03 Thread David Gibson
On Sat, Jan 26, 2019 at 09:25:04AM +0100, Cédric Le Goater wrote: > Was there a crashing.org shutdown ? > > Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) > by in5.mail.ovh.net (Postfix) with ESMTPS id 43mYnj0nrlz1N7KC > for ; Fri, 25 Jan 2019 22:38:00 + (UTC

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-30 Thread Cédric Le Goater
On 1/30/19 6:40 AM, Paul Mackerras wrote: > On Tue, Jan 29, 2019 at 02:51:05PM +0100, Cédric Le Goater wrote: > Another general comment is that you seem to have written all this > code assuming we are using HV KVM in a host running bare-metal. Yes. I didn't look at the other confi

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-29 Thread Paul Mackerras
On Tue, Jan 29, 2019 at 02:51:05PM +0100, Cédric Le Goater wrote: > >>> Another general comment is that you seem to have written all this > >>> code assuming we are using HV KVM in a host running bare-metal. > >> > >> Yes. I didn't look at the other configurations. I thought that we could > >> use

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-29 Thread Cédric Le Goater
>>> Another general comment is that you seem to have written all this >>> code assuming we are using HV KVM in a host running bare-metal. >> >> Yes. I didn't look at the other configurations. I thought that we could >> use the kernel_irqchip=off option to begin with. A couple of checks >> are indee

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-27 Thread Paul Mackerras
On Wed, Jan 23, 2019 at 08:07:33PM +0100, Cédric Le Goater wrote: > On 1/22/19 5:46 AM, Paul Mackerras wrote: > > On Mon, Jan 07, 2019 at 07:43:12PM +0100, Cédric Le Goater wrote: > >> Hello, > >> > >> On the POWER9 processor, the XIVE interrupt controller can control > >> interrupt sources using M

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-26 Thread Cédric Le Goater
Was there a crashing.org shutdown ? Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by in5.mail.ovh.net (Postfix) with ESMTPS id 43mYnj0nrlz1N7KC for ; Fri, 25 Jan 2019 22:38:00 + (UTC) Received: from localhost (localhost.localdomain [127.0.0.1])

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-25 Thread Benjamin Herrenschmidt
On Wed, 2019-01-23 at 20:07 +0100, Cédric Le Goater wrote: > Event Assignment Structure, a.k.a IVE (Interrupt Virtualization Entry) > > All the names changed somewhere between XIVE v1 and XIVE v2. OPAL and > Linux should be adjusted ... All the names changed between the HW design and the "archit

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-23 Thread Cédric Le Goater
On 1/22/19 5:46 AM, Paul Mackerras wrote: > On Mon, Jan 07, 2019 at 07:43:12PM +0100, Cédric Le Goater wrote: >> Hello, >> >> On the POWER9 processor, the XIVE interrupt controller can control >> interrupt sources using MMIO to trigger events, to EOI or to turn off >> the sources. Priority manageme

Re: [PATCH 00/19] KVM: PPC: Book3S HV: add XIVE native exploitation mode

2019-01-21 Thread Paul Mackerras
On Mon, Jan 07, 2019 at 07:43:12PM +0100, Cédric Le Goater wrote: > Hello, > > On the POWER9 processor, the XIVE interrupt controller can control > interrupt sources using MMIO to trigger events, to EOI or to turn off > the sources. Priority management and interrupt acknowledgment is also > contro