Re: [Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-12-06 Thread Benjamin Herrenschmidt
On Wed, 2017-12-06 at 20:20 +1100, David Gibson wrote: > On Tue, Dec 05, 2017 at 08:50:26AM -0600, Benjamin Herrenschmidt wrote: > > On Tue, 2017-12-05 at 18:00 +1100, David Gibson wrote: > > > > The CPU revision. But we won't introduce XIVE exploitation mode on > > > > anything else than DD2.0

Re: [Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-12-06 Thread David Gibson
On Tue, Dec 05, 2017 at 08:50:26AM -0600, Benjamin Herrenschmidt wrote: > On Tue, 2017-12-05 at 18:00 +1100, David Gibson wrote: > > > The CPU revision. But we won't introduce XIVE exploitation mode on > > > anything else than DD2.0 which has full XIVE support. Even STORE_EOI > > > that we

Re: [Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-12-05 Thread Cédric Le Goater
[ ... ] +static bool priority_is_valid(uint32_t priority) +{ +int i; + +for (i = 0; i < ARRAY_SIZE(reserved_priorities) / 2; i++) { +uint32_t base = reserved_priorities[2 * i]; +uint32_t count = reserved_priorities[2 * i + 1]; +

Re: [Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-12-05 Thread Benjamin Herrenschmidt
On Tue, 2017-12-05 at 18:00 +1100, David Gibson wrote: > > The CPU revision. But we won't introduce XIVE exploitation mode on > > anything else than DD2.0 which has full XIVE support. Even STORE_EOI > > that we should be adding. > > Hrm. Host CPU? That's a problem - if guest visible

Re: [Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-12-05 Thread David Gibson
On Fri, Dec 01, 2017 at 06:46:45PM +0100, Cédric Le Goater wrote: > On 12/01/2017 05:01 AM, David Gibson wrote: > > On Thu, Nov 23, 2017 at 02:29:49PM +0100, Cédric Le Goater wrote: > >> A set of Hypervisor's call are used to configure the interrupt sources > >> and the event/notification queues

Re: [Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-12-01 Thread Cédric Le Goater
On 12/01/2017 05:01 AM, David Gibson wrote: > On Thu, Nov 23, 2017 at 02:29:49PM +0100, Cédric Le Goater wrote: >> A set of Hypervisor's call are used to configure the interrupt sources >> and the event/notification queues of the guest: >> >> - H_INT_GET_SOURCE_INFO >> >>used to obtain the

Re: [Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-12-01 Thread David Gibson
On Thu, Nov 23, 2017 at 02:29:49PM +0100, Cédric Le Goater wrote: > A set of Hypervisor's call are used to configure the interrupt sources > and the event/notification queues of the guest: > > - H_INT_GET_SOURCE_INFO > >used to obtain the address of the MMIO page of the Event State >

[Qemu-devel] [PATCH 19/25] spapr: add hcalls support for the XIVE interrupt mode

2017-11-23 Thread Cédric Le Goater
A set of Hypervisor's call are used to configure the interrupt sources and the event/notification queues of the guest: - 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