diff options
author | Gavin Shan <gshan@redhat.com> | 2023-01-18 17:21:32 +0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-02-07 15:37:25 -0800 |
commit | e5b426879fc39063d940902adbf38d5485925304 (patch) | |
tree | a6def021094a4adee95669b0536fa96d35be9b3b /tools/testing/selftests/kvm | |
parent | 78332517a5dab54514ae719805eec218715de1fc (diff) | |
download | lwn-e5b426879fc39063d940902adbf38d5485925304.tar.gz lwn-e5b426879fc39063d940902adbf38d5485925304.zip |
KVM: selftests: Remove duplicate VM creation in memslot_perf_test
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>
Diffstat (limited to 'tools/testing/selftests/kvm')
-rw-r--r-- | tools/testing/selftests/kvm/memslot_perf_test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/testing/selftests/kvm/memslot_perf_test.c b/tools/testing/selftests/kvm/memslot_perf_test.c index e6587e193490..adbbcca3e354 100644 --- a/tools/testing/selftests/kvm/memslot_perf_test.c +++ b/tools/testing/selftests/kvm/memslot_perf_test.c @@ -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); |