From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akwYS-0002Bw-5B for qemu-devel@nongnu.org; Tue, 29 Mar 2016 12:31:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akwYO-0007KA-VX for qemu-devel@nongnu.org; Tue, 29 Mar 2016 12:31:44 -0400 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:34294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akwYO-0007Jw-M0 for qemu-devel@nongnu.org; Tue, 29 Mar 2016 12:31:40 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 29 Mar 2016 17:31:39 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 87A5317D805F for ; Tue, 29 Mar 2016 17:32:15 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2TGVbAi66125956 for ; Tue, 29 Mar 2016 16:31:37 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2TGVbNa006175 for ; Tue, 29 Mar 2016 10:31:37 -0600 References: <1459258923-10319-1-git-send-email-mst@redhat.com> From: Christian Borntraeger Message-ID: <56FAADE8.2070708@de.ibm.com> Date: Tue, 29 Mar 2016 18:31:36 +0200 MIME-Version: 1.0 In-Reply-To: <1459258923-10319-1-git-send-email-mst@redhat.com> Content-Type: text/plain; charset=windows-1252 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" , qemu-devel@nongnu.org Cc: Cornelia Huck , pbonzini@redhat.com, tubo@cn.ibm.com On 03/29/2016 03:42 PM, 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(-) > This also seems to help on my setup.Tu Bo, would be good if you can double check this patch set as well on your setup? Christian