]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: selftests: Drop a duplicate TEST_ASSERT() in vm_nr_pages_required()
authorSean Christopherson <seanjc@google.com>
Mon, 13 Jun 2022 16:19:41 +0000 (16:19 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2022 16:44:46 +0000 (12:44 -0400)
Remove a duplicate TEST_ASSERT() on the number of runnable vCPUs in
vm_nr_pages_required() that snuck in during a rebase gone bad.

Reported-by: Andrew Jones <drjones@redhat.com>
Fixes: 07a082630784 ("KVM: selftests: Move per-VM/per-vCPU nr pages calculation to __vm_create()")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220613161942.1586791-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/kvm_util.c

index 0c550fb0dab2fce93e0273db5f7caebd90e569c9..bceb668f262744e8e4b5554abd66bac785c35229 100644 (file)
@@ -284,10 +284,6 @@ static uint64_t vm_nr_pages_required(enum vm_guest_mode mode,
         */
        nr_pages += (nr_pages + extra_mem_pages) / PTES_PER_MIN_PAGE * 2;
 
-       TEST_ASSERT(nr_runnable_vcpus <= kvm_check_cap(KVM_CAP_MAX_VCPUS),
-                   "Host doesn't support %d vCPUs, max-vcpus = %d",
-                   nr_runnable_vcpus, kvm_check_cap(KVM_CAP_MAX_VCPUS));
-
        return vm_adjust_num_guest_pages(mode, nr_pages);
 }