From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZpjK-00073I-Sw for qemu-devel@nongnu.org; Thu, 11 Jan 2018 22:10:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZpjJ-0000L8-Rd for qemu-devel@nongnu.org; Thu, 11 Jan 2018 22:10:06 -0500 Date: Fri, 12 Jan 2018 11:09:54 +0800 From: Fam Zheng Message-ID: <20180112030954.GC29151@lemon.usersys.redhat.com> References: <20180110091846.10699-1-famz@redhat.com> <20180110091846.10699-4-famz@redhat.com> <20180110183304.GE24212@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180110183304.GE24212@stefanha-x1.localdomain> Subject: Re: [Qemu-devel] [PATCH v4 3/9] block: Add VFIO based NVMe driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Paolo Bonzini , Keith Busch , qemu-block@nongnu.org, Kevin Wolf , Max Reitz , Eric Blake , Markus Armbruster , Karl Rister On Wed, 01/10 18:33, Stefan Hajnoczi wrote: > > + ret = event_notifier_init(&s->irq_notifier, 0); > > + if (ret) { > > + error_setg(errp, "Failed to init event notifier"); > > + return ret; > > dma_map_lock should be destroyed. CoMutexes are initialized by memset so I don't think destroying is necessary: void qemu_co_mutex_init(CoMutex *mutex) { memset(mutex, 0, sizeof(*mutex)); } (I agree to and will fix other issues you pointed out. Thanks for the quick review!) Fam