Skip to content

s390x: Dirty cc before executing tested instructions

Janosch Frank kvm linux-s390 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v15 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Moved from spm to tmll (thanks Nina)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib: s390x: sigp: Dirty CC before sigp executionlib/s390x/asm/sigp.h+5 -12 replies
2/5lib: s390x: uv: Dirty CC before uvc executionlib/s390x/asm/uv.h+3 -11 reply
3/5lib: s390x: css: Dirty CC before css instructionslib/s390x/css.h+12 -40 replies
4/5s390x: mvpg: Dirty CC before mvpg executions390x/mvpg.c+4 -20 replies
5/5s390x: sclp: Dirty CC before sclp executions390x/sclp.c+4 -10 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchClaudio Imbrenda
SeriesR-b
1/5
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [kvm-unit-tests PATCH v2 0/5] s390x: Dirty cc before executing tested instructions

A recent s390 KVM fixpatch [1] showed us that checking the cc is not enough when emulation code forgets to set the cc. There might just be the correct cc in the PSW which would make the cc check succeed.

This series intentionally dirties the cc for sigp, uvc, some io instructions and sclp to make cc setting errors more apparent. I had a cursory look through the tested instructions and those are the most prominent ones with defined cc values.

Since the issue appeared in PQAP my AP test series is now dependent on this series.

[1] https://lore.kernel.org/kvm/[email protected]/

v2:
* Moved from spm to tmll (thanks Nina)

Janosch Frank (5):
lib: s390x: sigp: Dirty CC before sigp execution
lib: s390x: uv: Dirty CC before uvc execution
lib: s390x: css: Dirty CC before css instructions
s390x: mvpg: Dirty CC before mvpg execution
s390x: sclp: Dirty CC before sclp execution

 lib/s390x/asm/sigp.h |  6 +++++-
 lib/s390x/asm/uv.h   |  4 +++-
 lib/s390x/css.h      | 16 ++++++++++++----
 s390x/mvpg.c         |  6 ++++--
 s390x/sclp.c         |  5 ++++-
 5 files changed, 28 insertions(+), 9 deletions(-)
Signature · 1 line
2.40.1