diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2019-05-24 12:27:01 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2019-06-04 14:05:38 +0200 |
commit | 8343ba2d4820b1738bbb7cb40ec18ea0a3b0b331 (patch) | |
tree | d002a46122cd48f90c7691c40f58f33690f87792 /tools/testing | |
parent | 49fe9a5d16386310b15abcfe47343c26c3cc05f2 (diff) | |
download | linux-stable-8343ba2d4820b1738bbb7cb40ec18ea0a3b0b331.tar.gz linux-stable-8343ba2d4820b1738bbb7cb40ec18ea0a3b0b331.tar.bz2 linux-stable-8343ba2d4820b1738bbb7cb40ec18ea0a3b0b331.zip |
KVM: selftests: enable pgste option for the linker on s390
To avoid testcase failures we need to enable the pgstes. This can be
done with /proc/sys/vm/allocate_pgste or with a linker option that
creates an S390_PGSTE program header.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
[Fixed as outlined by kernel test robot <rong.a.chen@intel.com>]
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/kvm/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index 05a94a13a0a3..0d7265da1583 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -47,7 +47,12 @@ CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 \ no-pie-option := $(call try-run, echo 'int main() { return 0; }' | \ $(CC) -Werror $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -no-pie -x c - -o "$$TMP", -no-pie) -LDFLAGS += -pthread $(no-pie-option) +# On s390, build the testcases KVM-enabled +pgste-option = $(call try-run, echo 'int main() { return 0; }' | \ + $(CC) -Werror -Wl$(comma)--s390-pgste -x c - -o "$$TMP",-Wl$(comma)--s390-pgste) + + +LDFLAGS += -pthread $(no-pie-option) $(pgste-option) # After inclusion, $(OUTPUT) is defined and # $(TEST_GEN_PROGS) starts with $(OUTPUT)/ |