[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dy
From: |
Jonathan Cameron |
Subject: |
Re: [PATCH v5 09/13] hw/cxl/events: Add qmp interfaces to add/release dynamic capacity extents |
Date: |
Thu, 7 Mar 2024 12:47:04 +0000 |
> >
> > > + * remove it from the pending extent list, so later when the
> > > add
> > > + * response for the extent arrives, the device can reject the
> > > + * extent as it is not in the pending list.
> > > + */
> > > + ent = cxl_dc_extent_exists(&dcd->dc.extents_pending_to_add,
> > > + &extents[i]);
> > > + if (ent) {
> > > + QTAILQ_REMOVE(&dcd->dc.extents_pending_to_add, ent,
> > > node);
> > > + g_free(ent);
> > > + skip_extent = true;
> > > + } else if (!cxl_dc_extent_exists(&dcd->dc.extents,
> > > &extents[i])) {
> > > + /* If the exact extent is not in the accepted list, skip
> > > */
> > > + skip_extent = true;
> > > + }
> > I think we need to reject case of some extents skipped and others not.
> > That's not supported yet so we need to complain if we get it at least.
> > Maybe we need
> > to do two passes so we know this has happened early (or perhaps this is a
> > later
> > patch in which case a todo here would help).
>
> If the second skip_extent case, I will reject earlier instead of
> skipping.
That was me misunderstanding the flow. I think this is fine as you have it
already.
Jonathan
- Re: [PATCH v5 08/13] hw/cxl/cxl-mailbox-utils: Add mailbox commands to support add/release dynamic capacity response, (continued)
[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 <=
[PATCH v5 10/13] hw/mem/cxl_type3: Add dpa range validation for accesses to DC regions, nifan . cxl, 2024/03/04
[PATCH v5 11/13] hw/cxl/cxl-mailbox-utils: Add partial and superset extent release mailbox support, nifan . cxl, 2024/03/04
[PATCH v5 12/13] hw/mem/cxl_type3: Allow to release partial extent and extent superset in QMP interface, nifan . cxl, 2024/03/04
[PATCH v5 13/13] qapi/cxl.json: Add QMP interfaces to print out accepted and pending DC extents, nifan . cxl, 2024/03/04