Skip to contentSkip to conversation

x86: drop map-low-16Mb leftovers

PATCH In review Jan Beulich 2 participants 2 messages Aug 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: drop map-low-16Mb leftovers

Prior work has fully eliminated that hardcoded boundary. Drop both the linker script assertion (the upper bound is now the stubs area) and the artificial extending of xen.efi's image size.

xen/arch/x86/xen.lds.S +0 -11
@@ -359,14 +359,6 @@ SECTIONS
 
   DWARF2_DEBUG_SECTIONS
 
-#ifdef EFI
-  /* Trick the linker into setting the image size to no less than 16Mb. */
-  __image_end__ = .;
-  .pad ALIGN(__section_alignment__) : {
-    . = __image_end__ < __image_base__ + MB(16) ? ALIGN(MB(16)) : .;
-  }
-#endif
-
 #ifdef CONFIG_HYPERV_GUEST
   hv_hcall_page = ABSOLUTE(HV_HCALL_PAGE - XEN_VIRT_START + __XEN_VIRT_START);
 #endif
@@ -429,6 +421,3 @@ ASSERT((trampoline_end - trampoline_star
     "not enough room for trampoline and mbi data")
 ASSERT((wakeup_stack - wakeup_stack_start) >= WAKEUP_STACK_MIN,
     "wakeup stack too small")
-
-/* Plenty of boot code assumes that Xen isn't larger than 16M. */
-ASSERT(_end - _start <= MB(16), "Xen too large for early-boot assumptions")
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Jan Beulich

Prior work has fully eliminated that hardcoded boundary.

I'd cite e.g. commit cbabbc9f5659 ("x86/boot: Size the boot/directmap mappings dynamically") here.

Quoted 5 lines

Drop both the
linker script assertion (the upper bound is now the stubs area) and the artificial extending of xen.efi's image size.

Sorry I didn't drop the assertion at the time.