Received: from eggs.gnu.org ([2001:4830:134:3::10]:56380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmzed-00070j-RO for qemu-devel@nongnu.org; Thu, 22 Sep 2016 04:46:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmzeV-0000zx-LX for qemu-devel@nongnu.org; Thu, 22 Sep 2016 04:46:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmzeV-0000zl-ER for qemu-devel@nongnu.org; Thu, 22 Sep 2016 04:46:43 -0400 References: <1474289459-15242-1-git-send-email-pbonzini@redhat.com> <1474289459-15242-17-git-send-email-pbonzini@redhat.com> <20160921222746.GB30386@flamenco> From: Paolo Bonzini Message-ID: <68b272ff-2aaf-c3cf-f883-3e8f13fbbbba@redhat.com> Date: Thu, 22 Sep 2016 10:46:38 +0200 MIME-Version: 1.0 In-Reply-To: <20160921222746.GB30386@flamenco> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 16/16] cpus-common: lock-free fast path for cpu_exec_start/end List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" Cc: qemu-devel@nongnu.org, serge.fdrv@gmail.com, alex.bennee@linaro.org, sergey.fedorov@linaro.org On 22/09/2016 00:27, Emilio G. Cota wrote: > Another suggestion is to consistently access pending_cpus atomically, > since now we're accessing it with and without the CPU list mutex held. Yeah, that's a bit of a pain in the ass, but it's a good idea. Paolo