Skip to content

s390x: Add base AP support

Janosch Frank kvm linux-s390 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 9 repliesIn review
  2. v37 patches 0 repliesSuperseded
  3. v27 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches10 repliesSuperseded

Changes in v4 from the cover letter

- Rebase on the cc dirty series
- Bumped year to 2024

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7lib: s390x: Add ap librarylib/s390x/ap.c lib/s390x/ap.h s390x/Makefile+186 -07 replies
2/7s390x: Add guest 2 AP tests390x/Makefile s390x/ap.c s390x/unittests.cfg+313 -02 replies
3/7lib: s390x: ap: Add proper ap setup codelib/s390x/ap.c lib/s390x/ap.h s390x/ap.c+105 -60 replies
4/7s390x: ap: Add pqap aqic testslib/s390x/ap.c lib/s390x/ap.h s390x/ap.c+120 -10 replies
5/7s390x: ap: Add reset testslib/s390x/ap.c lib/s390x/ap.h s390x/ap.c+154 -20 replies
6/7lib: s390x: ap: Add tapq test facility bitlib/s390x/ap.c lib/s390x/ap.h s390x/ap.c+10 -90 replies
7/7s390x: ap: Add nq/dq len testlib/s390x/ap.h s390x/ap.c+105 -10 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchAnthony Krowiak
1/7
2/7A-b
3/7
4/7
5/7
6/7
7/7

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

Read the v4 thread

Cover letter [kvm-unit-tests PATCH v4 0/7] s390x: Add base AP support

As KVM supports passing Adjunct Processor (AP) crypto devices to guests, we should make sure that the interface works as expected.

Three instructions provide the interface to the AP devices:
- nqap: Enqueues a crypto request
- dqap: Dequeues a crypto request
- pqap: Provides information and processes support functions

nqap & dqap work on crypto requests for which we currently don't want to add tests due to their sheer complexity.

Which leaves us with pqap which is partly emulated for a guest 2 and hence is a prime target for testing.

v4:
- Rebase on the cc dirty series
- Bumped year to 2024
v3:
- Renamed ap_check() to ap_setup() and added comment
v2:
- Re-worked the ap_check() function to test for stfle 12 since we rely on PQAP QCI in the library functions
- Re-worked APQN management
- Fixed faulty loop variable initializers in ap.c
- Fixed report messages
- Extended clobber lists
- Extended length bit checks for nqap
- Now using ARRAY_SIZE where applicabale
- NIB is now allocated as IO memory

Janosch Frank (7):
lib: s390x: Add ap library
s390x: Add guest 2 AP test
lib: s390x: ap: Add proper ap setup code
s390x: ap: Add pqap aqic tests
s390x: ap: Add reset tests
lib: s390x: ap: Add tapq test facility bit
s390x: ap: Add nq/dq len test

 lib/s390x/ap.c      | 286 ++++++++++++++++++++++
 lib/s390x/ap.h      | 119 ++++++++++
 s390x/Makefile      |   2 +
 s390x/ap.c          | 564 ++++++++++++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg |   3 +
 5 files changed, 974 insertions(+)
 create mode 100644 lib/s390x/ap.c
 create mode 100644 lib/s390x/ap.h
 create mode 100644 s390x/ap.c
Signature · 1 line
2.40.1