From: Jan Beulich Date: Thu, 30 Jan 2020 16:18:12 +0000 (+0100) Subject: x86: undo part of "refine link time stub area related assertion" X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~777 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f450eaa9c1521c64dc31bdec81a6148b2b0d9552;p=xen.git x86: undo part of "refine link time stub area related assertion" The original check was not too strict: While we don't use one page of memory per CPU, we do use ons page of VA space per CPU. It is the latter which matters here. Undo that part of the change, but leave everything else in place. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 07c6448dbb..f5730ffe93 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -2,7 +2,6 @@ /* Modified for i386/x86-64 Xen by Keir Fraser */ #include -#include #include #undef ENTRY #undef ALIGN @@ -353,7 +352,7 @@ SECTIONS } ASSERT(__2M_rwdata_end <= XEN_VIRT_END - XEN_VIRT_START + __XEN_VIRT_START - - DIV_ROUND_UP(NR_CPUS, STUBS_PER_PAGE) * PAGE_SIZE, + NR_CPUS * PAGE_SIZE, "Xen image overlaps stubs area") #ifdef CONFIG_KEXEC