KVM: selftests: Remove duplicate VM creation in memslot_perf_test
authorGavin Shan <gshan@redhat.com>
Wed, 18 Jan 2023 09:21:32 +0000 (17:21 +0800)
committerSean Christopherson <seanjc@google.com>
Tue, 7 Feb 2023 23:37:25 +0000 (15:37 -0800)
Remove a spurious call to __vm_create_with_one_vcpu() that was introduced
by a merge gone sideways.

Fixes: eb5618911af0 ("Merge tag 'kvmarm-6.2' of https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD")
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Link: https://lore.kernel.org/r/20230118092133.320003-2-gshan@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/memslot_perf_test.c

index e6587e1..adbbcca 100644 (file)
@@ -308,8 +308,6 @@ static bool prepare_vm(struct vm_data *data, int nslots, uint64_t *maxslots,
        data->hva_slots = malloc(sizeof(*data->hva_slots) * data->nslots);
        TEST_ASSERT(data->hva_slots, "malloc() fail");
 
-       data->vm = __vm_create_with_one_vcpu(&data->vcpu, mempages, guest_code);
-
        pr_info_v("Adding slots 1..%i, each slot with %"PRIu64" pages + %"PRIu64" extra pages last\n",
                data->nslots, data->pages_per_slot, rempages);