]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: kvm: s390: Add s390x ucontrol test suite with hpage test
authorChristoph Schlameuss <schlameuss@linux.ibm.com>
Wed, 7 Aug 2024 15:45:05 +0000 (17:45 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 19 Aug 2024 07:51:15 +0000 (07:51 +0000)
commit011901fc222435f5bf2d6accb392f749ddebdfe7
tree967400e2f3d24f8badb3d13d81b552ed14a96999
parent845482188e3890269927c47316bcbacee9f71a3f
selftests: kvm: s390: Add s390x ucontrol test suite with hpage test

Add test suite to validate the s390x architecture specific ucontrol KVM
interface.

Make use of the selftest test harness.

* uc_cap_hpage testcase verifies that a ucontrol VM cannot be run with
  hugepages.

To allow testing of the ucontrol interface the kernel needs a
non-default config containing CONFIG_KVM_S390_UCONTROL.
This config needs to be set to built-in (y) as this cannot be built as
module.

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-4-schlameuss@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-ID: <20240807154512.316936-4-schlameuss@linux.ibm.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/s390x/config [new file with mode: 0644]
tools/testing/selftests/kvm/s390x/ucontrol_test.c [new file with mode: 0644]