Revision 1ba1f2e3 hw/virtio-blk.c
b/hw/virtio-blk.c | ||
---|---|---|
153 | 153 |
int status; |
154 | 154 |
int i; |
155 | 155 |
|
156 |
if ((req->dev->vdev.guest_features & (1 << VIRTIO_BLK_F_SCSI)) == 0) { |
|
157 |
virtio_blk_req_complete(req, VIRTIO_BLK_S_UNSUPP); |
|
158 |
g_free(req); |
|
159 |
return; |
|
160 |
} |
|
161 |
|
|
156 | 162 |
/* |
157 | 163 |
* We require at least one output segment each for the virtio_blk_outhdr |
158 | 164 |
* and the SCSI command block. |
Also available in: Unified diff