From: "Jan Beulich" Subject: Re: [PATCH 1/3] x86: also allow REP STOS emulation acceleration Date: Fri, 09 Jan 2015 08:42:45 +0000 Message-ID: <54AFA2950200007800053001@mail.emea.novell.com> References: <54AEB49C0200007800052BDE@mail.emea.novell.com> <54AEB5690200007800052BF1@mail.emea.novell.com> <54AEDA80.4080405@citrix.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 1Y9V9d-0004oQ-6s for xen-devel@lists.xenproject.org; Fri, 09 Jan 2015 08:42:49 +0000 In-Reply-To: <54AEDA80.4080405@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 , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 08.01.15 at 20:29, wrote: > On 08/01/15 15:50, Jan Beulich wrote: >> + if ( !buf ) >> + buf = p_data; >> + else >> + switch ( bytes_per_rep ) >> + { >> +#define CASE(bits, suffix) \ >> + case (bits) / 8: \ >> + asm ( "rep stos" #suffix \ >> + :: "a" (*(const uint##bits##_t *)p_data), \ >> + "D" (buf), "c" (*reps) \ >> + : "memory" ); \ > > This looks as if it needs output clobbers for D and c Well spotted, will fix. Jan