public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: Increase NR_IOBUS_DEVS limit to 200
@ 2010-03-30 23:48 Sridhar Samudrala
  2010-03-31  9:51 ` Michael S. Tsirkin
  2010-04-01  8:52 ` Avi Kivity
  0 siblings, 2 replies; 4+ messages in thread
From: Sridhar Samudrala @ 2010-03-30 23:48 UTC (permalink / raw)
  To: Avi Kivity, Michael S. Tsirkin; +Cc: kvm@vger.kernel.org

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>


diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index a3fd0f9..7fb48d3 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -54,7 +54,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];
 };
 




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-01 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-30 23:48 [PATCH] kvm: Increase NR_IOBUS_DEVS limit to 200 Sridhar Samudrala
2010-03-31  9:51 ` Michael S. Tsirkin
2010-03-31 20:04   ` Sridhar Samudrala
2010-04-01  8:52 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox