From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54302 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyqae-0007tt-Ct for qemu-devel@nongnu.org; Sun, 13 Mar 2011 15:04:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pyqac-0001g0-W2 for qemu-devel@nongnu.org; Sun, 13 Mar 2011 15:04:32 -0400 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:46158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pyqac-0001fe-A9 for qemu-devel@nongnu.org; Sun, 13 Mar 2011 15:04:30 -0400 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp05.in.ibm.com (8.14.4/8.13.1) with ESMTP id p2DJ4R8u004692 for ; Mon, 14 Mar 2011 00:34:27 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p2DJ4RVo4464886 for ; Mon, 14 Mar 2011 00:34:27 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p2DJ4QpI006722 for ; Mon, 14 Mar 2011 06:04:27 +1100 From: "Aneesh Kumar K. V" Subject: Re: [Qemu-devel] [PATCH -V3 7/8] hw/9pfs: Add new virtfs option cache=none to skip host page cache In-Reply-To: References: <1299347533-17047-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1299347533-17047-7-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Date: Mon, 14 Mar 2011 00:34:24 +0530 Message-ID: <87y64iq1tz.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On Sun, 13 Mar 2011 17:23:50 +0000, Stefan Hajnoczi wrote: > On Sat, Mar 5, 2011 at 5:52 PM, Aneesh Kumar K.V > wrote: > > cache=none implies the file are opened in the host with O_SYNC open flag > > O_SYNC does not bypass the host page cache. It ensures that writes > only complete once data has been written to the disk. > > O_DIRECT is a hint to bypass the host page cache when possible. > > A boolean on|off option would be nicer than an option that takes the > special string "none". For example, direct=on|off. It also makes the > code nicer by using bools instead of strdup strings that get leaked. > What i wanted is the O_SYNC behavior. Well the comment should be updated. I want to make sure that we don't have dirty data in host page cache after a write. It is always good to make read hit the page cache -aneesh