From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBLp1-00060r-5t for qemu-devel@nongnu.org; Mon, 19 Aug 2013 05:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBLov-0004OG-4N for qemu-devel@nongnu.org; Mon, 19 Aug 2013 05:32:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBLou-0004O1-Sq for qemu-devel@nongnu.org; Mon, 19 Aug 2013 05:32:17 -0400 Message-ID: <5211E5F0.3040304@redhat.com> Date: Mon, 19 Aug 2013 11:31:28 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1376372630-1983-1-git-send-email-pingfank@linux.vnet.ibm.com> <1376372630-1983-5-git-send-email-pingfank@linux.vnet.ibm.com> <520A4877.4080202@redhat.com> <5210E011.2010008@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 4/4] timer: make qemu_clock_enable sync between disable and timer's cb List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liu ping fan Cc: Kevin Wolf , Stefan Hajnoczi , Jan Kiszka , qemu-devel@nongnu.org, Alex Bligh , MORITA Kazutaka Il 19/08/2013 09:14, liu ping fan ha scritto: >> > But does timerlists need a lock, or does the BQL suffice? If it >> > doesn't, there is no need for events_list_lock either. Is >> > qemu_clock_enable called outside the BQL? >> > > Currently, no such guarantee based on BQL. But if we enforce that an > backend thread holds BQL before it cleans up resources, we can resort > to BQL. (so document this, and save the events_list_lock?) Yes, please. Paolo