From: "Jan Beulich" Subject: Re: [PATCH 5/5] x86/boot: Move/copy sections more efficiently Date: Mon, 08 Jun 2015 13:10:20 +0100 Message-ID: <5575A24C020000780008215C@mail.emea.novell.com> References: <1433511082-20472-1-git-send-email-andrew.cooper3@citrix.com> <1433511082-20472-6-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1433511082-20472-6-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 05.06.15 at 15:31, wrote: > Both the trampoline copy and BSS initialise can be performed more efficiently > by using 4-byte varients of the string operations. On second thought I'm actually not convinced of this: With X86_FEATURE_ERMS using byte MOVS/STOS is supposedly preferred. > --- a/xen/arch/x86/xen.lds.S > +++ b/xen/arch/x86/xen.lds.S > @@ -153,11 +153,13 @@ SECTIONS > __xsm_initcall_start = .; > *(.xsm_initcall.init) > __xsm_initcall_end = .; > + > + . = ALIGN(PAGE_SIZE); > } :text > - . = ALIGN(STACK_SIZE); > __init_end = .; Perhaps worth also moving the symbol into the section? Jan