[PATCH 21/21] migration/multifd: Compute transferred bytes correctly

2023-05-08 Thread Juan Quintela
In the past, we had to put the in the main thread all the operations related with sizes due to qemu_file not beeing thread safe. As now all counters are atomic, we can update the counters just after the do the write. As an aditional bonus, we are able to use the right value for the compression me

Re: [PATCH 21/21] migration/multifd: Compute transferred bytes correctly

2023-05-18 Thread Peter Xu
On Mon, May 08, 2023 at 03:09:09PM +0200, Juan Quintela wrote: > In the past, we had to put the in the main thread all the operations > related with sizes due to qemu_file not beeing thread safe. As now > all counters are atomic, we can update the counters just after the > do the write. As an adi

Re: [PATCH 21/21] migration/multifd: Compute transferred bytes correctly

2023-05-18 Thread Juan Quintela
Peter Xu wrote: > On Mon, May 08, 2023 at 03:09:09PM +0200, Juan Quintela wrote: >> In the past, we had to put the in the main thread all the operations >> related with sizes due to qemu_file not beeing thread safe. As now >> all counters are atomic, we can update the counters just after the >> d

Re: [PATCH 21/21] migration/multifd: Compute transferred bytes correctly

2023-05-18 Thread Peter Xu
On Thu, May 18, 2023 at 06:40:18PM +0200, Juan Quintela wrote: > Peter Xu wrote: > > On Mon, May 08, 2023 at 03:09:09PM +0200, Juan Quintela wrote: > >> In the past, we had to put the in the main thread all the operations > >> related with sizes due to qemu_file not beeing thread safe. As now > >