summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/set_memory_region_test.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-02-16 09:56:24 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-11 11:47:04 -0400
commitf742d94ff4e5147e08b3bb7826f009eda7545124 (patch)
tree98deb5aec5f470863413acd06a0eaeac6d6b3eb3 /tools/testing/selftests/kvm/set_memory_region_test.c
parent1422efd6bb75e4ae038432449bf9229d6be8e0b4 (diff)
downloadlinux-f742d94ff4e5147e08b3bb7826f009eda7545124.tar.bz2
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/set_memory_region_test.c')
-rw-r--r--tools/testing/selftests/kvm/set_memory_region_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c
index 1274bbb0e30b..d832fc12984e 100644
--- a/tools/testing/selftests/kvm/set_memory_region_test.c
+++ b/tools/testing/selftests/kvm/set_memory_region_test.c
@@ -315,7 +315,7 @@ static void test_zero_memory_regions(void)
pr_info("Testing KVM_RUN with zero added memory regions\n");
vm = vm_create_barebones();
- vcpu = vm_vcpu_add(vm, 0);
+ vcpu = __vm_vcpu_add(vm, 0);
vm_ioctl(vm, KVM_SET_NR_MMU_PAGES, (void *)64ul);
vcpu_run(vm, vcpu->id);