]> Git Repo - qemu.git/commitdiff
migration: Export ram_load_postcopy()
authorPeter Xu <[email protected]>
Thu, 31 Mar 2022 15:08:43 +0000 (11:08 -0400)
committerDr. David Alan Gilbert <[email protected]>
Thu, 21 Apr 2022 18:36:46 +0000 (19:36 +0100)
Will be reused in postcopy fast load thread.

Reviewed-by: Dr. David Alan Gilbert <[email protected]>
Signed-off-by: Peter Xu <[email protected]>
Message-Id: <20220331150857[email protected]>
Reviewed-by: Daniel P. BerrangĂ© <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
migration/ram.c
migration/ram.h

index bfcd45a36e4bee30fd7ded34c55e97811c3db020..253fe4b7560a5c26f29aed9323181b48fd5e11b5 100644 (file)
@@ -3645,7 +3645,7 @@ int ram_postcopy_incoming_init(MigrationIncomingState *mis)
  *
  * @f: QEMUFile where to send the data
  */
-static int ram_load_postcopy(QEMUFile *f)
+int ram_load_postcopy(QEMUFile *f)
 {
     int flags = 0, ret = 0;
     bool place_needed = false;
index 2c6dc3675d5ae015af83d94f1b5d525e275f1e20..ded0a3a086631f71e9b528fc4bc9778c62dbfd0e 100644 (file)
@@ -61,6 +61,7 @@ void ram_postcopy_send_discard_bitmap(MigrationState *ms);
 /* For incoming postcopy discard */
 int ram_discard_range(const char *block_name, uint64_t start, size_t length);
 int ram_postcopy_incoming_init(MigrationIncomingState *mis);
+int ram_load_postcopy(QEMUFile *f);
 
 void ram_handle_compressed(void *host, uint8_t ch, uint64_t size);
 
This page took 0.033002 seconds and 4 git commands to generate.