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

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



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


 


Rackspace

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