From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMCqv-0004Ni-DA for qemu-devel@nongnu.org; Thu, 21 Jan 2016 05:52:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMCqr-0008FI-De for qemu-devel@nongnu.org; Thu, 21 Jan 2016 05:52:33 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMCqr-0008F6-6g for qemu-devel@nongnu.org; Thu, 21 Jan 2016 05:52:29 -0500 Received: by mail-wm0-x236.google.com with SMTP id l65so214623607wmf.1 for ; Thu, 21 Jan 2016 02:52:29 -0800 (PST) Sender: Paolo Bonzini References: <1453110880.23289.7.camel@redhat.com> <20160119125109.GA4579@noname.redhat.com> <20160121095811.GA3671@stefanha-x1.localdomain> <1453372760.11655.69.camel@redhat.com> From: Paolo Bonzini Message-ID: <56A0B869.6040305@redhat.com> Date: Thu, 21 Jan 2016 11:52:25 +0100 MIME-Version: 1.0 In-Reply-To: <1453372760.11655.69.camel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] RFC: running the user interface in a thread ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , Stefan Hajnoczi Cc: Kevin Wolf , David Airlie , =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel On 21/01/2016 11:39, Gerd Hoffmann wrote: > How does BH signaling work? I know I can qemu_bh_schedule from !main > thread to kick BH in main thread context. The other way around works > using aio_bh_new + aio_bh_call I guess? Yes. The code will run in the iothread. Note that I'm modifying AioContext to *require* an IOThread if you use it outside the main thread. Paolo