From: Tim Deegan Subject: Re: [PATCH 1/4] VMX: streamline entry.S code Date: Thu, 29 Aug 2013 12:01:20 +0100 Message-ID: <20130829110120.GA75385@ocelot.phlegethon.org> References: <521786A002000078000EE064@nat28.tlf.novell.com> <5217876402000078000EE077@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VEzyf-00086R-Bz for xen-devel@lists.xenproject.org; Thu, 29 Aug 2013 11:01:25 +0000 Content-Disposition: inline In-Reply-To: <5217876402000078000EE077@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel , Keir Fraser , Eddie Dong , Jun Nakajima List-Id: xen-devel@lists.xenproject.org At 15:01 +0100 on 23 Aug (1377270100), Jan Beulich wrote: > +ENTRY(vmx_asm_vmexit_handler) > push %rdi > push %rsi > push %rdx > push %rcx > push %rax > + mov %cr2,%rax > push %r8 > push %r9 > push %r10 > push %r11 > push %rbx > + GET_CURRENT(%rbx) I see this avoids a potential stall below, but OTOH it introduces an explicit %rsp access into a string of push ops, which is frowned on (IIRC there's special fast-forwarding of %rsp in chains of pushes). I'd be inclined to leave it alone unless there's a measurable improvement, since the code's more readable as-is. Either way, Reviewed-by: Tim Deegan