aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi/vhost-user-scsi.c
diff options
context:
space:
mode:
authorGreg Edwards <gedwards@ddn.com>2018-08-08 13:52:35 -0600
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-23 18:46:25 +0200
commitf287fdd94e545d23d9fbd55fb58e346160e2d19f (patch)
tree9f3a9cffd3bb1f1d97c9402f5a510490233825cd /hw/scsi/vhost-user-scsi.c
parentb1110d833c74c09c90c26235aed1b7eb5e85910a (diff)
downloadqemu-f287fdd94e545d23d9fbd55fb58e346160e2d19f.zip
qemu-f287fdd94e545d23d9fbd55fb58e346160e2d19f.tar.gz
qemu-f287fdd94e545d23d9fbd55fb58e346160e2d19f.tar.bz2
vhost-scsi: expose 't10_pi' property for VIRTIO_SCSI_F_T10_PI
Allow toggling on/off the VIRTIO_SCSI_F_T10_PI feature bit for both vhost-scsi and vhost-user-scsi devices. Signed-off-by: Greg Edwards <gedwards@ddn.com> Message-Id: <20180808195235.5843-4-gedwards@ddn.com> Reviewed-by: Felipe Franciosi <felipe@nutanix.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/vhost-user-scsi.c')
-rw-r--r--hw/scsi/vhost-user-scsi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/scsi/vhost-user-scsi.c b/hw/scsi/vhost-user-scsi.c
index 26491da..2e1ba4a 100644
--- a/hw/scsi/vhost-user-scsi.c
+++ b/hw/scsi/vhost-user-scsi.c
@@ -152,6 +152,9 @@ static Property vhost_user_scsi_properties[] = {
DEFINE_PROP_BIT64("param_change", VHostSCSICommon, host_features,
VIRTIO_SCSI_F_CHANGE,
true),
+ DEFINE_PROP_BIT64("t10_pi", VHostSCSICommon, host_features,
+ VIRTIO_SCSI_F_T10_PI,
+ false),
DEFINE_PROP_END_OF_LIST(),
};