From: "Jan Beulich" Subject: Re: [PATCH 1/3] x86: use MOV instead of PUSH/POP when saving/restoring register state Date: Wed, 03 Oct 2012 14:01:47 +0100 Message-ID: <506C454B020000780008D008@nat28.tlf.novell.com> References: <506B2268020000780009F273@nat28.tlf.novell.com> <506B23BF020000780009F29A@nat28.tlf.novell.com> <20121002175716.GA30321@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20121002175716.GA30321@phenom.dumpdata.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: konrad@kernel.org Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> Konrad Rzeszutek Wilk 10/02/12 8:09 PM >>> >On Tue, Oct 02, 2012 at 04:26:23PM +0100, Jan Beulich wrote: >> Signed-off-by: Jan Beulich >What's the reasoning behind it? Just that mov's are faster than >pop/push? No (that's not actually true anymore these days). The main reason is that with MOV, part of the frame generation and register restoration can be more easily skipped than when using PUSH/POP (would require extra stack pointer adjustments on the alternative paths) - see patch 3. Jan