From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aktw5-0004cL-Md for qemu-devel@nongnu.org; Tue, 29 Mar 2016 09:43:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aktw2-00031Z-Q4 for qemu-devel@nongnu.org; Tue, 29 Mar 2016 09:43:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aktw2-00031S-Lo for qemu-devel@nongnu.org; Tue, 29 Mar 2016 09:43:54 -0400 Date: Tue, 29 Mar 2016 16:43:52 +0300 From: "Michael S. Tsirkin" Message-ID: <20160329164303-mutt-send-email-mst@redhat.com> References: <1459258923-10319-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459258923-10319-1-git-send-email-mst@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/2] dataplane: fix start/stop races List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Cornelia Huck , pbonzini@redhat.com On Tue, Mar 29, 2016 at 04:42:09PM +0300, Michael S. Tsirkin wrote: > This works around races that data plane introduces > simply by exiting immediately if we detect > that dataplane is active. > > It's a small but ugly patch, it's only justification > is that it's minimally intrusive, and that it clearly > has no chance to break non data plane users. > > The idea is to rework it all post 2.6. Testing status: lightly tested. > Michael S. Tsirkin (2): > virtio: add aio handler > virtio-blk: use aio handler for data plane > > include/hw/virtio/virtio-blk.h | 2 ++ > include/hw/virtio/virtio.h | 4 ++++ > hw/block/dataplane/virtio-blk.c | 13 +++++++++++++ > hw/block/virtio-blk.c | 28 ++++++++++++++++++---------- > hw/virtio/virtio.c | 36 ++++++++++++++++++++++++++++++++---- > 5 files changed, 69 insertions(+), 14 deletions(-) > > -- > MST >