hw/cxl/events: Add event status register
authorIra Weiny <ira.weiny@intel.com>
Tue, 30 May 2023 13:35:57 +0000 (14:35 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Jun 2023 22:55:14 +0000 (18:55 -0400)
commitd7b84ddc3b99ae4dcac052a03817aeeab9d12514
tree6e9d01e454e649ac57bd65fc6b69f9f333e495a3
parent6bda41a69bdcee8ff7dcf75df2f9647ce55908ab
hw/cxl/events: Add event status register

The device status register block was defined.  However, there were no
individual registers nor any data wired up.

Define the event status register [CXL 3.0; 8.2.8.3.1] as part of the
device status register block.  Wire up the register and initialize the
event status for each log.

To support CXL 3.0 the version of the device status register block needs
to be 2.  Change the macro to allow for setting the version.

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-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-device-utils.c
include/hw/cxl/cxl_device.h
include/hw/cxl/cxl_events.h [new file with mode: 0644]