]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/cxl/events: Add event interrupt support
authorIra Weiny <ira.weiny@intel.com>
Tue, 30 May 2023 13:36:00 +0000 (14:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Jun 2023 22:55:14 +0000 (18:55 -0400)
commit6676bb973ba53d60886b06213ec98fbd736d66a1
tree28911071ca8f35c75b76f7743687b4039bd886ad
parent22d7e3be0714f39bae43bd0c05f6e6d149a47b13
hw/cxl/events: Add event interrupt support

Replace the stubbed out CXL Get/Set Event interrupt policy mailbox
commands.  Enable those commands to control interrupts for each of the
event log types.

Skip the standard input mailbox length on the Set command due to DCD
being optional.  Perform the checks separately.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230530133603.16934-5-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
hw/mem/cxl_type3.c
include/hw/cxl/cxl_device.h
include/hw/cxl/cxl_events.h