Re: [Qemu-devel] [PATCH v9 03/14] qcow2: Optimize bdrv_make_empty()

2014-07-09 Thread Max Reitz
On 09.07.2014 23:22, Paolo Bonzini wrote: Il 05/07/2014 19:47, Max Reitz ha scritto: bdrv_make_empty() is currently only called if the current image represents an external snapshot that has been committed to its base image; it is therefore unlikely to have internal snapshots. In this case, bdrv_

Re: [Qemu-devel] [PATCH v9 03/14] qcow2: Optimize bdrv_make_empty()

2014-07-09 Thread Paolo Bonzini
Il 05/07/2014 19:47, Max Reitz ha scritto: bdrv_make_empty() is currently only called if the current image represents an external snapshot that has been committed to its base image; it is therefore unlikely to have internal snapshots. In this case, bdrv_make_empty() can be greatly sped up by crea

[Qemu-devel] [PATCH v9 03/14] qcow2: Optimize bdrv_make_empty()

2014-07-05 Thread Max Reitz
bdrv_make_empty() is currently only called if the current image represents an external snapshot that has been committed to its base image; it is therefore unlikely to have internal snapshots. In this case, bdrv_make_empty() can be greatly sped up by creating an empty L1 table and dropping all data