From: Avi Kivity <avi@redhat.com>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@us.ibm.com>, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] Expand cache= option and use write-through caching by default
Date: Sat, 11 Oct 2008 08:54:44 +0200 [thread overview]
Message-ID: <48F04DB4.5090807@redhat.com> (raw)
In-Reply-To: <1223671759-26576-1-git-send-email-aliguori@us.ibm.com>
Anthony Liguori wrote:
> This patch changes the cache= option to accept none, writeback, or writethough
> to control the host page cache behavior. By default, writethrough caching is
> now used which internally is implemented by using O_DSYNC to open the disk
> images. When using -snapshot, writeback is used by default since data integrity
> it not at all an issue.
>
> cache=none has the same behavior as cache=off previously. The later syntax is
> still supported by now deprecated. I also cleaned up the O_DIRECT
> implementation to avoid many of the #ifdefs.
>
>
Looks good.
> @@ -8069,7 +8075,7 @@ static void help(int exitcode)
> "-cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)\n"
> "-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n"
> " [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]\n"
> - " [,cache=on|off][,format=f]\n"
> + " [,cache=writethrough|writeback|none][,format=f]\n"
> " use 'file' as a drive image\n"
> "-mtdblock file use 'file' as on-board Flash memory image\n"
> "-sd file use 'file' as SecureDigital card image\n"
>
>
Might want to specify the default, and also document it in the manual.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
prev parent reply other threads:[~2008-10-11 6:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-10 20:49 [PATCH] Expand cache= option and use write-through caching by default Anthony Liguori
2008-10-10 20:49 ` [Qemu-devel] " Anthony Liguori
2008-10-11 6:54 ` Avi Kivity [this message]
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=48F04DB4.5090807@redhat.com \
--to=avi@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.