]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add support for vcpu_args_set to aarch64 and s390x
authorBen Gardon <bgardon@google.com>
Thu, 23 Jan 2020 18:04:32 +0000 (10:04 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:04 +0000 (17:57 +0100)
commitdd3af1f8dc0c65c1aecfd7af1c04cc28660f1704
tree51e95188afa8f33de588fb1cc0c14c21d911a813
parent321972d16439e963d8a8c4574e1e7a80c9bc34fc
KVM: selftests: Add support for vcpu_args_set to aarch64 and s390x

Currently vcpu_args_set is only implemented for x86. This makes writing
tests with multiple vCPUs difficult as each guest vCPU must either a.)
do the same thing or b.) derive some kind of unique token from it's
registers or the architecture. To simplify the process of writing tests
with multiple vCPUs for s390 and aarch64, add set args functions for
those architectures.

Signed-off-by: Ben Gardon <bgardon@google.com>
[Fixed array index (num => i) and made some style changes.]
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/aarch64/processor.c
tools/testing/selftests/kvm/lib/s390x/processor.c