block migration: Report overall migration progress
commit82801d8f4f3fa7413647495d9823fb3144c31ddc
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 30 Nov 2009 17:21:21 +0000 (30 18:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 16:48:53 +0000 (3 10:48 -0600)
treef943b9256415604e81348dd85cf48a2d70e6cd16
parent4ec7fcc7da214d48d39b63fd2c6a4d19ac42ae04
block migration: Report overall migration progress

So far progress reporting only works for the first block device. Fix
this by keeping an overall sum of sectors to be migratated, calculating
the sum of all processed sectors, and finally basing the progress
display on those values.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block-migration.c