[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 08/13] hw/cxl/cxl-mailbox-utils: Add mailbox commands to s
From: |
Jonathan Cameron |
Subject: |
Re: [PATCH v5 08/13] hw/cxl/cxl-mailbox-utils: Add mailbox commands to support add/release dynamic capacity response |
Date: |
Thu, 7 Mar 2024 12:30:44 +0000 |
> > > +static void cxl_destroy_dc_regions(CXLType3Dev *ct3d)
> > > +{
> > > + CXLDCExtent *ent;
> > > +
> > > + while (!QTAILQ_EMPTY(&ct3d->dc.extents)) {
> > > + ent = QTAILQ_FIRST(&ct3d->dc.extents);
> > > + cxl_remove_extent_from_extent_list(&ct3d->dc.extents, ent);
> >
> > Isn't this same a something like.
> > QTAILQ_FOREACH_SAFE(ent, &ct3d->dc.extents, node)) {
> > cxl_remove_extent_from_extent_list(&ct3d->dc.extents, ent);
> > //This wrapper is small enough I'd be tempted to just have the
> > //code inline at the places it's called.
> >
> We will have more to release after we introduce pending list as well as
> bitmap. Keep it?
ok.
>
> Fan
>
> > }
> > > + }
> > > +}
> >
[PATCH v5 08/13] hw/cxl/cxl-mailbox-utils: Add mailbox commands to support add/release dynamic capacity response, nifan . cxl, 2024/03/04
[PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, nifan . cxl, 2024/03/04
- Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, Jonathan Cameron, 2024/03/06
- Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, fan, 2024/03/06
- Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, Jonathan Cameron, 2024/03/07
- Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, fan, 2024/03/08
- Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, Jonathan Cameron, 2024/03/12
- Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, fan, 2024/03/12
Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, fan, 2024/03/06
Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents, Jonathan Cameron, 2024/03/07
[PATCH v5 10/13] hw/mem/cxl_type3: Add dpa range validation for accesses to DC regions, nifan . cxl, 2024/03/04