From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4DQ3-0006WI-Oq for qemu-devel@nongnu.org; Tue, 20 Apr 2010 09:23:15 -0400 Received: from [140.186.70.92] (port=51584 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4DPx-0006Ta-4H for qemu-devel@nongnu.org; Tue, 20 Apr 2010 09:23:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4DPq-0007c2-UH for qemu-devel@nongnu.org; Tue, 20 Apr 2010 09:23:04 -0400 Received: from mx20.gnu.org ([199.232.41.8]:49513) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4DPq-0007bq-QG for qemu-devel@nongnu.org; Tue, 20 Apr 2010 09:23:02 -0400 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1O4DPq-0008CP-9I for qemu-devel@nongnu.org; Tue, 20 Apr 2010 09:23:02 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] virtio-spec: document block CMD and FLUSH Date: Tue, 20 Apr 2010 14:22:58 +0100 References: <20100218222220.GA14847@redhat.com> <20100420014635.GE21899@shareable.org> In-Reply-To: <20100420014635.GE21899@shareable.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201004201422.58456.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, "Michael S. Tsirkin" , Rusty Russell , virtualization@lists.linux-foundation.org, hch@lst.de > Does this mean that virtio-blk supports all three combinations? > > 1. FLUSH that isn't a barrier > 2. FLUSH that is also a barrier > 3. Barrier that is not a flush > > 1 is good for fsync-like operations; > 2 is good for journalling-like ordered operations. > 3 sounds like it doesn't mean a lot as the host cache provides no > guarantees and has no ordering facility that can be used. (3) allows the guest to queue overlapping transfers with well defined results. I have no idea how useful this is in practice, but it's certainly plausible. Paul