From: Sridhar Samudrala Date: Tue, 30 Mar 2010 23:48:25 +0000 (-0700) Subject: KVM: Increase NR_IOBUS_DEVS limit to 200 X-Git-Tag: firefly_0821_release~10186^2~1724 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b7cf825f07d9432ebff7ce58388cd2d948c71811;p=firefly-linux-kernel-4.4.55.git KVM: Increase NR_IOBUS_DEVS limit to 200 (Cherry-picked from commit e80e2a60ff7914dae691345a976c80bbbff3ec74) This patch increases the current hardcoded limit of NR_IOBUS_DEVS from 6 to 200. We are hitting this limit when creating a guest with more than 1 virtio-net device using vhost-net backend. Each virtio-net device requires 2 such devices to service notifications from rx/tx queues. Signed-off-by: Sridhar Samudrala Signed-off-by: Avi Kivity Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 1e4e3bc3e726..c728a50f8dab 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -53,7 +53,7 @@ extern struct kmem_cache *kvm_vcpu_cache; */ struct kvm_io_bus { int dev_count; -#define NR_IOBUS_DEVS 6 +#define NR_IOBUS_DEVS 200 struct kvm_io_device *devs[NR_IOBUS_DEVS]; };