Re: [Qemu-devel] [PATCH v2 7/7] qcow2: Merge the writing of the COW regions with the guest data

2017-06-19 Thread Alberto Garcia
On Fri 16 Jun 2017 05:31:42 PM CEST, Kevin Wolf wrote: >> +/* Make sure that adding both COW regions to the QEMUIOVector >> + * does not exceed IOV_MAX */ >> +if (hd_qiov->niov > IOV_MAX - 2) { >> +continue; >> +} >> + >> +m->data_qiov = hd_qiov;

Re: [Qemu-devel] [PATCH v2 7/7] qcow2: Merge the writing of the COW regions with the guest data

2017-06-16 Thread Kevin Wolf
Am 07.06.2017 um 16:08 hat Alberto Garcia geschrieben: > If the guest tries to write data that results on the allocation of a > new cluster, instead of writing the guest data first and then the data > from the COW regions, write everything together using one single I/O > operation. > > This can im

[Qemu-devel] [PATCH v2 7/7] qcow2: Merge the writing of the COW regions with the guest data

2017-06-07 Thread Alberto Garcia
If the guest tries to write data that results on the allocation of a new cluster, instead of writing the guest data first and then the data from the COW regions, write everything together using one single I/O operation. This can improve the write performance by 25% or more, depending on several fa