summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-02-16 20:56:24 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 18:47:04 +0300
commitf742d94ff4e5147e08b3bb7826f009eda7545124 (patch)
tree98deb5aec5f470863413acd06a0eaeac6d6b3eb3 /tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c
parent1422efd6bb75e4ae038432449bf9229d6be8e0b4 (diff)
downloadlinux-f742d94ff4e5147e08b3bb7826f009eda7545124.tar.xz
KVM: selftests: Rename vm_vcpu_add* helpers to better show relationships
Rename vm_vcpu_add() to __vm_vcpu_add(), and vm_vcpu_add_default() to vm_vcpu_add() to show the relationship between the newly minted vm_vcpu_add() and __vm_vcpu_add(). Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c')
-rw-r--r--tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c b/tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c
index ea70ca2e63c3..2411215e7ae8 100644
--- a/tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c
+++ b/tools/testing/selftests/kvm/x86_64/tsc_scaling_sync.c
@@ -51,10 +51,10 @@ static void *run_vcpu(void *_cpu_nr)
static bool first_cpu_done;
struct kvm_vcpu *vcpu;
- /* The kernel is fine, but vm_vcpu_add_default() needs locking */
+ /* The kernel is fine, but vm_vcpu_add() needs locking */
pthread_spin_lock(&create_lock);
- vcpu = vm_vcpu_add_default(vm, vcpu_id, guest_code);
+ vcpu = vm_vcpu_add(vm, vcpu_id, guest_code);
if (!first_cpu_done) {
first_cpu_done = true;