From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aobJW-0004JL-1J for qemu-devel@nongnu.org; Fri, 08 Apr 2016 14:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aobJS-0001UK-SC for qemu-devel@nongnu.org; Fri, 08 Apr 2016 14:39:25 -0400 Received: from mail-qg0-x244.google.com ([2607:f8b0:400d:c04::244]:36775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aobJS-0001UG-NW for qemu-devel@nongnu.org; Fri, 08 Apr 2016 14:39:22 -0400 Received: by mail-qg0-x244.google.com with SMTP id f105so10775615qge.3 for ; Fri, 08 Apr 2016 11:39:22 -0700 (PDT) Sender: Richard Henderson References: <1460050358-25025-1-git-send-email-cota@braap.org> <1460050358-25025-8-git-send-email-cota@braap.org> From: Richard Henderson Message-ID: <5707FAD7.5010703@twiddle.net> Date: Fri, 8 Apr 2016 11:39:19 -0700 MIME-Version: 1.0 In-Reply-To: <1460050358-25025-8-git-send-email-cota@braap.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 07/13] qemu-thread: call cpu_relax() while spinning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , QEMU Developers , MTTCG Devel Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Paolo Bonzini , Peter Crosthwaite , Peter Maydell , Sergey Fedorov On 04/07/2016 10:32 AM, Emilio G. Cota wrote: > do { > - while (atomic_read(&spin->value)); > + while (atomic_read(&spin->value)) { > + cpu_relax(); > + } Please just merge this with the previous patch. r~