[PATCH]: increase pci/net/scsi/drive limits Stolen from Anthony. Index: kvm-userspace.pci2/qemu/hw/pci.h =================================================================== --- kvm-userspace.pci2.orig/qemu/hw/pci.h +++ kvm-userspace.pci2/qemu/hw/pci.h @@ -33,7 +33,7 @@ typedef struct PCIIORegion { #define PCI_ROM_SLOT 6 #define PCI_NUM_REGIONS 7 -#define PCI_DEVICES_MAX 64 +#define PCI_DEVICES_MAX 256 #define PCI_VENDOR_ID 0x00 /* 16 bits */ #define PCI_DEVICE_ID 0x02 /* 16 bits */ Index: kvm-userspace.pci2/qemu/sysemu.h =================================================================== --- kvm-userspace.pci2.orig/qemu/sysemu.h +++ kvm-userspace.pci2/qemu/sysemu.h @@ -148,8 +148,8 @@ typedef struct DriveInfo { } DriveInfo; #define MAX_IDE_DEVS 2 -#define MAX_SCSI_DEVS 7 -#define MAX_DRIVES 32 +#define MAX_SCSI_DEVS 128 +#define MAX_DRIVES 256 int nb_drives; DriveInfo drives_table[MAX_DRIVES+1]; Index: kvm-userspace.pci2/qemu/vl.c =================================================================== --- kvm-userspace.pci2.orig/qemu/vl.c +++ kvm-userspace.pci2/qemu/vl.c @@ -8717,7 +8717,7 @@ static BOOL WINAPI qemu_ctrl_handler(DWO } #endif -#define MAX_NET_CLIENTS 32 +#define MAX_NET_CLIENTS 512 static int saved_argc; static char **saved_argv; Index: kvm-userspace.pci2/qemu/net.h =================================================================== --- kvm-userspace.pci2.orig/qemu/net.h +++ kvm-userspace.pci2/qemu/net.h @@ -42,7 +42,7 @@ void net_client_uninit(NICInfo *nd); /* NIC info */ -#define MAX_NICS 8 +#define MAX_NICS 128 struct NICInfo { uint8_t macaddr[6];