]> 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 13:40:49 +0000 (14:40 +0100)
commit9057a48428340f75b2fc3bfba8809eca74412a5e
tree84618d3fadf4c677b48703e4e8d36c62232c0f39
parent3033e5726834e4c9c8c48cdb2273f33bd105f938
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