hw/cxl/events: Add injection of General Media Events
authorIra Weiny <ira.weiny@intel.com>
Tue, 30 May 2023 13:36:01 +0000 (14:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Jun 2023 22:55:14 +0000 (18:55 -0400)
commitea9b6d647f2f4708708d19ba1cb17d332d3eff06
tree02f69599565e8605e143cb8fb7e256e496f23499
parent6676bb973ba53d60886b06213ec98fbd736d66a1
hw/cxl/events: Add injection of General Media Events

To facilitate testing provide a QMP command to inject a general media
event.  The event can be added to the log specified.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230530133603.16934-6-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mem/cxl_type3.c
hw/mem/cxl_type3_stubs.c
include/hw/cxl/cxl_events.h
qapi/cxl.json