From f161c88a03c646ee308653d3ea99318901093309 Mon Sep 17 00:00:00 2001 From: David Hildenbrand Date: Thu, 6 Jul 2023 09:56:08 +0200 Subject: migration/ram: Expose ramblock_is_ignored() as migrate_ram_is_ignored() virtio-mem wants to know whether it should not mess with the RAMBlock content (e.g., discard RAM, preallocate memory) on incoming migration. So let's expose that function as migrate_ram_is_ignored() in migration/misc.h Message-ID: <20230706075612.67404-4-david@redhat.com> Acked-by: Peter Xu Tested-by: Mario Casquero Reviewed-by: Juan Quintela Reviewed-by: Michael S. Tsirkin Signed-off-by: David Hildenbrand --- include/migration/misc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/migration/misc.h') diff --git a/include/migration/misc.h b/include/migration/misc.h index 5ebe13b4b9..7dcc0b5c2c 100644 --- a/include/migration/misc.h +++ b/include/migration/misc.h @@ -40,6 +40,7 @@ int precopy_notify(PrecopyNotifyReason reason, Error **errp); void ram_mig_init(void); void qemu_guest_free_page_hint(void *addr, size_t len); +bool migrate_ram_is_ignored(RAMBlock *block); /* migration/block.c */ -- cgit v1.2.3