Re: [Qemu-devel] [PATCH] qcow2: Switch L1 table in a single sequence

2013-10-02 Thread Stefan Hajnoczi
On Mon, Sep 30, 2013 at 05:57:21PM +0200, Max Reitz wrote: > Switching the L1 table in memory should be an atomic operation, as far > as possible. Calling qcow2_free_clusters on the old L1 table on disk is > not a good idea when the old L1 table is no longer valid and the address > to the new one h

Re: [Qemu-devel] [PATCH] qcow2: Switch L1 table in a single sequence

2013-10-01 Thread Kevin Wolf
Am 30.09.2013 um 17:57 hat Max Reitz geschrieben: > Switching the L1 table in memory should be an atomic operation, as far > as possible. Calling qcow2_free_clusters on the old L1 table on disk is > not a good idea when the old L1 table is no longer valid and the address > to the new one hasn't yet

Re: [Qemu-devel] [PATCH] qcow2: Switch L1 table in a single sequence

2013-09-30 Thread Eric Blake
On 09/30/2013 09:57 AM, Max Reitz wrote: > Switching the L1 table in memory should be an atomic operation, as far > as possible. Calling qcow2_free_clusters on the old L1 table on disk is > not a good idea when the old L1 table is no longer valid and the address > to the new one hasn't yet been wri

[Qemu-devel] [PATCH] qcow2: Switch L1 table in a single sequence

2013-09-30 Thread Max Reitz
Switching the L1 table in memory should be an atomic operation, as far as possible. Calling qcow2_free_clusters on the old L1 table on disk is not a good idea when the old L1 table is no longer valid and the address to the new one hasn't yet been written into the corresponding BDRVQcowState field.