@ -256,7 +256,7 @@ int64_t ramblock_recv_bitmap_send(QEMUFile *file,
/*
/*
* Always use little endian when sending the bitmap . This is
* Always use little endian when sending the bitmap . This is
* required that when source and destination VMs are not using the
* required that when source and destination VMs are not using the
* same endianess . ( Note : big endian won ' t work . )
* same endiann ess . ( Note : big endian won ' t work . )
*/
*/
bitmap_to_le ( le_bitmap , block - > receivedmap , nbits ) ;
bitmap_to_le ( le_bitmap , block - > receivedmap , nbits ) ;
@ -275,7 +275,7 @@ int64_t ramblock_recv_bitmap_send(QEMUFile *file,
qemu_put_buffer ( file , ( const uint8_t * ) le_bitmap , size ) ;
qemu_put_buffer ( file , ( const uint8_t * ) le_bitmap , size ) ;
/*
/*
* Mark as an end , in case the middle part is screwed up due to
* Mark as an end , in case the middle part is screwed up due to
* some " mi sterious " reason .
* some " my sterious " reason .
*/
*/
qemu_put_be64 ( file , RAMBLOCK_RECV_BITMAP_ENDING ) ;
qemu_put_be64 ( file , RAMBLOCK_RECV_BITMAP_ENDING ) ;
qemu_fflush ( file ) ;
qemu_fflush ( file ) ;
@ -718,7 +718,7 @@ static int save_xbzrle_page(RAMState *rs, uint8_t **current_data,
/*
/*
* Reaching here means the page has hit the xbzrle cache , no matter what
* Reaching here means the page has hit the xbzrle cache , no matter what
* encoding result it is ( normal encoding , overflow or skipping the page ) ,
* encoding result it is ( normal encoding , overflow or skipping the page ) ,
* count the page as encoded . This is used to caculate the encoding rate .
* count the page as encoded . This is used to cal culate the encoding rate .
*
*
* Example : 2 pages ( 8 KB ) being encoded , first page encoding generates 2 KB ,
* Example : 2 pages ( 8 KB ) being encoded , first page encoding generates 2 KB ,
* 2 nd page turns out to be skipped ( i . e . no new bytes written to the
* 2 nd page turns out to be skipped ( i . e . no new bytes written to the
@ -3705,7 +3705,7 @@ int ram_dirty_bitmap_reload(MigrationState *s, RAMBlock *block)
/*
/*
* Note : see comments in ramblock_recv_bitmap_send ( ) on why we
* Note : see comments in ramblock_recv_bitmap_send ( ) on why we
* need the endianess convert ion , and the paddings .
* need the endianness convers ion , and the paddings .
*/
*/
local_size = ROUND_UP ( local_size , 8 ) ;
local_size = ROUND_UP ( local_size , 8 ) ;
@ -3743,7 +3743,7 @@ int ram_dirty_bitmap_reload(MigrationState *s, RAMBlock *block)
}
}
/*
/*
* Endianess convert ion . We are during postcopy ( though paused ) .
* Endianness convers ion . We are during postcopy ( though paused ) .
* The dirty bitmap won ' t change . We can directly modify it .
* The dirty bitmap won ' t change . We can directly modify it .
*/
*/
bitmap_from_le ( block - > bmap , le_bitmap , nbits ) ;
bitmap_from_le ( block - > bmap , le_bitmap , nbits ) ;