From: Shiju Jose <[email protected]> Add following fixes to the commit: hw/cxl: Add support for Maintenance command and Post Package Repair (PPR).
In cxl_perform_ppr(), remove and free the maintenance entry from QLIST if match is found and PPR operation is performed. Signed-off-by: Shiju Jose <[email protected]> --- hw/cxl/cxl-mailbox-utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/cxl/cxl-mailbox-utils.c b/hw/cxl/cxl-mailbox-utils.c index 9c99422cd4..66a58396ee 100644 --- a/hw/cxl/cxl-mailbox-utils.c +++ b/hw/cxl/cxl-mailbox-utils.c @@ -2068,6 +2068,8 @@ static void cxl_perform_ppr(CXLType3Dev *ct3d, uint64_t dpa) CXL_MEMDEV_MAINT_SUBCLASS_CACHELINE_SPARING, ent, NULL); } + QLIST_REMOVE(ent, node); + g_free(ent); break; } } -- 2.43.0
