qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] hw/9pfs: Add new virtfs option cache=writethrough to skip host page cache
Date: Sun, 09 Oct 2011 21:04:40 +0530	[thread overview]
Message-ID: <87ty7i9o1b.fsf@skywalker.in.ibm.com> (raw)
In-Reply-To: <CAJSP0QUA6j4zFwSLMNQL_s_STu1AXa61stW3ZuWUH_GLBirCDQ@mail.gmail.com>

On Sat, 8 Oct 2011 12:24:37 +0100, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Fri, Oct 7, 2011 at 7:46 AM, Aneesh Kumar K.V
> <aneesh.kumar@linux.vnet.ibm.com> wrote:
> > cache=writethrough implies the file are opened in the host with O_SYNC open flag
> >
> > Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> > ---
> >  fsdev/file-op-9p.h         |    1 +
> >  fsdev/qemu-fsdev.c         |   10 ++++++++--
> >  fsdev/qemu-fsdev.h         |    2 ++
> >  hw/9pfs/virtio-9p-device.c |    5 +++++
> >  hw/9pfs/virtio-9p.c        |   24 ++++++++++++++++++------
> >  qemu-config.c              |    6 ++++++
> >  qemu-options.hx            |   17 ++++++++++++-----
> >  vl.c                       |    6 ++++++
> >  8 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.
> 

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

  reply	other threads:[~2011-10-09 15:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07  6:46 [Qemu-devel] [PATCH 1/2] hw/9pfs: Add new virtfs option cache=writethrough to skip host page cache Aneesh Kumar K.V
2011-10-07  6:46 ` [Qemu-devel] [PATCH 2/2] qemu-options.hx: Update virtfs command documentation Aneesh Kumar K.V
2011-10-08 11:24 ` [Qemu-devel] [PATCH 1/2] hw/9pfs: Add new virtfs option cache=writethrough to skip host page cache Stefan Hajnoczi
2011-10-09 15:34   ` Aneesh Kumar K.V [this message]
2011-10-09 16:16     ` Stefan Hajnoczi
2011-10-09 18:35       ` Aneesh Kumar K.V
2011-10-10  4:54         ` Stefan Hajnoczi
2011-10-10  9:06           ` Aneesh Kumar K.V
2011-10-12  9:55             ` Stefan Hajnoczi
2011-10-12 13:19               ` Aneesh Kumar K.V
2011-10-12 14:32                 ` Stefan Hajnoczi
2011-10-12 15:15                   ` Aneesh Kumar K.V
2011-10-13 14:45                     ` Stefan Hajnoczi
  -- strict thread matches above, loose matches on Subject: below --
2011-06-06 17:17 Aneesh Kumar K.V

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ty7i9o1b.fsf@skywalker.in.ibm.com \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).