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] Xen i386 xen-head.S fix sections mixup

To: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, jeremy@xxxxxxxxxxxxx, chrisw@xxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Xen i386 xen-head.S fix sections mixup
From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
Date: Sun, 19 Aug 2007 23:04:20 -0400
Cc: virtualization@xxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 19 Aug 2007 20:10:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: Mutt/1.5.13 (2006-08-11)
Xen i386 xen-head.S fix sections mixup

xen-head.S does not come back to the data section, leaving the text section
as current section. It causes problems with a slightly enhanced DEBUG_RODATA
that supports CONFIG_HOTPLUG and bringing a CPU up after the text has been
marked read-only: reference to early_gdt_descr causes a page fault.

It applies on 2.6.22-rc2-mm2.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx>
CC: jeremy@xxxxxxxxxxxxx
CC: chrisw@xxxxxxxxxxxx
CC: virtualization@xxxxxxxxxxxxxx
CC: xen-devel@xxxxxxxxxxxxxxxxxxx
---
 arch/i386/xen/xen-head.S |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6-lttng/arch/i386/xen/xen-head.S
===================================================================
--- linux-2.6-lttng.orig/arch/i386/xen/xen-head.S       2007-08-19 
22:45:58.000000000 -0400
+++ linux-2.6-lttng/arch/i386/xen/xen-head.S    2007-08-19 22:46:19.000000000 
-0400
@@ -13,6 +13,7 @@ ENTRY(startup_xen)
        cld
        movl $(init_thread_union+THREAD_SIZE),%esp
        jmp xen_start_kernel
+       .previous
 
 .pushsection ".bss.page_aligned"
        .align PAGE_SIZE_asm
@@ -34,5 +35,6 @@ ENTRY(hypercall_page)
        ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE,       .asciz "no")
 #endif
        ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz "generic")
+       .previous
 
 #endif /*CONFIG_XEN */

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

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

<Prev in Thread] Current Thread [Next in Thread>