From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvEJ-00005Q-CC for qemu-devel@nongnu.org; Tue, 29 Mar 2016 11:06:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akvED-0005NW-Ob for qemu-devel@nongnu.org; Tue, 29 Mar 2016 11:06:51 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:36622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvED-0005NC-ES for qemu-devel@nongnu.org; Tue, 29 Mar 2016 11:06:45 -0400 Received: from localhost by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 29 Mar 2016 16:06:44 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9D4574140062 for ; Tue, 29 Mar 2016 16:06:21 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2TF6eNp4718956 for ; Tue, 29 Mar 2016 15:06:40 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2TF6dZ8032395 for ; Tue, 29 Mar 2016 09:06:40 -0600 Date: Tue, 29 Mar 2016 17:06:35 +0200 From: Cornelia Huck Message-ID: <20160329170635.4a9ca122.cornelia.huck@de.ibm.com> In-Reply-To: <1459258923-10319-1-git-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-Transfer-Encoding: 7bit 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: "Michael S. Tsirkin" Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, Christian Borntraeger On Tue, 29 Mar 2016 16:42:09 +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. > > 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(-) > FWIW, this seems to survive an hour or so of reboot loops for me, but that's only a small setup.