[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 4/4] migration/postcopy-ram: ram_set_pages_wp fi
From: |
Christian Pinto |
Subject: |
[Qemu-devel] [RFC PATCH 4/4] migration/postcopy-ram: ram_set_pages_wp fix |
Date: |
Thu, 9 Mar 2017 12:34:37 +0100 |
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 <address@hidden>
Signed-off-by: Baptiste Reynal <address@hidden>
---
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