virtio-blk: fail get_features when both scsi and 1.0 were set
commitefb8206ca7f19f5a6ece1f2851a73a29de309b1e
authorJason Wang <jasowang@redhat.com>
Mon, 27 Jul 2015 09:49:20 +0000 (27 17:49 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jul 2015 15:11:53 +0000 (27 18:11 +0300)
tree092d92ff2f2db1237da8e044acea01e5f7e547b7
parent9d5b731dd2d64deb3bc798ef4e3c08603d54ae02
virtio-blk: fail get_features when both scsi and 1.0 were set

SCSI passthrough was no longer supported in virtio 1.0, so this patch
fail the get_features() when both 1.0 and scsi is set. And also only
advertise VIRTIO_BLK_F_SCSI for legacy virtio-blk device.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
hw/block/virtio-blk.c