Skip to content

Commit

Permalink
KVM: Increase NR_IOBUS_DEVS limit to 200
Browse files Browse the repository at this point in the history
(Cherry-picked from commit e80e2a6)

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>
  • Loading branch information
Sridhar Samudrala authored and Greg Kroah-Hartman committed Apr 26, 2010
1 parent ff5bfd4 commit 00e7035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};

Expand Down

0 comments on commit 00e7035

Please sign in to comment.