Skip to content

Commit 664ed90

Browse files
author
Nicholas Bellinger
committed
vhost/scsi: Set VIRTIO_F_ANY_LAYOUT + VIRTIO_F_VERSION_1 feature bits
Signal support of VIRTIO_F_ANY_LAYOUT + VIRTIO_F_VERSION_1 feature bits required for virtio-scsi 1.0 spec layout requirements. Cc: Michael S. Tsirkin <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Cc: Paolo Bonzini <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 09b13fa commit 664ed90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/vhost/scsi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ enum {
173173
/* Note: can't set VIRTIO_F_VERSION_1 yet, since that implies ANY_LAYOUT. */
174174
enum {
175175
VHOST_SCSI_FEATURES = VHOST_FEATURES | (1ULL << VIRTIO_SCSI_F_HOTPLUG) |
176-
(1ULL << VIRTIO_SCSI_F_T10_PI)
176+
(1ULL << VIRTIO_SCSI_F_T10_PI) |
177+
(1ULL << VIRTIO_F_ANY_LAYOUT) |
178+
(1ULL << VIRTIO_F_VERSION_1)
177179
};
178180

179181
#define VHOST_SCSI_MAX_TARGET 256

0 commit comments

Comments
 (0)