hw/cxl/events: discard all event records during sanitation
authorHyeonggon Yoo <42.hyeyoo@gmail.com>
Fri, 5 Jul 2024 12:06:42 +0000 (13:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 21 Jul 2024 18:31:59 +0000 (14:31 -0400)
commit7d65874ba0ea8cdb2a5ac51c397d721d7d49d828
tree1808b2dbf7cf05ee2932de91bb8108b9d4532efd
parent75b800dd3bd8042503ddd4e8a4169f34349325e2
hw/cxl/events: discard all event records during sanitation

Per CXL r3.1 Section 8.2.9.9.5.1: Sanitize (Opcode 4400h), the
sanitize command should delete all event logs. Introduce
cxl_discard_all_event_logs() and call
this in __do_sanitization().

Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://lore.kernel.org/r/20231222090051.3265307-5-42.hyeyoo@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240705120643.959422-4-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
include/hw/cxl/cxl_device.h