KVM: selftests: Implement ucall() for s390x
authorThomas Huth <thuth@redhat.com>
Wed, 31 Jul 2019 15:15:24 +0000 (17:15 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 2 Aug 2019 13:44:23 +0000 (15:44 +0200)
commitf90f57b3971a3370be5a3cf02ae783b4bf728b7f
tree4a57cdb4946f22f05b5e2ff7ec0880c6c8c92b53
parent2040f414d12f31be3e73eb3f5048d2b1cdec48f6
KVM: selftests: Implement ucall() for s390x

On s390x, we can neither exit via PIO nor MMIO, but have to use an
instruction like DIAGNOSE. Now that ucall() is implemented, we can
use it in the sync_reg_test on s390x, too.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20190731151525.17156-3-thuth@redhat.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/lib/s390x/ucall.c [new file with mode: 0644]
tools/testing/selftests/kvm/s390x/sync_regs_test.c