migration: Calculate ram size once
authorJuan Quintela <quintela@redhat.com>
Tue, 10 May 2022 17:37:36 +0000 (19:37 +0200)
committerJuan Quintela <quintela@redhat.com>
Sat, 11 Feb 2023 15:51:09 +0000 (16:51 +0100)
commit8d80e1951e57f79ab3d4c156ba8eb71592f81b4c
tree0b3f9a2bd4426ff31ed0302f9c5b41cd4cfe661b
parent8008a272d6b3aa4ba5a21c70786e107df65b9b51
migration: Calculate ram size once

We are recalculating ram size continously, when we know that it don't
change during migration.  Create a field in RAMState to track it.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
migration/ram.c