setting UFFDIO_WRITEPROTECT_MODE_DONTWAKE when write un-protecting a page does not wake up the faulting thread. Set to 0 to force the faulting (VM) thread to wake-up.
Signed-off-by: Christian Pinto <c.pi...@virtualopensystems.com> Signed-off-by: Baptiste Reynal <b.rey...@virtualopensystems.com> --- migration/postcopy-ram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c index 6252eb379a..684faae614 100644 --- a/migration/postcopy-ram.c +++ b/migration/postcopy-ram.c @@ -384,7 +384,7 @@ int ram_set_pages_wp(ram_addr_t page_addr, wp_struct.range.start = (uint64_t)(uintptr_t)page_addr; wp_struct.range.len = size; if (remove) { - wp_struct.mode = UFFDIO_WRITEPROTECT_MODE_DONTWAKE; + wp_struct.mode = 0; } else { wp_struct.mode = UFFDIO_WRITEPROTECT_MODE_WP; } -- 2.11.0