diff options
author | Fam Zheng <famz@redhat.com> | 2014-09-23 15:49:26 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-30 11:11:20 +0200 |
commit | dfb37cf7fa206afa6e212af16fee74427464f1d1 (patch) | |
tree | f13b64dd377568e8c27c5a4ce4996bf318c6c1b2 /include | |
parent | 63c7e542686ff9616816b527c824ec0ac1f73cbe (diff) | |
download | qemu-dfb37cf7fa206afa6e212af16fee74427464f1d1.tar.gz qemu-dfb37cf7fa206afa6e212af16fee74427464f1d1.tar.bz2 qemu-dfb37cf7fa206afa6e212af16fee74427464f1d1.zip |
virtio-scsi: Add migration state notifier for dataplane code
Similar to virtio-blk-dataplane, we stop the iothread while migration
starts and restart it when migration finishes.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio-scsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-scsi.h b/include/hw/virtio/virtio-scsi.h index 8e1968f9e8..1a6a919960 100644 --- a/include/hw/virtio/virtio-scsi.h +++ b/include/hw/virtio/virtio-scsi.h @@ -194,6 +194,8 @@ typedef struct VirtIOSCSI { bool dataplane_started; bool dataplane_starting; bool dataplane_stopping; + bool dataplane_disabled; + Notifier migration_state_notifier; } VirtIOSCSI; typedef struct VirtIOSCSIReq { |