vhost-user: add a migration blocker
commitd2fc4402cb152d3e526f736d7d53dbd050ef8794
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 9 Oct 2015 15:17:27 +0000 (9 17:17 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:49 +0000 (22 14:34 +0300)
tree3c0cc81541a9d589d7d899fa69f1ba2ebbd83c19
parent9a78a5dd272a190d262b5ba5d4721ab93d48c564
vhost-user: add a migration blocker

If VHOST_USER_PROTOCOL_F_LOG_SHMFD is not announced, block vhost-user
migration. The blocker is removed in vhost_dev_cleanup().

Signed-off-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>
Tested-by: Thibaut Collet <thibaut.collet@6wind.com>
hw/virtio/vhost-user.c
hw/virtio/vhost.c