]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/trace-events
vhost+postcopy: Send address back to qemu
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 12 Mar 2018 17:21:10 +0000 (17:21 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 20 Mar 2018 03:03:28 +0000 (05:03 +0200)
commit9bb38019942c2f3f44b98f5830e369faec701e55
treed42fffa5fe804263eac636881f1ea1aa1edfcbf7
parent51a5d6e5b20077c1657593a60b300f611ab7049f
vhost+postcopy: Send address back to qemu

We need a better way, but at the moment we need the address of the
mappings sent back to qemu so it can interpret the messages on the
userfaultfd it reads.

This is done as a 3 stage set:
   QEMU -> client
      set_mem_table

   mmap stuff, get addresses

   client -> qemu
       here are the addresses

   qemu -> client
       OK - now you can use them

That ensures that qemu has registered the new addresses in it's
userfault code before the client starts accessing them.

Note: We don't ask for the default 'ack' reply since we've got our own.

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>
contrib/libvhost-user/libvhost-user.c
docs/interop/vhost-user.txt
hw/virtio/trace-events
hw/virtio/vhost-user.c