Revert "x86/kvm: fix vcpu-id indexed array sizes"
authorJuergen Gross <jgross@suse.com>
Mon, 13 Sep 2021 13:57:43 +0000 (15:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Nov 2021 14:05:47 +0000 (15:05 +0100)
commitaa8a82d6db0bb522e9773aeeb44b47665960ebd9
tree32bb16d9807acb4a57d9fa2d774be6276999782a
parent26ac7dec7ff00704e31e91d35d5ebf4a8a7cc1e9
Revert "x86/kvm: fix vcpu-id indexed array sizes"

commit 1e254d0d86a0f2efd4190a89d5204b37c18c6381 upstream.

This reverts commit 76b4f357d0e7d8f6f0013c733e6cba1773c266d3.

The commit has the wrong reasoning, as KVM_MAX_VCPU_ID is not defining the
maximum allowed vcpu-id as its name suggests, but the number of vcpu-ids.
So revert this patch again.

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-2-jgross@suse.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/ioapic.c
arch/x86/kvm/ioapic.h