KVM: selftests: Add the sync_regs test for s390x
authorThomas Huth <thuth@redhat.com>
Thu, 23 May 2019 16:43:07 +0000 (18:43 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 4 Jun 2019 12:05:38 +0000 (14:05 +0200)
commitee1563f42856f756c72bb0924109432d566c9efa
tree525bbcd1513864bd26057af73e75e52f4cfde8e9
parentedf54478d83eb0ca4174a2c9c01682c1d01cbe7d
KVM: selftests: Add the sync_regs test for s390x

The test is an adaption of the same test for x86. Note that there
are some differences in the way how s390x deals with the kvm_valid_regs
in struct kvm_run, so some of the tests had to be removed. Also this
test is not using the ucall() interface on s390x yet (which would need
some work to be usable on s390x), so it simply drops out of the VM with
a diag 0x501 breakpoint instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190523164309.13345-8-thuth@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
MAINTAINERS
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/s390x/sync_regs_test.c [new file with mode: 0644]