From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIGy6-0001pW-Fx for qemu-devel@nongnu.org; Wed, 29 Jun 2016 10:59:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIGy3-0007Do-Aj for qemu-devel@nongnu.org; Wed, 29 Jun 2016 10:59:58 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:34724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIGy3-0007Di-3V for qemu-devel@nongnu.org; Wed, 29 Jun 2016 10:59:55 -0400 Received: by mail-lf0-x244.google.com with SMTP id l184so5357774lfl.1 for ; Wed, 29 Jun 2016 07:59:54 -0700 (PDT) References: <87inwvdllb.fsf@linaro.org> From: Sergey Fedorov Message-ID: <5773E267.6010209@gmail.com> Date: Wed, 29 Jun 2016 17:59:51 +0300 MIME-Version: 1.0 In-Reply-To: <87inwvdllb.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC 6/8] linux-user: Support CPU work queue List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Sergey Fedorov Cc: qemu-devel@nongnu.org, Riku Voipio , Peter Crosthwaite , patches@linaro.org, Paolo Bonzini , Richard Henderson On 27/06/16 12:31, Alex Bennée wrote: > Sergey Fedorov writes: > >> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h >> index c1f59fa59d2c..23b4b50e0a45 100644 >> --- a/include/exec/exec-all.h >> +++ b/include/exec/exec-all.h >> @@ -407,4 +407,8 @@ extern int singlestep; >> extern CPUState *tcg_current_cpu; >> extern bool exit_request; >> >> +void wait_cpu_work(void); >> +void signal_cpu_work(void); >> +void flush_queued_work(CPUState *cpu); >> + > Now these are public APIs (and have multiple implementations) some doc > comments would be useful here. Sure, I'll do this as soon as I'm sure that this is a right approach. Thanks, Sergey