aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-10-19 12:47:42 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-10-23 16:41:22 +0200
commit3e2b2a9c49f44926b995495be5e94e61e4f29f5e (patch)
tree0e637dd056123a66c2c8eaed854e97c8cd894808 /include/hw
parente40830afa1cff3ffdc37bdfdd40d80860074636c (diff)
downloadqemu-3e2b2a9c49f44926b995495be5e94e61e4f29f5e.zip
qemu-3e2b2a9c49f44926b995495be5e94e61e4f29f5e.tar.gz
qemu-3e2b2a9c49f44926b995495be5e94e61e4f29f5e.tar.bz2
virtio-scsi-dataplane: Add op blocker
We need this to protect dataplane thread from race conditions with block jobs until the latter is made dataplane-safe. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/virtio/virtio-scsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-scsi.h b/include/hw/virtio/virtio-scsi.h
index d6e5e79..1ce0858 100644
--- a/include/hw/virtio/virtio-scsi.h
+++ b/include/hw/virtio/virtio-scsi.h
@@ -195,6 +195,7 @@ typedef struct VirtIOSCSI {
bool dataplane_starting;
bool dataplane_stopping;
bool dataplane_disabled;
+ Error *blocker;
Notifier migration_state_notifier;
} VirtIOSCSI;