[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 5/8] migration: Export ram_release_page()
|
From: |
Juan Quintela |
|
Subject: |
[PATCH v5 5/8] migration: Export ram_release_page() |
|
Date: |
Thu, 10 Mar 2022 16:34:51 +0100 |
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/ram.h | 1 +
migration/ram.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/migration/ram.h b/migration/ram.h
index 2e27c49f90..33686055b4 100644
--- a/migration/ram.h
+++ b/migration/ram.h
@@ -65,6 +65,7 @@ int ram_postcopy_incoming_init(MigrationIncomingState *mis);
void ram_handle_compressed(void *host, uint8_t ch, uint64_t size);
void ram_transferred_add(uint64_t bytes);
+void ram_release_page(const char *rbname, uint64_t offset);
int ramblock_recv_bitmap_test(RAMBlock *rb, void *host_addr);
bool ramblock_recv_bitmap_test_byte_offset(RAMBlock *rb, uint64_t byte_offset);
diff --git a/migration/ram.c b/migration/ram.c
index 1006d8d585..1a642f1e70 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1180,7 +1180,7 @@ static void migration_bitmap_sync_precopy(RAMState *rs)
}
}
-static void ram_release_page(const char *rbname, uint64_t offset)
+void ram_release_page(const char *rbname, uint64_t offset)
{
if (!migrate_release_ram() || !migration_in_postcopy()) {
return;
--
2.34.1
- [PATCH v5 0/8] Migration: Transmit and detect zero pages in the multifd threads, Juan Quintela, 2022/03/10
- [PATCH v5 1/8] migration: Export ram_transferred_ram(), Juan Quintela, 2022/03/10
- [PATCH v5 2/8] multifd: Count the number of sent bytes correctly, Juan Quintela, 2022/03/10
- [PATCH v5 4/8] multifd: Add property to enable/disable zero_page, Juan Quintela, 2022/03/10
- [PATCH v5 5/8] migration: Export ram_release_page(),
Juan Quintela <=
- [PATCH v5 3/8] migration: Make ram_save_target_page() a pointer, Juan Quintela, 2022/03/10
- [PATCH v5 6/8] multifd: Support for zero pages transmission, Juan Quintela, 2022/03/10
- [PATCH v5 8/8] migration: Use multifd before we check for the zero page, Juan Quintela, 2022/03/10
- [PATCH v5 7/8] multifd: Zero pages transmission, Juan Quintela, 2022/03/10