WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH]Fix the issue of on x86_64, rhel4 can not get into ru

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]Fix the issue of on x86_64, rhel4 can not get into runlevel 5.
From: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
Date: Fri, 25 Nov 2005 15:55:29 +0800
Delivery-date: Fri, 25 Nov 2005 07:59:09 +0000
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510
Fix the issue of on x86_64, rhel4 can not get into runlevel 5.
Xserver will scan pci and the cirrus VGA driver will register
mmio each time, cause mmio array out of space.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>



# HG changeset patch
# User Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
# Node ID 43babde5b5096f3b9a9ef0f73779927ac8f08c97
# Parent  dc250958aebbe72d603f0e1584b12a0525f570e3
Fix the issue of on x86_64, rhel4 can not get into runlevel 5.
Xserver will scan pci and the cirrus VGA driver will register
mmio each time, cause mmio array out of space.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>

diff -r dc250958aebb -r 43babde5b509 tools/ioemu/exec.c
--- a/tools/ioemu/exec.c        Fri Nov 25 15:04:57 2005 +0800
+++ b/tools/ioemu/exec.c        Fri Nov 25 15:42:16 2005 +0800
@@ -262,6 +262,15 @@
                                   unsigned long size,
                                   unsigned long phys_offset)
 {
+        int i;
+
+        for (i = 0; i < mmio_cnt; i++) { 
+            if(mmio[i].start == start_addr) {
+                mmio[i].io_index = phys_offset;
+                mmio[i].size = size;
+                return;
+            }
+        }
         if (mmio_cnt == MAX_MMIO) {
                 fprintf(logfile, "too many mmio regions\n");
                 exit(-1);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]Fix the issue of on x86_64, rhel4 can not get into runlevel 5., Ling, Xiaofeng <=