]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Return created vcpu from vm_vcpu_add_default()
authorSean Christopherson <seanjc@google.com>
Wed, 16 Feb 2022 17:37:11 +0000 (09:37 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:03 +0000 (11:47 -0400)
commita796c33ddc777bb20dd5ae5e712139b87b1e9cf1
tree42d25f0421baaeffb98cd65a604b508f83a80a11
parentda27dab11a57184af9f75367d7cca008ce61ac81
KVM: selftests: Return created vcpu from vm_vcpu_add_default()

Return the created 'struct kvm_vcpu' object from vm_vcpu_add_default(),
which cleans up a few tests and will eventually allow removing vcpu_get()
entirely.

Opportunistically rename @vcpuid to @vcpu_id to follow preferred kernel
style.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/aarch64/processor.h
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/aarch64/processor.c
tools/testing/selftests/kvm/lib/riscv/processor.c
tools/testing/selftests/kvm/lib/s390x/processor.c
tools/testing/selftests/kvm/lib/x86_64/processor.c
tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c
tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c