]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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 12:18:01 +0000 (13:18 +0100)
commitacc2f2bd974446079943b7e1b7401d90379ee12b
tree76769567dd473fb8dac62e5c928775c6863e1fc3
parent88b912e02d75bacbb957d817db70e6a54ea3a21c
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