]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: kvm: s390: Add kvm_s390_sie_block definition for userspace tests
authorChristoph Schlameuss <schlameuss@linux.ibm.com>
Wed, 7 Aug 2024 15:45:04 +0000 (17:45 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 19 Aug 2024 07:51:15 +0000 (07:51 +0000)
commit845482188e3890269927c47316bcbacee9f71a3f
tree16023489a5d87309556c0abadcd191cc773ad112
parent252b6fd2e186b793b960fa28ffccb07ccc4d5f51
selftests: kvm: s390: Add kvm_s390_sie_block definition for userspace tests

Subsequent tests do require direct manipulation of the SIE control
block. This commit introduces the SIE control block definition for use
within the selftests.

There are already definitions of this within the kernel.
This differs in two ways.
* This is the first definition of this in userspace.
* In the context of the selftests this does not require atomicity for
  the flags.

With the userspace definition of the SIE block layout now being present
we can reuse the values in other tests where applicable.

Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20240807154512.316936-3-schlameuss@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-ID: <20240807154512.316936-3-schlameuss@linux.ibm.com>
tools/testing/selftests/kvm/include/s390x/sie.h [new file with mode: 0644]
tools/testing/selftests/kvm/s390x/debug_test.c