Skip to contentSkip to conversation

Use ram_bytes_remaining() where possible

PATCH Applied Pierre Riteau 1 participant 1 message May 12, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Use ram_bytes_remaining() where possible

---
 arch_init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch_init.c +1 -1
index cfc03ea..cf6b7b0 100644
@@ -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