Re: [PATCH v7 05/13] multifd: Count the number of bytes sent correctly

2022-07-14 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > Current code asumes that all pages are whole. That is not true for > example for compression already. Fix it for creating a new field > ->sent_bytes that includes it. > > All ram_counters are used only from the migration thread, so we have > two opt

RE: [PATCH v7 05/13] multifd: Count the number of bytes sent correctly

2022-06-08 Thread Zhang, Chen
Gilbert ; Juan Quintela > ; Eduardo Habkost ; Peter > Xu ; Leonardo Bras > Subject: [PATCH v7 05/13] multifd: Count the number of bytes sent correctly > > Current code asumes that all pages are whole. That is not true for example > for compression already. Fix it for creating a

[PATCH v7 05/13] multifd: Count the number of bytes sent correctly

2022-05-31 Thread Juan Quintela
Current code asumes that all pages are whole. That is not true for example for compression already. Fix it for creating a new field ->sent_bytes that includes it. All ram_counters are used only from the migration thread, so we have two options: - put a mutex and fill everything when we sent it (