ram: Add public helper to set colo bitmap
commit871cfc540014bb2292d79ce4348484a3dbb33034
authorLukas Straub <lukasstraub2@web.de>
Mon, 8 May 2023 19:10:52 +0000 (8 21:10 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 10 May 2023 16:48:11 +0000 (10 18:48 +0200)
treeaa057cba92e6fbcb40b2f026a48ec375154a09fa
parentcaa9cbd566877b34e9abcc04d936116fc5e0ab28
ram: Add public helper to set colo bitmap

The overhead of the mutex in non-multifd mode is negligible,
because in that case its just the single thread taking the mutex.

This will be used in the next commits to add colo support to multifd.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <22d83cb428f37929563155531bfb69fd8953cc61.1683572883.git.lukasstraub2@web.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c
migration/ram.h