]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/cxl: Create helper function to create DC Event Records from extents
authorAnisa Su <anisa.su@samsung.com>
Mon, 14 Jul 2025 17:45:05 +0000 (18:45 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Jul 2025 06:56:40 +0000 (02:56 -0400)
commit0a362772e0cff8745d0bda73757ba4c7cfbbc841
tree46c3831ee1682867c99c94d06ef9e0afb1f88403
parent21af9a917eca69996891dcbb93edcb6c5c53e52c
hw/cxl: Create helper function to create DC Event Records from extents

Prepatory patch for following FMAPI Add/Release Patches. Refactors part
of qmp_cxl_process_dynamic_capacity_prescriptive() into a helper
function to create DC Event Records and insert in the event log.

Moves definition for CXL_NUM_EXTENTS_SUPPORTED to cxl.h so it can be
accessed by cxl-mailbox-utils.c and cxl-events.c, where the helper
function is defined.

Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Anisa Su <anisa.su@samsung.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20250714174509.1984430-10-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-events.c
hw/cxl/cxl-mailbox-utils.c
hw/mem/cxl_type3.c
include/hw/cxl/cxl.h
include/hw/cxl/cxl_device.h