[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V4 2/3] virtio-blk: fail get_features when both
From: |
Jason Wang |
Subject: |
Re: [Qemu-devel] [PATCH V4 2/3] virtio-blk: fail get_features when both scsi and 1.0 were set |
Date: |
Tue, 28 Jul 2015 10:57:27 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 |
On 07/27/2015 07:26 PM, Michael S. Tsirkin wrote:
> On Mon, Jul 27, 2015 at 12:28:23PM +0200, Paolo Bonzini wrote:
>>
>> On 27/07/2015 11:49, Jason Wang wrote:
>>> + if (__virtio_has_feature(features, VIRTIO_F_VERSION_1)) {
>> No double underscores in userspace code. Longstanding so it can be
>> fixed after 2.4 is out---but please remember to do it.
>>
>>> + if (s->conf.scsi) {
>>> + error_setg(errp, "Virtio 1.0 does not support scsi
>>> passthrough!");
>> Unclear error message, as one would expect SCSI passthrough not to work
>> anyway for e.g. a disk backed by a file.
> Right - so I suggested:
> Virtio modern does not support scsi passthrough - please set
> disable-modern=on or switch to virtio-scsi.
> With that change - ACK?
I've considered this, but a little problem is 'disable-modern' only
works for pci.
>> It's not a big deal as long as you will disable VIRTIO_BLK_F_SCSI by
>> default in the same release that enables VIRTIO_F_VERSION_1 by default.
>>
>> Paolo
>>> + return 0;
>>> + }
>>> + virtio_add_feature(&features, VIRTIO_F_ANY_LAYOUT);
>>> + } else {
>>> + virtio_add_feature(&features, VIRTIO_BLK_F_SCSI);
>>> + }
[Qemu-devel] [PATCH V4 3/3] virtio-blk: only clear VIRTIO_F_ANY_LAYOUT for legacy device, Jason Wang, 2015/07/27
Re: [Qemu-devel] [PATCH V4 0/3] Set correct blk feature for virtio 1.0, Paolo Bonzini, 2015/07/27