migration: Convert ram to use new load_setup()/load_cleanup()
commitf265e0e437a5d5fd0b48143012e2242b85816f61
authorJuan Quintela <quintela@redhat.com>
Wed, 28 Jun 2017 09:52:27 +0000 (28 11:52 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 10 Jul 2017 16:52:21 +0000 (10 17:52 +0100)
treebfc0fa5a82d2937aef0c4cee5f632f8c202f2933
parentacb5ea86971a7f3d0eac30996c4d0eab7b873879
migration: Convert ram to use new load_setup()/load_cleanup()

Once there, I rename ram_migration_cleanup() to ram_save_cleanup().
Notice that this is the first pass, and I only passed XBZRLE to the
new scheme.  Moved decoded_buf to inside XBZRLE struct.
As a bonus, I don't have to export xbzrle functions from ram.c.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
--

loaded_data pointer was needed because called can change it (dave)
spell loaded correctly in comment (dave)
Message-Id: <20170628095228.4661-5-quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c
migration/ram.c
migration/ram.h