From: Anthony Liguori <aliguori@us.ibm.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [RFC PATCH] qed: add support for Copy-on-Read
Date: Fri, 01 Apr 2011 07:36:17 -0500 [thread overview]
Message-ID: <4D95C6C1.8070109@us.ibm.com> (raw)
In-Reply-To: <4D95B2D0.2040702@redhat.com>
On 04/01/2011 06:11 AM, Kevin Wolf wrote:
> Am 31.03.2011 03:08, schrieb Anthony Liguori:
>> When creating an image using qemu-img, just pass '-o copy_on_read' and then
>> whenever QED reads from a backing file, it will write the block to the QED
>> file after the read completes ensuring that you only fetch from the backing
>> device once.
> As you probably know, I don't agree with the interface. Copy on read
> should be first and foremost a runtime option. It's okay to fetch the
> default for this option from the image file, but it's not the right
> primary interface.
That's the main reason I posted this. I wanted to revisit that
discussion and see if we're any close to having a primary interface for
this.
I think blockdev is still a ways off. Would a -drive
file=image.img,cor=on make sense as an intermediate mechanism?
>> This is very useful for streaming images over a slow connection.
>>
>> This isn't ready for merge yet as it's not playing nice with synchronize I/O.
> Like Stefan I'm not sure what you mean here.
>
> One problem that I see is that if you have a concurrent write request
> from the guest, the COR write request may overwrite the guest's request,
> which is obviously wrong. Is this what you mean?
Yes, I think you're right here but I don't think this is the issue. But
surely the semantics of a simultaneous read/write are undefined at least
on the read side. I guess having the write be undefined is unexpected.
Regards,
Anthony Liguori
> Kevin
next prev parent reply other threads:[~2011-04-01 12:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-31 1:08 [Qemu-devel] [RFC PATCH] qed: add support for Copy-on-Read Anthony Liguori
2011-04-01 9:42 ` [Qemu-devel] " Stefan Hajnoczi
2011-04-01 12:28 ` Anthony Liguori
2011-04-01 11:11 ` [Qemu-devel] " Kevin Wolf
2011-04-01 12:36 ` Anthony Liguori [this message]
2011-04-01 12:44 ` Kevin Wolf
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=4D95C6C1.8070109@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.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).