]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/cxl: Add fixes in Post Package Repair (PPR)
authorShiju Jose <shiju.jose@huawei.com>
Fri, 6 Mar 2026 10:14:21 +0000 (10:14 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Jun 2026 12:36:42 +0000 (08:36 -0400)
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>

hw/cxl/cxl-mailbox-utils.c

index 6b16cc206f545ab77e0856de6b90c2d508e3cd37..20e0b7e476e36421f0bd80768cbdd16de85ef0dc 100644 (file)
@@ -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;
         }
     }