vhost+postcopy: Helper to send requests to source for shared pages
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 12 Mar 2018 17:21:12 +0000 (17:21 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 03:03:29 +0000 (05:03 +0200)
commit096bf4c8522fc0331fef78e46108244ab09480a0
tree779b7a95305e128f6084da925a1e6082815d5bfb
parent905125d0e20395188a090c16d38e38694fc43fc4
vhost+postcopy: Helper to send requests to source for shared pages

Provide a helper to be used by shared waker functions to request
shared pages from the source.
The last_rb pointer is moved into the incoming state since this
helper can update it as well as the main fault thread function.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
migration/migration.h
migration/postcopy-ram.c
migration/postcopy-ram.h
migration/trace-events