This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] Enlarge the size of the global mmio_space mmio[].

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Enlarge the size of the global mmio_space mmio[].
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Fri, 6 Nov 2009 17:29:12 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Delivery-date: Fri, 06 Nov 2009 01:30:40 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acpew5nW4+g/DIufSg2qrcRjwOB9ww==
Thread-topic: [PATCH] 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

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>

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

Attachment: enlarge_max_mmio.patch
Description: enlarge_max_mmio.patch

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>