Re: [Qemu-devel] [v3 04/13] qemu-file: Add tow function will be used in migration

2015-01-24 Thread Li, Liang Z
> > +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); > >

Re: [Qemu-devel] [v3 04/13] qemu-file: Add tow function will be used in migration

2015-01-23 Thread Dr. David Alan Gilbert
* 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

[Qemu-devel] [v3 04/13] qemu-file: Add tow function will be used in migration

2014-12-11 Thread Liang Li
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 |