Skip to content

RFC s390x: Add snippet support

Janosch Frank kvm linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2s390x: Add guest snippet support.gitignore s390x/Makefile s390x/snippets/c/cstart.S +1 more+91 -39 replies
2/2s390x: mvpg: Add SIE mvpg tests390x/Makefile s390x/mvpg-sie.c s390x/snippets/c/mvpg-snippet.c +1 more+177 -15 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests RFC 0/2] s390x: Add snippet support

The SIE support allows us to run guests and test the hypervisor's (V)SIE implementation. However it requires that the guest instructions are binary which limits the complexity of the guest code.

The snippet support provides a way to write guest code as ASM or C and simply memcpy it into guest memory. Some of the KVM-unit-test library can be re-used which further speeds up guest code development.

The included mvpg-sie test helped us to deliver the KVM mvpg fixes which Claudio posted a short while ago. In the future I'll post Secure Execution snippet support patches which was my initial goal with this series anyway.

I heard you liked tests so I put tests inside tests so you can test while you test.

Janosch Frank (2):
s390x: Add guest snippet support
s390x: mvpg: Add SIE mvpg test

 .gitignore                      |   2 +
 s390x/Makefile                  |  29 ++++++-
 s390x/mvpg-sie.c                | 139 ++++++++++++++++++++++++++++++++
 s390x/snippets/c/cstart.S       |  13 +++
 s390x/snippets/c/flat.lds       |  51 ++++++++++++
 s390x/snippets/c/mvpg-snippet.c |  33 ++++++++
 s390x/unittests.cfg             |   3 +
 7 files changed, 267 insertions(+), 3 deletions(-)
 create mode 100644 s390x/mvpg-sie.c
 create mode 100644 s390x/snippets/c/cstart.S
 create mode 100644 s390x/snippets/c/flat.lds
 create mode 100644 s390x/snippets/c/mvpg-snippet.c
Signature · 1 line
2.30.2