From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCV1E-0002O8-E7 for qemu-devel@nongnu.org; Sat, 08 Oct 2011 07:24:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCV1D-00065w-9h for qemu-devel@nongnu.org; Sat, 08 Oct 2011 07:24:40 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:43139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCV1C-00065o-RH for qemu-devel@nongnu.org; Sat, 08 Oct 2011 07:24:39 -0400 Received: by ywm39 with SMTP id 39so5296996ywm.4 for ; Sat, 08 Oct 2011 04:24:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1317969967-8983-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1317969967-8983-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Date: Sat, 8 Oct 2011 12:24:37 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/2] hw/9pfs: Add new virtfs option cache=writethrough to skip host page cache List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Aneesh Kumar K.V" Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On Fri, Oct 7, 2011 at 7:46 AM, Aneesh Kumar K.V wrote: > cache=3Dwritethrough implies the file are opened in the host with O_SYNC = open flag > > Signed-off-by: Aneesh Kumar K.V > --- > =A0fsdev/file-op-9p.h =A0 =A0 =A0 =A0 | =A0 =A01 + > =A0fsdev/qemu-fsdev.c =A0 =A0 =A0 =A0 | =A0 10 ++++++++-- > =A0fsdev/qemu-fsdev.h =A0 =A0 =A0 =A0 | =A0 =A02 ++ > =A0hw/9pfs/virtio-9p-device.c | =A0 =A05 +++++ > =A0hw/9pfs/virtio-9p.c =A0 =A0 =A0 =A0| =A0 24 ++++++++++++++++++------ > =A0qemu-config.c =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A06 ++++++ > =A0qemu-options.hx =A0 =A0 =A0 =A0 =A0 =A0| =A0 17 ++++++++++++----- > =A0vl.c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 =A06 ++++++ > =A08 files changed, 58 insertions(+), 13 deletions(-) When would this be used? For serving up vanilla 9P? I think 9P.u and 9P.l have support for fsync(2) while vanilla 9P does not. Stefan