aboutsummaryrefslogtreecommitdiff
path: root/migration/ram.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2018-06-20 22:27:36 +0200
committerJuan Quintela <quintela@redhat.com>2018-06-27 13:28:31 +0200
commitc136180c901dd84d36577edc9b7f377fb76b832d (patch)
tree4c64ac7b9c0d22e777b9d315679c59d1d57343f1 /migration/ram.c
parent35374cbdff2bf6b6fb7caae5ea8aaa3b0f53f4ca (diff)
downloadqemu-c136180c901dd84d36577edc9b7f377fb76b832d.zip
qemu-c136180c901dd84d36577edc9b7f377fb76b832d.tar.gz
qemu-c136180c901dd84d36577edc9b7f377fb76b832d.tar.bz2
postcopy: drop ram_pages parameter from postcopy_ram_incoming_init()
Not needed. Don't expose last_ram_page(). Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20180620202736.21399-1-david@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r--migration/ram.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 7d23b47..1cd98d6 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -3564,9 +3564,7 @@ static int ram_load_cleanup(void *opaque)
*/
int ram_postcopy_incoming_init(MigrationIncomingState *mis)
{
- unsigned long ram_pages = last_ram_page();
-
- return postcopy_ram_incoming_init(mis, ram_pages);
+ return postcopy_ram_incoming_init(mis);
}
/**