]> git.proxmox.com Git - mirror_qemu.git/commit
hw/cxl/events: Add injection of DRAM events
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 30 May 2023 13:36:02 +0000 (14:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Jun 2023 22:55:14 +0000 (18:55 -0400)
commitb90a324eda7113b62b558aad43e2166eb52567d2
treed37e3f2835273796756ca65823bdd831a51943be
parentea9b6d647f2f4708708d19ba1cb17d332d3eff06
hw/cxl/events: Add injection of DRAM events

Defined in CXL r3.0 8.2.9.2.1.2 DRAM Event Record, this event
provides information related to DRAM devices.

Example injection command in QMP:

{ "execute": "cxl-inject-dram-event",
    "arguments": {
        "path": "/machine/peripheral/cxl-mem0",
        "log": "informational",
        "flags": 1,
        "dpa": 1000,
        "descriptor": 3,
        "type": 3,
        "transaction-type": 192,
        "channel": 3,
        "rank": 17,
        "nibble-mask": 37421234,
        "bank-group": 7,
        "bank": 11,
        "row": 2,
        "column": 77,
        "correction-mask": [33, 44, 55,66]
    }}

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-7-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