Re: [PATCH v2 12/13] ram compress: Assert that the file buffer matches the result

2023-04-28 Thread Juan Quintela
Lukas Straub wrote: > Before this series, "nothing to send" was handled by the file buffer > being empty. Now it is tracked via param->result. > > Assert that the file buffer state matches the result. > > Signed-off-by: Lukas Straub Reviewed-by: Juan Quintela Even when: > +/* > + * Check if

[PATCH v2 12/13] ram compress: Assert that the file buffer matches the result

2023-04-20 Thread Lukas Straub
Before this series, "nothing to send" was handled by the file buffer being empty. Now it is tracked via param->result. Assert that the file buffer state matches the result. Signed-off-by: Lukas Straub --- migration/qemu-file.c| 11 +++ migration/qemu-file.h| 1 +