kvm_io_bus devices are used for ioevent, pit, pic, ioapic, coalesced_mmio. Currently Qemu only emulates one PCI bus, it contains 32 slots, one slot contains 8 functions, maximum of supported PCI devices: 1 * 32 * 8 = 256. Each virtio-blk device needs 1 iobus device, each virtio-net device requires 2 such devices to service notifications (ioevent) from rx/tx queues. So it needs 512 io_bus devices. The maximum of coalesced mmio zone is 100, each zone has an iobus devices. pit, pic, ioapic don't use many kvm_io_bus devices. So increase NR_IOBUS_DEVS limit to 700. Signed-off-by: Amos Kong <akong@xxxxxxxxxx> --- include/linux/kvm_host.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 9698080..9933a0d 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -69,7 +69,7 @@ struct kvm_io_range { struct kvm_io_bus { int dev_count; -#define NR_IOBUS_DEVS 300 +#define NR_IOBUS_DEVS 700 struct kvm_io_range range[NR_IOBUS_DEVS]; }; -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html