Received: from eggs.gnu.org ([2001:4830:134:3::10]:41170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2I0T-0000f7-JO for qemu-devel@nongnu.org; Thu, 25 Jul 2013 05:38:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2I0R-0005UX-Tj for qemu-devel@nongnu.org; Thu, 25 Jul 2013 05:38:45 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:45048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2I0R-0005UJ-Ls for qemu-devel@nongnu.org; Thu, 25 Jul 2013 05:38:43 -0400 Date: Thu, 25 Jul 2013 10:38:40 +0100 From: Alex Bligh Message-ID: In-Reply-To: <51F0EBBA.7060802@redhat.com> References: <1E8E204.8000201@redhat.com> <1374343603-29183-1-git-send-email-alex@alex.org.uk> <1374343603-29183-2-git-send-email-alex@alex.org.uk> <20130725091015.GC21033@stefanha-thinkpad.redhat.com> <51F0EBBA.7060802@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCHv2] [RFC 1/7] aio / timers: Remove alarm timers Reply-To: Alex Bligh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Stefan Hajnoczi Cc: Kevin Wolf , Anthony Liguori , Stefan Hajnoczi , qemu-devel@nongnu.org, Alex Bligh , rth@twiddle.net --On 25 July 2013 11:11:22 +0200 Paolo Bonzini wrote: >> If this function is supposed to work when called from another thread >> (e.g. vcpu thread), then you need to call qemu_notify_event(). For >> AioContext clocks that should be aio_notify() with the relevant >> AioContext, but we don't need that yet. > > In general QEMUClock should have an AioContext pointer so that it can > call aio_notify. OK, if we do that, disregard my comment about always using qemu_notify_event. -- Alex Bligh