]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: selftests: Test invalid bits in kvm_valid_regs and kvm_dirty_regs on s390x
authorThomas Huth <thuth@redhat.com>
Wed, 4 Sep 2019 08:52:00 +0000 (10:52 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Wed, 4 Sep 2019 13:38:05 +0000 (15:38 +0200)
commit81cb736c0c928444e2f4707513c167d5d39844a4
treef7784c5a4bc58283e6ae6fe403dedad68f8e7e59
parent200824f55eef409830a2d1703d6f81542620c2f0
KVM: selftests: Test invalid bits in kvm_valid_regs and kvm_dirty_regs on s390x

Now that we disallow invalid bits in kvm_valid_regs and kvm_dirty_regs
on s390x, too, we should also check this condition in the selftests.
The code has been taken from the x86-version of the sync_regs_test.

Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/lkml/20190904085200.29021-3-thuth@redhat.com/
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
tools/testing/selftests/kvm/s390x/sync_regs_test.c