]> git.proxmox.com Git - mirror_qemu.git/commit
hw/cxl/events: Wire up get/clear event mailbox commands
authorIra Weiny <ira.weiny@intel.com>
Tue, 30 May 2023 13:35:59 +0000 (14:35 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Jun 2023 22:55:14 +0000 (18:55 -0400)
commit22d7e3be0714f39bae43bd0c05f6e6d149a47b13
treeb1f4ddd6dcf6f46a911880802084678b4d06b66e
parent2f6b8c8f420d90579b29a96f46630e241dd2c1cc
hw/cxl/events: Wire up get/clear event mailbox commands

CXL testing is benefited from an artificial event log injection
mechanism.

Add an event log infrastructure to insert, get, and clear events from
the various logs available on a device.

Replace the stubbed out CXL Get/Clear Event mailbox commands with
commands that operate on the new infrastructure.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230530133603.16934-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 [new file with mode: 0644]
hw/cxl/cxl-mailbox-utils.c
hw/cxl/meson.build
hw/mem/cxl_type3.c
include/hw/cxl/cxl_device.h
include/hw/cxl/cxl_events.h