From: Tim Deegan Subject: Re: [PATCH 1/3] x86: also allow REP STOS emulation acceleration Date: Thu, 8 Jan 2015 17:16:47 +0100 Message-ID: <20150108161647.GH5043@deinos.phlegethon.org> References: <54AEB49C0200007800052BDE@mail.emea.novell.com> <54AEB5690200007800052BF1@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Y9FlQ-0007db-F9 for xen-devel@lists.xenproject.org; Thu, 08 Jan 2015 16:16:48 +0000 Content-Disposition: inline In-Reply-To: <54AEB5690200007800052BF1@mail.emea.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 List-Id: xen-devel@lists.xenproject.org At 15:50 +0000 on 08 Jan (1420728649), Jan Beulich wrote: > While the REP MOVS acceleration appears to have helped qemu-traditional > based guests, qemu-upstream (or really the respective video BIOSes) > doesn't appear to benefit from that. Instead the acceleration added > here provides a visible performance improvement during very early HVM > guest boot. > > Signed-off-by: Jan Beulich If I read this right, it's allocating and memset()ing a buffer and then copying that buffer to the guest? Would it be better to map the guest frame and write directly? Edge cases where the STOS crosses a frame boundary could happen the old way. Cheers, Tim.