]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Convert memop away from VCPU_ID
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 20:39:34 +0000 (12:39 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:13 +0000 (11:47 -0400)
commit944da4019a609ca28031e57a3f1bc00ccb45f0e3
treefffe2047c13c7cafa5cf3dd8e41c2a65a4706ad2
parentc2c2bccdeb95af855759da47fa273230c6b486c9
KVM: selftests: Convert memop away from VCPU_ID

Pass around a 'struct kvm_vcpu' object instead of a vCPU ID in s390's
memop test.  Pass NULL for the vCPU instead of a magic '-1' ID to
indicate that an ioctl/test should be done at VM scope.

Rename "struct test_vcpu vcpu" to "struct test_info info" in order to
avoid naming collisions (this is the bulk of the diff :-( ).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/s390x/memop.c