hw/cxl: Add poison injection via the mailbox.
commitff04b207a0525b3f77b6352ce3a2e610b11ea34f
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 26 May 2023 17:00:09 +0000 (26 18:00 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Jun 2023 22:55:14 +0000 (22 18:55 -0400)
tree8f6cc2e536315d0dd9f35e8ba945ae22975a0e7b
parent9547754f40ee5c5e3d1dbed0fbc972caacd075e8
hw/cxl: Add poison injection via the mailbox.

Very simple implementation to allow testing of corresponding
kernel code. Note that for now we track each 64 byte section
independently.  Whilst a valid implementation choice, it may
make sense to fuse entries so as to prove out more complex
corners of the kernel code.

Reviewed-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: <20230526170010.574-4-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-mailbox-utils.c