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>
This commit is contained in:
Shiju Jose
2026-03-06 10:14:21 +00:00
committed by Michael S. Tsirkin
parent 91beb27a48
commit 37185e2cf1

View 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;
}
}