[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen-unstable] Enlarge the size of the global mmio_space mmio[].



commit de6c06808e300b35368178a281660ae8acf64f66
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Fri Nov 6 18:10:44 2009 +0000

    Enlarge the size of the global mmio_space mmio[].
    
    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@xxxxxxxxx>
---
 i386-dm/exec-dm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/i386-dm/exec-dm.c b/i386-dm/exec-dm.c
index d0685af..2603de1 100644
--- a/i386-dm/exec-dm.c
+++ b/i386-dm/exec-dm.c
@@ -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
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.