All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD
Date: Mon, 18 Mar 2013 09:31:59 +0100	[thread overview]
Message-ID: <5146D0FF.1000008@redhat.com> (raw)
In-Reply-To: <CAFEAcA-2fCESrsmbFzkVuA2qX4E6X+MKdwkMO1rT9UjXJt5UkQ@mail.gmail.com>

Il 17/03/2013 19:54, Peter Maydell ha scritto:
> On 17 March 2013 18:51, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> Il 17/03/2013 01:04, Aurelien Jarno ha scritto:
>>>                           | boot | install build-dep | build lm-sensors |
>>>   ------------------------+------+-------------------+------------------+
>>>   versatile               | 1:09 |             2:27  |             4:09 |
>>>   versatile cache=wb      | 1:08 |             2:25  |             3:44 |
>>
>> Strange, cache=wb should be the default.
>>
>> The real problem with SD is that it doesn't have a flush command, hence
>> it cannot be made safe against power losses.
> 
> So, two things here:
> (a) the way to make it safe against power loss is that when the
> guest writes a block of data it has to really hit the emulated
> disk, because this is how the hardware works
> (b) I thought this was the reason cache=wb wasn't the default (ie
> that we weren't defaulting to 'may lose data on powerloss').

See the commit message that Aurelien posted.  The combination of
"virtio-blk will auto-toggle to writethrough on very old kernels",
"guests can toggle it for all of IDE/SCSI/virtio", "memory cards are
anyway unusable with writethrough" finally made the balance tilt in
favor of cache=wb.

Paolo

  parent reply	other threads:[~2013-03-18  8:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05  0:19 [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD Aurelien Jarno
2013-03-05  0:22 ` Peter Maydell
2013-03-05  0:44   ` Aurelien Jarno
2013-03-06  9:25     ` Markus Armbruster
2013-03-15 15:35     ` Peter Maydell
2013-03-15 15:42       ` Aurelien Jarno
2013-03-15 15:45         ` Peter Maydell
2013-03-17  0:04           ` Aurelien Jarno
2013-03-17  0:23             ` Peter Maydell
2013-03-17 10:17               ` Aurelien Jarno
2013-03-17 10:56                 ` Peter Maydell
2013-03-17 18:51             ` Paolo Bonzini
2013-03-17 18:54               ` Peter Maydell
2013-03-17 19:22                 ` Aurelien Jarno
2013-03-18  8:31                 ` Paolo Bonzini [this message]
2013-03-17 19:20               ` Aurelien Jarno
2013-03-17 18:28       ` Paolo Bonzini

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=5146D0FF.1000008@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=aurelien@aurel32.net \
    --cc=peter.maydell@linaro.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.