Received: from eggs.gnu.org ([140.186.70.92]:50795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCvP7-0005c7-VC for qemu-devel@nongnu.org; Sun, 09 Oct 2011 11:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCvP6-0003DJ-QN for qemu-devel@nongnu.org; Sun, 09 Oct 2011 11:35:05 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:58528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCvP6-0003A8-Nk for qemu-devel@nongnu.org; Sun, 09 Oct 2011 11:35:04 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e7.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p99EDThq022487 for ; Sun, 9 Oct 2011 10:13:29 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p99FYsYO257778 for ; Sun, 9 Oct 2011 11:34:54 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p99FYsBo025994 for ; Sun, 9 Oct 2011 11:34:54 -0400 From: "Aneesh Kumar K.V" In-Reply-To: References: <1317969967-8983-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Date: Sun, 09 Oct 2011 21:04:40 +0530 Message-ID: <87ty7i9o1b.fsf@skywalker.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: Stefan Hajnoczi Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org On Sat, 8 Oct 2011 12:24:37 +0100, Stefan Hajnoczi wro= te: > 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_SYN= C open flag > > > > Signed-off-by: Aneesh Kumar K.V > > --- > > =C2=A0fsdev/file-op-9p.h =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A01 + > > =C2=A0fsdev/qemu-fsdev.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 10 ++++++= ++-- > > =C2=A0fsdev/qemu-fsdev.h =C2=A0 =C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A02 ++ > > =C2=A0hw/9pfs/virtio-9p-device.c | =C2=A0 =C2=A05 +++++ > > =C2=A0hw/9pfs/virtio-9p.c =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0 24 ++++++= ++++++++++++------ > > =C2=A0qemu-config.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| = =C2=A0 =C2=A06 ++++++ > > =C2=A0qemu-options.hx =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| =C2=A0= 17 ++++++++++++----- > > =C2=A0vl.c =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A06 ++++++ > > =C2=A08 files changed, 58 insertions(+), 13 deletions(-) >=20 > When would this be used? For serving up vanilla 9P? >=20 > I think 9P.u and 9P.l have support for fsync(2) while vanilla 9P does not. >=20 TFSYNC is added by 9p.L. So we would need this for 9p.u. Another use case is to ensure that we don't leave pages on host as dirty. That would ensure that large writeback from a guest don't result in large number of dirty pages on the host, thereby resulting in writeback in the host. It would be needed for predictable I/O behavior in a setup where we have multiple guest. -aneesh