[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook
From: |
David Gibson |
Subject: |
Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook |
Date: |
Sun, 29 Sep 2019 19:34:38 +1000 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
On Fri, Sep 27, 2019 at 04:12:40PM +0200, Greg Kurz wrote:
> On Thu, 26 Sep 2019 17:39:37 +0200
> Greg Kurz <address@hidden> wrote:
>
> > On Wed, 25 Sep 2019 16:45:34 +1000
> > David Gibson <address@hidden> wrote:
> >
> > > This method is used to set up the interrupt backends for the current
> > > configuration. However, this means some confusing redirection between
> > > the "dual" mode init and the init hooks for xics only and xive only modes.
> > >
> > > Since we now have simple flags indicating whether XICS and/or XIVE are
> > > supported, it's easier to just open code each initialization directly in
> > > spapr_irq_init(). This will also make some future cleanups simpler.
> > >
> > > Signed-off-by: David Gibson <address@hidden>
> > > ---
> >
> > Reviewed-by: Greg Kurz <address@hidden>
> >
>
> Just one nit...
>
> > > hw/ppc/spapr_irq.c | 138 ++++++++++++++++--------------------
> > > include/hw/ppc/spapr_irq.h | 1 -
> > > include/hw/ppc/xics_spapr.h | 1 +
> [...]
> > > diff --git a/include/hw/ppc/xics_spapr.h b/include/hw/ppc/xics_spapr.h
> > > index 691a6d00f7..267984a97b 100644
> > > --- a/include/hw/ppc/xics_spapr.h
> > > +++ b/include/hw/ppc/xics_spapr.h
> > > @@ -34,6 +34,7 @@
> > > #define TYPE_ICS_SPAPR "ics-spapr"
> > > #define ICS_SPAPR(obj) OBJECT_CHECK(ICSState, (obj), TYPE_ICS_SPAPR)
> > >
> > > +void ics_spapr_create(SpaprMachineState *spapr, int nr_xirqs, Error
> > > **errp);
>
> ... this looks like a leftover.
Oops, yes, fixed.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, (continued)
- [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, David Gibson, 2019/09/25
- Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, Cédric Le Goater, 2019/09/25
- Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, David Gibson, 2019/09/25
- Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, Cédric Le Goater, 2019/09/26
- Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, David Gibson, 2019/09/26
- Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, Greg Kurz, 2019/09/26
- Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, David Gibson, 2019/09/27
- Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, Greg Kurz, 2019/09/27
Re: [PATCH 20/20] spapr: Eliminate SpaprIrq::init hook, Greg Kurz, 2019/09/26
[PATCH 13/20] spapr: Eliminate SpaprIrq:get_nodename method, David Gibson, 2019/09/25
[PATCH 18/20] xive: Improve irq claim/free path, David Gibson, 2019/09/25
[PATCH 17/20] spapr: Remove unused return value in claim path, David Gibson, 2019/09/25