aboutsummaryrefslogtreecommitdiff
path: root/include/hw/virtio
diff options
context:
space:
mode:
authorLi Feng <fengli@smartx.com>2020-09-09 20:20:21 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-30 19:09:20 +0200
commitb82526c7ee484f2ba03944f804ab895aa75d89d3 (patch)
treea14176df8e7f058b6efa2e4941a8ebb4d5cada96 /include/hw/virtio
parentffb716f05015524cc97da18b34748961c743e827 (diff)
vhost-scsi: support inflight io track
Qemu will send GET_INFLIGHT_FD and SET_INFLIGH_FD to backend, and the backend setup the inflight memory to track the io. Change-Id: I805d6189996f7a1b44c65f0b12ef7473b1789510 Signed-off-by: Li Feng <fengli@smartx.com> Message-Id: <20200909122021.1055174-1-fengli@smartx.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/virtio')
-rw-r--r--include/hw/virtio/vhost-scsi-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/virtio/vhost-scsi-common.h b/include/hw/virtio/vhost-scsi-common.h
index 0c8909d12a..18f115527c 100644
--- a/include/hw/virtio/vhost-scsi-common.h
+++ b/include/hw/virtio/vhost-scsi-common.h
@@ -35,6 +35,8 @@ struct VHostSCSICommon {
int lun;
uint64_t host_features;
bool migratable;
+
+ struct vhost_inflight *inflight;
};
int vhost_scsi_common_start(VHostSCSICommon *vsc);