summary refs log tree commit diff stats
path: root/include/hw/virtio/vhost.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-06-18 17:20:42 +0300
committerMichael S. Tsirkin <mst@redhat.com>2014-06-23 17:37:59 +0300
commit7145872ed373d75c4d5de40e55248a0840a15f70 (patch)
treee988bda5ec7f5ca6ac940b6e2af5bcc243667d0c /include/hw/virtio/vhost.h
parentd9c1647d896d3192cba9dbf98fb7efab876edde5 (diff)
downloadfocaccia-qemu-7145872ed373d75c4d5de40e55248a0840a15f70.tar.gz
focaccia-qemu-7145872ed373d75c4d5de40e55248a0840a15f70.zip
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>




Diffstat (limited to 'include/hw/virtio/vhost.h')
-rw-r--r--include/hw/virtio/vhost.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
index 33028ec8c2..d5593d1620 100644
--- a/include/hw/virtio/vhost.h
+++ b/include/hw/virtio/vhost.h
@@ -45,6 +45,7 @@ struct vhost_dev {
     bool log_enabled;
     vhost_log_chunk_t *log;
     unsigned long long log_size;
+    Error *migration_blocker;
     bool force;
     bool memory_changed;
     hwaddr mem_changed_start_addr;