Use ram_bytes_remaining() where possible
PATCH 1/2 Use ram_bytes_remaining() where possible
Signed-off-by Pierre Riteau <[email protected]>
--- arch_init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch_init.c +1 -1
@@ -235,7 +235,7 @@ int ram_save_live(Monitor *mon, QEMUFile *f, int stage, void *opaque)qemu_put_be64 (f,RAM_SAVE_FLAG_EOS ); - expected_time =ram_save_remaining () *TARGET_PAGE_SIZE / bwidth; + expected_time =ram_bytes_remaining () / bwidth;return (stage ==2 ) && (expected_time <=migrate_max_downtime ()); }
Signature · 1 line
1.7.1