From: Jamie Lokier <jamie@shareable.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Flush pending AIO on reboot and shutdown.
Date: Thu, 14 Aug 2008 11:26:35 +0100 [thread overview]
Message-ID: <20080814102635.GD682@shareable.org> (raw)
In-Reply-To: <48A33057.6010207@codemonkey.ws>
Anthony Liguori wrote:
> Gleb Natapov wrote:
> >On Wed, Aug 13, 2008 at 09:40:34PM +0300, Avi Kivity wrote:
> >
> >>Gleb Natapov wrote:
> >>
> >>>but what bother me is that we
> >>>consciously drop user data that we can easily save. Why? Real HW tries
> >>>hard to save every bit of user data and we just decided to drop it. The
> >>>difference between cancel or complete a request may be corrupted or not
> >>>corrupted file system after a crash.
> >>>
> >>>
> >>>
> >>If a guest didn't wait for an I/O to complete, it shouldn't expect it to
> >>be on disk.
> >>
> >If you'll save your swiss bank account details in file and suddenly
> >your guest will crash, you'll surely appreciate if qemu will save it
> >for you :)
> >
> >
> >>Of course, we can have the IDE layer wait instead of cancelling, which
> >>will get the request onto the disk.
> >>
> >>
> >That is the current approach, but the wait is done for all block IO not
> >just IDE.
> >
>
> If the guest hasn't seen confirmation that the data is on disk, as far
> as the guest is concerned, it's not on disk.
>
> If you have a journalled file system, for instance, unless it receives
> that notification, it's going to replay whatever has happened in the
> journal since the last successful write operation. Practically
> speaking, I don't think you're saving data.
Except for old guests. Old guests don't have journalled filesystems
and use the "pray it works" method. With old hardware it generally
does work, with newer hardware its a bit less reliable. E.g. old
disks and old BIOSes don't enable disk write cache, and old guests
don't know anything about it.
-- Jamie
next prev parent reply other threads:[~2008-08-14 10:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 13:23 [Qemu-devel] [PATCH] Flush pending AIO on reboot and shutdown Gleb Natapov
2008-08-13 13:46 ` Samuel Thibault
2008-08-13 13:59 ` Gleb Natapov
2008-08-13 14:06 ` Samuel Thibault
2008-08-13 14:25 ` Gleb Natapov
2008-08-13 14:29 ` Samuel Thibault
2008-08-13 14:40 ` Avi Kivity
2008-08-13 14:41 ` Gleb Natapov
2008-08-13 16:14 ` Samuel Thibault
2008-08-13 13:52 ` Anthony Liguori
2008-08-13 14:13 ` Gleb Natapov
2008-08-13 15:07 ` Anthony Liguori
2008-08-13 15:18 ` Avi Kivity
2008-08-13 15:47 ` Anthony Liguori
2008-08-13 16:36 ` Avi Kivity
2008-08-13 15:23 ` Gleb Natapov
2008-08-13 15:53 ` Anthony Liguori
2008-08-13 18:35 ` Gleb Natapov
2008-08-13 18:40 ` Avi Kivity
2008-08-13 18:53 ` Gleb Natapov
2008-08-13 19:04 ` Anthony Liguori
2008-08-14 10:26 ` Jamie Lokier [this message]
2008-08-13 19:03 ` Anthony Liguori
2008-08-13 22:32 ` Samuel Thibault
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=20080814102635.GD682@shareable.org \
--to=jamie@shareable.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 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).