Received: from eggs.gnu.org ([2001:4830:134:3::10]:56594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnU9c-0002xo-D8 for qemu-devel@nongnu.org; Fri, 23 Sep 2016 13:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnU9W-00048z-JG for qemu-devel@nongnu.org; Fri, 23 Sep 2016 13:20:51 -0400 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]:33116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnU9W-00048i-EH for qemu-devel@nongnu.org; Fri, 23 Sep 2016 13:20:46 -0400 Received: by mail-it0-x244.google.com with SMTP id x192so1411345itb.0 for ; Fri, 23 Sep 2016 10:20:46 -0700 (PDT) Sender: Richard Henderson References: <1474615909-17069-1-git-send-email-pbonzini@redhat.com> <1474615909-17069-10-git-send-email-pbonzini@redhat.com> From: Richard Henderson Message-ID: <5b0bef31-8e08-36eb-498e-32367b191401@twiddle.net> Date: Fri, 23 Sep 2016 10:20:43 -0700 MIME-Version: 1.0 In-Reply-To: <1474615909-17069-10-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 09/16] cpus-common: move exclusive work infrastructure from linux-user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: serge.fdrv@gmail.com, cota@braap.org, alex.bennee@linaro.org, sergey.fedorov@linaro.org On 09/23/2016 12:31 AM, Paolo Bonzini wrote: > This will serve as the base for async_safe_run_on_cpu. Because > start_exclusive uses CPU_FOREACH, merge exclusive_lock with > qemu_cpu_list_lock: together with a call to exclusive_idle (via > cpu_exec_start/end) in cpu_list_add, this protects exclusive work > against concurrent CPU addition and removal. > > Reviewed-by: Alex Bennée > Signed-off-by: Paolo Bonzini > --- > bsd-user/main.c | 17 ----------- > cpus-common.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++ > cpus.c | 2 ++ > include/qom/cpu.h | 44 +++++++++++++++++++++++++++- > linux-user/main.c | 87 ------------------------------------------------------- > 5 files changed, 127 insertions(+), 105 deletions(-) Reviewed-by: Richard Henderson r~