Skip to content

hw/cxl: Poison get, inject, clear

Jonathan Cameron linux-cxl qemu-devel 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest4 patches 4 repliesIn review
  2. v74 patches 1 replySuperseded
  3. v64 patches 12 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v56 patches7 repliesSuperseded
v46 patches13 repliesSuperseded
v36 patches5 repliesSuperseded
v2 posting 3/36 patches6 repliesSuperseded
v2 RFC posting 2/33 patches3 repliesSuperseded
v2 RFC posting 1/31 patch0 repliesSuperseded
v1 RFC1 patch2 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bswap: Add the ability to store to an unaligned 24 bit fielddocs/devel/loads-stores.rst include/qemu/bswap.h+27 -01 reply
2/4hw/cxl: QMP based poison injection supporthw/cxl/cxl-mailbox-utils.c hw/mem/cxl_type3.c hw/mem/cxl_type3_stubs.c +3 more+194 -00 replies
3/4hw/cxl: Add poison injection via the mailbox.hw/cxl/cxl-mailbox-utils.c+42 -00 replies
4/4hw/cxl: Add clear poison mailbox command support.hw/cxl/cxl-mailbox-utils.c hw/mem/cxl_type3.c include/hw/cxl/cxl_device.h+120 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchFan NiPhilippe Mathieu-DaudéIra WeinyMarkus Armbruster
1/4R-b R-b
2/4R-b R-b A-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/4] hw/cxl: Poison get, inject, clear

v8: Formatting fixes for QMP docs from Markus Armbruster (thanks!)

The bswap naming discussions seems to have died down, so I'll stick with this version (24)

Precursors now all upstream which make this email easier to write :)

The kernel support for Poison handling is now upstream.

This code has been very useful for testing and helped identify various corner cases.

Updated cover letter.

The series supports:
1) Injection of variable length poison regions via QMP (to fake real memory corruption and ensure we deal with odd overflow corner cases such as clearing the middle of a large region making the list overflow as we go from one long entry to two smaller entries.
2) Read of poison list via the CXL mailbox.
3) Injection via the poison injection mailbox command (limited to 64 byte entries - spec constraint)
4) Clearing of poison injected via either method.

The implementation is meant to be a valid combination of impdef choices based on what the spec allowed. There are a number of places where it could be made more sophisticated that we might consider in future:
* Fusing adjacent poison entries if the types match.
* Separate injection list and main poison list, to test out limits on injected poison list being smaller than the main list.
* Poison list overflow event (needs event log support in general)
* Connecting up to the poison list error record generation (rather complex and not needed for currently kernel handling testing).
* Triggering the synchronous and asynchronous errors that occur on reads and writes of the memory when the host receives poison.

As the kernel code is currently fairly simple, it is likely that the above does not yet matter but who knows what will turn up in future!

Ira Weiny (1):
bswap: Add the ability to store to an unaligned 24 bit field

Jonathan Cameron (3):
hw/cxl: QMP based poison injection support hw/cxl: Add poison injection via the mailbox. hw/cxl: Add clear poison mailbox command support.

 docs/devel/loads-stores.rst |   2 +
 qapi/cxl.json               |  21 ++++
 include/hw/cxl/cxl.h        |   1 +
 include/hw/cxl/cxl_device.h |  21 ++++
 include/qemu/bswap.h        |  25 +++++
 hw/cxl/cxl-mailbox-utils.c  | 214 ++++++++++++++++++++++++++++++++++++
 hw/mem/cxl_type3.c          |  93 ++++++++++++++++
 hw/mem/cxl_type3_stubs.c    |   6 +
 8 files changed, 383 insertions(+)
Signature · 1 line
2.39.2