@samitouri / QOSamiQemu / commits / 37185e2cf1

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 <shiju.jose@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20260306101423.986-3-shiju.jose@huawei.com>

Shiju Jose committed Mar 6, 2026 at 10:14 UTC 37185e2cf15adfb36ddcee20c444ecccbe26be4d
1 file changed +2
hw/cxl/cxl-mailbox-utils.c
+2
@@ -2068,6 +2068,8 @@ static void cxl_perform_ppr(CXLType3Dev *ct3d, uint64_t dpa)
2068 CXL_MEMDEV_MAINT_SUBCLASS_CACHELINE_SPARING,
2069 ent, NULL);
2070 }
2071 + QLIST_REMOVE(ent, node);
2072 + g_free(ent);
2073 break;
2074 }
2075 }