kvm: rename KVM_MAX_VCPU_ID to KVM_MAX_VCPU_IDS
KVM_MAX_VCPU_ID is not specifying the highest allowed vcpu-id, but the number of allowed vcpu-ids. This has already led to confusion, so rename KVM_MAX_VCPU_ID to KVM_MAX_VCPU_IDS to make its semantics more clear Suggested-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20210913135745.13944-3-jgross@suse.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
committed by
Paolo Bonzini
parent
1e254d0d86
commit
a1c42ddedf
@@ -53,7 +53,7 @@ int main(int argc, char *argv[])
|
||||
kvm_max_vcpu_id = kvm_max_vcpus;
|
||||
|
||||
TEST_ASSERT(kvm_max_vcpu_id >= kvm_max_vcpus,
|
||||
"KVM_MAX_VCPU_ID (%d) must be at least as large as KVM_MAX_VCPUS (%d).",
|
||||
"KVM_MAX_VCPU_IDS (%d) must be at least as large as KVM_MAX_VCPUS (%d).",
|
||||
kvm_max_vcpu_id, kvm_max_vcpus);
|
||||
|
||||
test_vcpu_creation(0, kvm_max_vcpus);
|
||||
|
||||
Reference in New Issue
Block a user