> > +size_t migrate_qemu_add_compression_data(QEMUFile *f,
> > +const uint8_t *p, size_t size, int level)
>
> It's an odd name, QEMUFile is only used by migration anyway; maybe
> qemufile_add_compression_data ?
>
> > +{
> > +size_t blen = IO_BUF_SIZE - f->buf_index - sizeof(int);
> >
* Liang Li (liang.z...@intel.com) wrote:
> migrate_qemu_add_compression_data() compress the data
> and put it to QEMUFile. migrate_qemu_flush() put the
> data in the source QEMUFile to destination QEMUFile.
>
> The two function can help to do live migration.
Typo in the title 'tow->two' - but per
migrate_qemu_add_compression_data() compress the data
and put it to QEMUFile. migrate_qemu_flush() put the
data in the source QEMUFile to destination QEMUFile.
The two function can help to do live migration.
Signed-off-by: Liang Li
Signed-off-by: Yang Zhang
---
include/migration/qemu-file.h |