vhost: block migration if backend does not log memory
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Jun 2014 14:20:42 +0000 (17:20 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Jun 2014 14:37:59 +0000 (17:37 +0300)
commit7145872ed373d75c4d5de40e55248a0840a15f70
treee988bda5ec7f5ca6ac940b6e2af5bcc243667d0c
parentd9c1647d896d3192cba9dbf98fb7efab876edde5
vhost: block migration if backend does not log memory

vhost user does not support LOG_ALL feature bit.
Generally, we should not try to set this bit without
checking that backend can support it first.

Detect and block migration.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nikolay Nikolaev <n.nikolaev@virtualopensystems.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c
include/hw/virtio/vhost.h