[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/boot: move l<N>_bootmap
commit afbb876f1fe6f45ca5c3c425925d3d15101c7382 Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Thu Jun 26 14:59:05 2025 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Jun 26 14:59:05 2025 +0200 x86/boot: move l<N>_bootmap Having them in the general .init.data section is somewhat wasteful, due to involved padding. Move them into .init.data.page_aligned, and place that right after .init.bss.stack_aligned. Overall .init.data* shrinks by slightly over 2 pages in the build I'm looking at. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/boot/x86_64.S | 2 +- xen/arch/x86/xen.lds.S | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/boot/x86_64.S b/xen/arch/x86/boot/x86_64.S index 08ae97e261..95a6b6cf63 100644 --- a/xen/arch/x86/boot/x86_64.S +++ b/xen/arch/x86/boot/x86_64.S @@ -193,7 +193,7 @@ END(idle_pg_table) GLOBAL(__page_tables_end) /* Init pagetables. Enough page directories to map into 4GB. */ - .section .init.data, "aw", @progbits + .section .init.data.page_aligned, "aw", @progbits DATA_LOCAL(l1_bootmap, PAGE_SIZE) .fill L1_PAGETABLE_ENTRIES, 8, 0 diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index bf956b6c5f..636c7768aa 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -221,6 +221,7 @@ SECTIONS DECL_SECTION(.init.data) { #endif *(.init.bss.stack_aligned) + *(.init.data.page_aligned) . = ALIGN(POINTER_ALIGN); __initdata_cf_clobber_start = .; -- generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |