Refactor out libvhost-user fault generation logic
commit08fccf8f077397b47c740d4850cdeedc947f21ac
authorRaphael Norwitz <raphael.norwitz@nutanix.com>
Thu, 21 May 2020 05:00:47 +0000 (21 05:00 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 12 Jun 2020 14:17:06 +0000 (12 10:17 -0400)
tree321d05eeac14f18aeea84815522ac7a6fa622964
parent27598393a23215cfbf92ad550b9541675b0b8f2b
Refactor out libvhost-user fault generation logic

In libvhost-user, the incoming postcopy migration path for setting the
backend's memory tables has become convolued. In particular, moving the
logic which starts generating faults, having received the final ACK from
qemu can be moved to a separate function. This simplifies the code
substantially.

This logic will also be needed by the postcopy path once the
VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS feature is supported.

Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <1588533678-23450-7-git-send-email-raphael.norwitz@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
contrib/libvhost-user/libvhost-user.c