From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, mreitz@redhat.com
Subject: Re: [Qemu-devel] [PATCH] block: Formats don't need CONSISTENT_READ with NO_IO
Date: Fri, 1 Dec 2017 07:42:32 -0600 [thread overview]
Message-ID: <092b8064-40b3-d8fb-45d1-fccb13d2d497@redhat.com> (raw)
In-Reply-To: <20171201124131.GD4147@localhost.localdomain>
On 12/01/2017 06:41 AM, Kevin Wolf wrote:
>>
>> I guess it is the block of writes/resizes that prevents metadata from
>> getting inconsistent; CONSISTENT_READ does indeed make more sense if
>> interpreted solely in light of will the guest read consistent data
>> (and not will the format layer see consistent contents from the
>> protocol layer).
>
> Yes, that's what the write/resize locks are meant for.
>
> Consistent read is more about "this image may not contain the useful
> data you're expecting".
>
>
>> I'm not opposed to your patch, but am trying to make sure that I'm not
>> overlooking any problem before giving R-b. Maybe it's just that the
>> comment needs updating in v2.
>
> Do you have a suggestion for the comment?
Perhaps:
Commit 1f4ad7d fixed 'qemu-img info' for raw images that are currently
in use as a mirror target. It is not enough for image formats, though,
as these still unconditionally request BLK_PERM_CONSISTENT_READ.
As this permission is geared towards whether the guest-visible data is
consistent, and has no impact on whether the metadata is sane, and
'qemu-img info' does not read guest-visible data (except for the raw
format), it makes sense to not require BLK_PERM_CONSISTENT_READ if there
is not going to be any guest I/O performed, regardless of image format.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
prev parent reply other threads:[~2017-12-01 16:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 16:44 [Qemu-devel] [PATCH] block: Formats don't need CONSISTENT_READ with NO_IO Kevin Wolf
2017-11-30 17:09 ` Eric Blake
2017-11-30 18:27 ` Kevin Wolf
2017-11-30 19:05 ` Eric Blake
2017-12-01 12:41 ` Kevin Wolf
2017-12-01 13:42 ` Eric Blake [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=092b8064-40b3-d8fb-45d1-fccb13d2d497@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.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).