migration: Abstract the number of bytes sent
commit0c8f0efdd461b26f64fdf8785c333558315bc297
authorJuan Quintela <quintela@redhat.com>
Tue, 26 Jun 2018 13:38:00 +0000 (26 15:38 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 27 Jun 2018 11:28:11 +0000 (27 13:28 +0200)
tree1a6b4c7ebfb40543b80e4aeb593e6497fe57fa72
parent6cde6fbe2b2ad672029ce9737659aa34f581c07a
migration: Abstract the number of bytes sent

Right now we use the "position" inside the QEMUFile, but things like
RDMA already do weird things to be able to maintain that counter
right, and multifd will have some similar problems.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c