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-bugs

[Xen-bugs] [Bug 672] New: calling printk early enough kills dom0 boot on

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 672] New: calling printk early enough kills dom0 boot on x86-64
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sun, 11 Jun 2006 22:32:51 -0700
Delivery-date: Sun, 11 Jun 2006 22:33:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=672

           Summary: calling printk early enough kills dom0 boot on x86-64
           Product: Xen
           Version: unstable
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Hypervisor
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: muli@xxxxxxxxxx
                CC: jdmason@xxxxxxxxxx


If I apply the following patch and boot with it on x86-64, dom0 boot
hangs in random places. I found it while adding full ioremap
support. I suspect an overflow in the console subsystem due to ioremap
being called before the console is fuly set up, but did not have time
to fully investigate yet. If anyone wants to take a stab at fixing
this, please do :-)

Cheers,
Muli

diff -r c191c649cdb3 xen/include/asm-x86/io.h
--- a/xen/include/asm-x86/io.h  Tue Jun 06 10:25:59 2006 +0100
+++ b/xen/include/asm-x86/io.h  Wed Jun 07 18:03:13 2006 +0300
@@ -6,7 +6,14 @@
 #include <asm/page.h>

 /* We don't need real ioremap() on Xen/x86. */
-#define ioremap(x,l) (__va(x))
+static inline void* ioremap(unsigned long x, unsigned long l)
+{
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+     printk("ieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!\n");
+     return __va(x);
+}

 #define readb(x) (*(volatile char *)(x))
 #define readw(x) (*(volatile short *)(x))


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 672] New: calling printk early enough kills dom0 boot on x86-64, bugzilla-daemon <=