aboutsummaryrefslogtreecommitdiff
path: root/migration/postcopy-ram.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-03-20 16:26:10 +0200
committerMichael S. Tsirkin <mst@redhat.com>2018-03-20 16:40:10 +0200
commitc188c539275bbdc221c325ae9bc1c407353c4130 (patch)
treeb42bb192a687ba0a5b10a8f0ebe848f0415e8786 /migration/postcopy-ram.c
parent096bf4c8522fc0331fef78e46108244ab09480a0 (diff)
postcopy-ram: add a stub for postcopy_request_shared_page
This fixes the build on systems without userfaultfd. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'migration/postcopy-ram.c')
-rw-r--r--migration/postcopy-ram.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index 146bc09c17..8e08ff92f3 100644
--- a/migration/postcopy-ram.c
+++ b/migration/postcopy-ram.c
@@ -928,6 +928,13 @@ int postcopy_ram_prepare_discard(MigrationIncomingState *mis)
return -1;
}
+int postcopy_request_shared_page(struct PostCopyFD *pcfd, RAMBlock *rb,
+ uint64_t client_addr, uint64_t rb_offset)
+{
+ assert(0);
+ return -1;
+}
+
int postcopy_ram_enable_notify(MigrationIncomingState *mis)
{
assert(0);