Commit c188c539 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

postcopy-ram: add a stub for postcopy_request_shared_page



This fixes the build on systems without userfaultfd.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 096bf4c8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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);