]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.32.12/0008-KVM-Increase-NR_IOBUS_DEVS-limit-to-200.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.12 / 0008-KVM-Increase-NR_IOBUS_DEVS-limit-to-200.patch
1 From f8dd49cc65898e9636df861e880aa6c94ab15ca5 Mon Sep 17 00:00:00 2001
2 From: Sridhar Samudrala <sri@us.ibm.com>
3 Date: Tue, 30 Mar 2010 16:48:25 -0700
4 Subject: KVM: Increase NR_IOBUS_DEVS limit to 200
5
6 From: Sridhar Samudrala <sri@us.ibm.com>
7
8 (Cherry-picked from commit e80e2a60ff7914dae691345a976c80bbbff3ec74)
9
10 This patch increases the current hardcoded limit of NR_IOBUS_DEVS
11 from 6 to 200. We are hitting this limit when creating a guest with more
12 than 1 virtio-net device using vhost-net backend. Each virtio-net
13 device requires 2 such devices to service notifications from rx/tx queues.
14
15 Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
16 Signed-off-by: Avi Kivity <avi@redhat.com>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18
19 ---
20 include/linux/kvm_host.h | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/include/linux/kvm_host.h
24 +++ b/include/linux/kvm_host.h
25 @@ -53,7 +53,7 @@ extern struct kmem_cache *kvm_vcpu_cache
26 */
27 struct kvm_io_bus {
28 int dev_count;
29 -#define NR_IOBUS_DEVS 6
30 +#define NR_IOBUS_DEVS 200
31 struct kvm_io_device *devs[NR_IOBUS_DEVS];
32 };
33