From 37185e2cf15adfb36ddcee20c444ecccbe26be4d Mon Sep 17 00:00:00 2001 From: Shiju Jose Date: Fri, 6 Mar 2026 10:14:21 +0000 Subject: [PATCH] hw/cxl: Add fixes in Post Package Repair (PPR) 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. Fixes: 5e5a86bab830("hw/cxl: Add support for Maintenance command and Post Package Repair (PPR)") Signed-off-by: Shiju Jose Reviewed-by: Michael S. Tsirkin Reviewed-by: Jonathan Cameron Signed-off-by: Michael S. Tsirkin Message-Id: <20260306101423.986-3-shiju.jose@huawei.com> --- 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 6b16cc206f..20e0b7e476 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; } }