]> git.proxmox.com Git - mirror_qemu.git/commit
hw/cxl/events: Add injection of Memory Module Events
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 30 May 2023 13:36:03 +0000 (14:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 23 Jun 2023 06:54:40 +0000 (02:54 -0400)
commitbafe03083255da3a053144b77a5fbc7dbf9494f3
treee24eae2228858ecd96f1d788a5993ba6da280699
parentb90a324eda7113b62b558aad43e2166eb52567d2
hw/cxl/events: Add injection of Memory Module Events

These events include a copy of the device health information at the
time of the event. Actually using the emulated device health would
require a lot of controls to manipulate that state.  Given the aim
of this injection code is to just test the flows when events occur,
inject the contents of the device health state as well.

Future work may add more sophisticate device health emulation
including direct generation of these records when events occur
(such as a temperature threshold being crossed).  That does not
reduce the usefulness of this more basic generation of the events.

Acked-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230530133603.16934-8-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