summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2018-03-12 18:21:19 +0100
committerMichael S. Tsirkin2018-03-20 15:40:37 +0100
commitc639187e3342cb14e100d14ce4854444f7ae98d5 (patch)
tree9bd69185b44dc99ac945cd309b1597a639cd0784 /docs
parentlibvhost-user: mprotect & madvises for postcopy (diff)
downloadqemu-c639187e3342cb14e100d14ce4854444f7ae98d5.tar.gz
qemu-c639187e3342cb14e100d14ce4854444f7ae98d5.tar.xz
qemu-c639187e3342cb14e100d14ce4854444f7ae98d5.zip
vhost-user: Add VHOST_USER_POSTCOPY_END message
This message is sent just before the end of postcopy to get the client to stop using userfault since we wont respond to any more requests. It should close userfaultfd so that any other pages get mapped to the backing file automatically by the kernel, since at this point we know we've received everything. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@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>
Diffstat (limited to 'docs')
-rw-r--r--docs/interop/vhost-user.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/interop/vhost-user.txt b/docs/interop/vhost-user.txt
index e295ef12ca..c058c407df 100644
--- a/docs/interop/vhost-user.txt
+++ b/docs/interop/vhost-user.txt
@@ -729,6 +729,18 @@ Master message types
This is always sent sometime after a VHOST_USER_POSTCOPY_ADVISE, and
thus only when VHOST_USER_PROTOCOL_F_PAGEFAULT is supported.
+ * VHOST_USER_POSTCOPY_END
+ Id: 30
+ Slave payload: u64
+
+ Master advises that postcopy migration has now completed. The
+ slave must disable the userfaultfd. The response is an acknowledgement
+ only.
+ When VHOST_USER_PROTOCOL_F_PAGEFAULT is supported, this message
+ is sent at the end of the migration, after VHOST_USER_POSTCOPY_LISTEN
+ was previously sent.
+ The value returned is an error indication; 0 is success.
+
Slave message types
-------------------