Re: [PATCH 11/19] KVM: PPC: Book3S HV: add support for the XIVE native exploitation mode hcalls

2019-01-25 Thread Benjamin Herrenschmidt
On Tue, 2019-01-22 at 16:23 +1100, Paul Mackerras wrote: > > Which ones of these could be implemented in QEMU? Are there any that > can't possibly be implemented in QEMU because they need to do things > that require calling internal interfaces that userspace doesn't have > access to?

Re: [PATCH 11/19] KVM: PPC: Book3S HV: add support for the XIVE native exploitation mode hcalls

2019-01-25 Thread Benjamin Herrenschmidt
On Wed, 2019-01-23 at 21:26 +1100, Paul Mackerras wrote: > If H_INT_ESB is only used for LSIs, then is a guest going to be using > it at all? *emulated* LSIs, ie LSIs coming from emulated devices. It will depends in practice of what kind of emulated device you put in your guest. We need that

Re: [PATCH 11/19] KVM: PPC: Book3S HV: add support for the XIVE native exploitation mode hcalls

2019-01-23 Thread Cédric Le Goater
On 1/23/19 11:26 AM, Paul Mackerras wrote: > On Wed, Jan 23, 2019 at 09:48:31AM +0100, Cédric Le Goater wrote: >> On 1/23/19 7:44 AM, Benjamin Herrenschmidt wrote: >>> On Tue, 2019-01-22 at 16:23 +1100, Paul Mackerras wrote: Why do we need to provide real-mode versions of these hypercall

Re: [PATCH 11/19] KVM: PPC: Book3S HV: add support for the XIVE native exploitation mode hcalls

2019-01-23 Thread Paul Mackerras
On Wed, Jan 23, 2019 at 09:48:31AM +0100, Cédric Le Goater wrote: > On 1/23/19 7:44 AM, Benjamin Herrenschmidt wrote: > > On Tue, 2019-01-22 at 16:23 +1100, Paul Mackerras wrote: > >> Why do we need to provide real-mode versions of these hypercall > >> handlers? I thought these hypercalls would

Re: [PATCH 11/19] KVM: PPC: Book3S HV: add support for the XIVE native exploitation mode hcalls

2019-01-23 Thread Cédric Le Goater
On 1/23/19 7:44 AM, Benjamin Herrenschmidt wrote: > On Tue, 2019-01-22 at 16:23 +1100, Paul Mackerras wrote: >> >> Which ones of these could be implemented in QEMU? Are there any that >> can't possibly be implemented in QEMU because they need to do things >> that require calling internal

Re: [PATCH 11/19] KVM: PPC: Book3S HV: add support for the XIVE native exploitation mode hcalls

2019-01-21 Thread Paul Mackerras
On Mon, Jan 07, 2019 at 07:43:23PM +0100, Cédric Le Goater wrote: > The XIVE native exploitation mode specs define a set of Hypervisor > calls to configure the sources and the event queues : > > - H_INT_GET_SOURCE_INFO > >used to obtain the address of the MMIO page of the Event State >

[PATCH 11/19] KVM: PPC: Book3S HV: add support for the XIVE native exploitation mode hcalls

2019-01-07 Thread Cédric Le Goater
The XIVE native exploitation mode specs define a set of Hypervisor calls to configure the sources and the event queues : - H_INT_GET_SOURCE_INFO used to obtain the address of the MMIO page of the Event State Buffer (PQ bits) entry associated with the source. - H_INT_SET_SOURCE_CONFIG