kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 0/2] s390x: diag10: Fixup
@ 2025-05-28  9:13 Janosch Frank
  2025-05-28  9:13 ` [kvm-unit-tests PATCH 1/2] s390x: diag10: Fence tcg and pv environments Janosch Frank
  2025-05-28  9:13 ` [kvm-unit-tests PATCH 2/2] s390x: diag10: Check page clear Janosch Frank
  0 siblings, 2 replies; 11+ messages in thread
From: Janosch Frank @ 2025-05-28  9:13 UTC (permalink / raw)
  To: kvm; +Cc: linux-s390, imbrenda, thuth, david, nrb

While reviewing Claudio's patch set I found a problem that should've
been caught by the diag10 test but wasn't.

Not only does the test never check the good case but it also doesn't
fence against environments where diag10 is not available. The part
that makes this problematic is the fact that this test only tests priv
and spec PGMs. These PGMs are presented even if no diag10 support is
provided since they are also part of the base diagnose architecture.

The tests currently succeed in TCG emulation and PV, both of which do
not implement this specific diagnose.

Therefore this series fences TCG & PV as well as adding a check if the page has
really been cleared.


Janosch Frank (2):
  s390x: diag10: Fence tcg and pv environments
  s390x: diag10: Check page clear

 s390x/diag10.c      | 26 ++++++++++++++++++++++++++
 s390x/unittests.cfg |  1 +
 2 files changed, 27 insertions(+)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-05-28 14:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28  9:13 [kvm-unit-tests PATCH 0/2] s390x: diag10: Fixup Janosch Frank
2025-05-28  9:13 ` [kvm-unit-tests PATCH 1/2] s390x: diag10: Fence tcg and pv environments Janosch Frank
2025-05-28  9:41   ` Claudio Imbrenda
2025-05-28 11:13     ` Janosch Frank
2025-05-28 12:02       ` Claudio Imbrenda
2025-05-28  9:55   ` Thomas Huth
2025-05-28 10:59     ` Janosch Frank
2025-05-28 14:50   ` Nico Boehr
2025-05-28  9:13 ` [kvm-unit-tests PATCH 2/2] s390x: diag10: Check page clear Janosch Frank
2025-05-28  9:42   ` Claudio Imbrenda
2025-05-28 14:56   ` Nico Boehr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).