]> xenbits.xensource.com Git - qemu-xen-4.5-testing.git/commitdiff
Enlarge the size of the global mmio_space mmio[].
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Nov 2009 18:10:44 +0000 (18:10 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 6 Nov 2009 18:10:44 +0000 (18:10 +0000)
With the Multi-Function passthrough, we're actually able to assign more than
32 functions to guest, so we should enlarge the MAX_MMIO. 1024 should be big
enough.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
i386-dm/exec-dm.c

index d0685afd278e76e777e1c3dc15b6e10e6dc37649..2603de1dbe58cc4dca33c0b8656208b31fdd6bf4 100644 (file)
@@ -275,13 +275,13 @@ void cpu_abort(CPUState *env, const char *fmt, ...)
 
 
 /* XXX: Simple implementation. Fix later */
-#define MAX_MMIO 32
+#define MAX_MMIO 1024
 static struct mmio_space {
         target_phys_addr_t start;
         unsigned long size;
         unsigned long io_index;
 } mmio[MAX_MMIO];
-unsigned long mmio_cnt;
+static unsigned long mmio_cnt;
 
 /* register physical memory. 'size' must be a multiple of the target
    page size. If (phys_offset & ~TARGET_PAGE_MASK) != 0, then it is an