Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Sam Ravnborg
Date: Wednesday, May 28, 2008 - 7:10 am

On Wed, May 28, 2008 at 03:02:14PM +0100, Jeremy Fitzhardinge wrote:

I cooked up this:
diff --git a/arch/x86/kernel/vmlinux_32.lds.S b/arch/x86/kernel/vmlinux_32.lds.S
index ce5ed08..963b2ae 100644
--- a/arch/x86/kernel/vmlinux_32.lds.S
+++ b/arch/x86/kernel/vmlinux_32.lds.S
@@ -40,6 +40,7 @@ SECTIONS
   .text : AT(ADDR(.text) - LOAD_OFFSET) {
        . = ALIGN(PAGE_SIZE); /* not really needed, already page aligned */
        *(.text.page_aligned)
+       end_text_page_aligned = .;
        TEXT_TEXT
        SCHED_TEXT
        LOCK_TEXT
@@ -49,6 +50,9 @@ SECTIONS
        _etext = .;                     /* End of text section */
   } :text = 0x9090

+       ASSERT((end_text_page_aligned == ALIGN((end_text_page_aligned), PAGE_SIZE)),
+              "Text in .text.page_aligned are not modulo PAGE_SIZE")
+
   . = ALIGN(16);               /* Exception table */
   __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) {
        __start___ex_table = .;
@@ -89,6 +93,8 @@ SECTIONS
        *(.data.page_aligned)
        *(.data.idt)
   }
+       ASSERT((. == ALIGN(PAGE_SIZE)),
+              "Data in .data.page_aligned are not modulo PAGE_SIZE")

   . = ALIGN(32);
   .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) {


But we should try to do it so all archs can benefit.
And it failed in the second ASSERT - I dunno why.

Soccer duties - so I have to run.

	Sam
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00 of 12] xen: add save/restore/migrate for Xen domains, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 01 of 12] xen: make phys_to_machine structure dynamic, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 02 of 12] xen: add configurable max domain size, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 03 of 12] xen: efficiently support a holey p2m table, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 04 of 12] xen: make dummy_shared_info non-static, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 06 of 12] xen: add rebind_evtchn_irq, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 07 of 12] xen: fix unbind_from_irq(), Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 08 of 12] xen-console: add save/restore, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 09 of 12] xenbus: rebind irq on restore, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 11 of 12] xen: maintain clock offset over save/restore, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
[PATCH 12 of 12] hrtimer: remove warning in hres_timers_resume, Jeremy Fitzhardinge, (Fri May 23, 6:41 am)
Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Wed May 28, 7:02 am)
Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list, Sam Ravnborg, (Wed May 28, 7:10 am)
Re: [PATCH 10 of 12] xen: implement save/restore, Ingo Molnar, (Thu May 29, 12:31 am)
Re: [PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Thu May 29, 1:00 am)
[PATCH] xen: fix compilation when CONFIG_PM_SLEEP is disabled, Jeremy Fitzhardinge, (Thu May 29, 1:02 am)
Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Fri May 30, 1:04 am)
Re: [Xen-devel] [PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Mon Jun 2, 3:03 am)
Re: [Xen-devel] [PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Mon Jun 2, 3:52 am)
Re: [PATCH 08 of 12] xen-console: add save/restore, Ingo Molnar, (Mon Jun 2, 4:17 am)
Re: [PATCH 08 of 12] xen-console: add save/restore, Ingo Molnar, (Mon Jun 2, 4:18 am)
Re: [PATCH 08 of 12] xen-console: add save/restore, Jeremy Fitzhardinge, (Mon Jun 2, 4:50 am)
Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Mon Jun 2, 6:12 am)