Re: [Qemu-devel] [RFC PATCH v2 11/21] ppc/xive: push the EQ data in OS event queue

2017-09-28 Thread Benjamin Herrenschmidt
On Wed, 2017-09-20 at 16:34 +1000, David Gibson wrote: > > >> +if (GETFIELD(EQ_W6_FORMAT_BIT, eq->w6) == 0) { > > >> +priority = GETFIELD(EQ_W7_F0_PRIORITY, eq->w7); > > >> > > >> +/* The EQ is masked. Can this happen ? */ > > >> +if (priority == 0xff) { > > >> +

Re: [Qemu-devel] [RFC PATCH v2 11/21] ppc/xive: push the EQ data in OS event queue

2017-09-20 Thread David Gibson
On Tue, Sep 19, 2017 at 09:36:08PM +0200, Cédric Le Goater wrote: > On 09/19/2017 09:45 AM, David Gibson wrote: > > On Mon, Sep 11, 2017 at 07:12:25PM +0200, Cédric Le Goater wrote: > >> If a triggered event is let through, the Event Queue data defined in > >> the associated IVE is pushed in the

Re: [Qemu-devel] [RFC PATCH v2 11/21] ppc/xive: push the EQ data in OS event queue

2017-09-19 Thread Cédric Le Goater
On 09/19/2017 09:45 AM, David Gibson wrote: > On Mon, Sep 11, 2017 at 07:12:25PM +0200, Cédric Le Goater wrote: >> If a triggered event is let through, the Event Queue data defined in >> the associated IVE is pushed in the in-memory event queue. The latter >> is a circular buffer provided by the

Re: [Qemu-devel] [RFC PATCH v2 11/21] ppc/xive: push the EQ data in OS event queue

2017-09-19 Thread David Gibson
On Mon, Sep 11, 2017 at 07:12:25PM +0200, Cédric Le Goater wrote: > If a triggered event is let through, the Event Queue data defined in > the associated IVE is pushed in the in-memory event queue. The latter > is a circular buffer provided by the OS using the H_INT_SET_QUEUE_CONFIG > hcall, one

[Qemu-devel] [RFC PATCH v2 11/21] ppc/xive: push the EQ data in OS event queue

2017-09-11 Thread Cédric Le Goater
If a triggered event is let through, the Event Queue data defined in the associated IVE is pushed in the in-memory event queue. The latter is a circular buffer provided by the OS using the H_INT_SET_QUEUE_CONFIG hcall, one per target and priority couple. It is composed of Event Queue entries which