summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSridhar Samudrala <sri@us.ibm.com>2010-03-30 16:48:25 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-26 07:48:05 -0700
commit00e7035cabdd49657b80b4e0b6995310dc198847 (patch)
treedf97b1ce797075bd7675b0f1cfaa5f4251d29c6c /include
parentff5bfd4f4896c3f27dafcc4ae533b0d803968499 (diff)
downloadlwn-00e7035cabdd49657b80b4e0b6995310dc198847.tar.gz
lwn-00e7035cabdd49657b80b4e0b6995310dc198847.zip
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 <sri@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index ddb7d5840de8..1fe293e98a08 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];
};