From: Kevin Wolf <kwolf@redhat.com>
To: Dushyant Bansal <cs5070214@cse.iitd.ac.in>
Cc: Stefan Hajnoczi <stefanha@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: KVM call agenda for Jan 25
Date: Tue, 15 Mar 2011 11:27:08 +0100 [thread overview]
Message-ID: <4D7F3EFC.3050106@redhat.com> (raw)
In-Reply-To: <4D7E309B.6080800@cse.iitd.ac.in>
Am 14.03.2011 16:13, schrieb Dushyant Bansal:
>>
>> Nice that qemu-img convert isn't that far out by default on raw :).
>>
>> About Google Summer of Code, I have posted my take on applying and
>> want to share that with you and qemu-devel:
>>
>> http://blog.vmsplice.net/2011/03/advice-for-students-applying-to-google.html
>>
> Thanks for sharing your experiences.
>
> After reading about qcow2 and qed and how they organize data (thanks to
> the newly added qcow2 doc and discussions on the mailing list), this is
> what I understand.
>
> So, the main difference between qed and qcow2 is the absence of
> reference count structure in qed(means less meta data).
> It improves performance due to:
> 1. For write operations, less or no metadata to update.
> 2. Data write and metadata write can be in any order
>
> This also means these features are no longer supported:
> 1. Internal snapshots,
> 2. CPU/device state snapshots,
> 3. Compression,
> 4. Encryption
>
> Now, coming to qed<-->qcow2 conversion, I want to clarify some things.
>
> 1. header_size: variable in qed, equals to cluster size in qcow2:
> When will it be larger than 1 cluster in qed? So, what will happen to
> that extra data on qed->qcow2 conversion.
If you have an feature that is used in the original image, but cannot be
represented in the new format, I think you should just get an error.
> 2. L2 table size: equals to L1 table size in qed, equals to cluster size
> in qcow2:
> we need to take it into account during conversion.
Right. I think we'll have to rewrite all of the metadata.
I wonder if we can manage to have a nice block driver interface for
in-place image conversions so that we don't only get a qed<->qcow2
converter, but also can implement the interface in e.g. VMDK and get
VMDK<->qcow2 and VMDK<->qed as well.
> 3. refcount table:
> qcow2->qed:we do not keep refcount structure
> qed->qcow2: initialize refcount structure
Yes, refcounts can be rebuilt after the mapping has been converted.
> So, a qcow2->qed->qcow2 conversion means if earlier, qcow2 image was
> using additional features{1-4}, all information related to that will be
> lost.
We shouldn't lose anything but just abort if a conversion isn't
possible. The user can still use qemu-img convert for the more
complicated cases, for example for removing encryption or compression.
Kevin
next prev parent reply other threads:[~2011-03-15 10:26 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 13:25 KVM call agenda for Jan 25 Chris Wright
2011-01-24 13:25 ` [Qemu-devel] " Chris Wright
2011-01-24 22:06 ` Anthony Liguori
2011-01-24 22:06 ` [Qemu-devel] " Anthony Liguori
2011-01-25 13:57 ` Luiz Capitulino
2011-01-25 14:02 ` Luiz Capitulino
2011-01-25 14:13 ` Stefan Hajnoczi
2011-01-25 14:13 ` Stefan Hajnoczi
2011-01-29 10:50 ` Dushyant Bansal
2011-01-29 13:16 ` Stefan Hajnoczi
2011-02-25 17:42 ` Dushyant Bansal
2011-02-26 14:05 ` Stefan Hajnoczi
2011-02-26 21:50 ` Dushyant Bansal
2011-02-27 10:49 ` Stefan Hajnoczi
2011-02-28 7:36 ` Markus Armbruster
2011-02-28 20:41 ` Dushyant Bansal
2011-03-01 9:40 ` Stefan Hajnoczi
2011-03-14 15:13 ` Dushyant Bansal
2011-03-15 10:27 ` Kevin Wolf [this message]
2011-03-16 14:17 ` Dushyant Bansal
2011-03-16 17:47 ` Stefan Hajnoczi
2011-03-17 10:07 ` Kevin Wolf
2011-03-26 21:56 ` Dushyant Bansal
2011-03-28 10:26 ` Kevin Wolf
2011-01-25 14:11 ` Aurelien Jarno
2011-01-25 14:11 ` Aurelien Jarno
2011-01-25 14:27 ` Anthony Liguori
2011-01-25 14:27 ` Anthony Liguori
2011-01-25 14:42 ` Kevin Wolf
2011-01-25 14:42 ` Kevin Wolf
2011-01-25 15:29 ` Aurelien Jarno
2011-01-25 14:26 ` Avi Kivity
2011-01-25 14:26 ` [Qemu-devel] " Avi Kivity
2011-01-25 14:35 ` Stefan Hajnoczi
2011-01-25 14:35 ` [Qemu-devel] " Stefan Hajnoczi
2011-01-26 9:58 ` Avi Kivity
2011-01-26 9:58 ` [Qemu-devel] " Avi Kivity
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=4D7F3EFC.3050106@redhat.com \
--to=kwolf@redhat.com \
--cc=cs5070214@cse.iitd.ac.in \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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 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.