Received: from eggs.gnu.org ([2001:4830:134:3::10]:35923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJhSV-0005mJ-4T for qemu-devel@nongnu.org; Mon, 27 Jul 2015 08:24:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJhSS-0006Tq-Dt for qemu-devel@nongnu.org; Mon, 27 Jul 2015 08:24:43 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:42532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJhSS-0006Ql-3E for qemu-devel@nongnu.org; Mon, 27 Jul 2015 08:24:40 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 27 Jul 2015 13:24:38 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id B7FA92190066 for ; Mon, 27 Jul 2015 13:24:11 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6RCOZHb11993288 for ; Mon, 27 Jul 2015 12:24:35 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6RCOZiQ032635 for ; Mon, 27 Jul 2015 06:24:35 -0600 Date: Mon, 27 Jul 2015 14:24:33 +0200 From: Cornelia Huck Message-ID: <20150727142433.688dc050.cornelia.huck@de.ibm.com> In-Reply-To: <1437997292-21715-1-git-send-email-pbonzini@redhat.com> References: <1437997292-21715-1-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] fixup! virtio-blk: fail get_features when both scsi and 1.0 were set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Jason Wang , qemu-devel@nongnu.org, mst@redhat.com On Mon, 27 Jul 2015 13:41:32 +0200 Paolo Bonzini wrote: > Tweak the error message so that it does not mention SCSI passthrough. That > can be confusing because you can have scsi=on even for file-backed image, > which obviously do not support SCSI passthrough at the block layer level. > > Signed-off-by: Paolo Bonzini > --- > hw/block/virtio-blk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c > index 9acbc3a..7bed3f0 100644 > --- a/hw/block/virtio-blk.c > +++ b/hw/block/virtio-blk.c > @@ -734,7 +734,7 @@ static uint64_t virtio_blk_get_features(VirtIODevice *vdev, uint64_t features, > virtio_clear_feature(&features, VIRTIO_F_ANY_LAYOUT); > if (__virtio_has_feature(features, VIRTIO_F_VERSION_1)) { > if (s->conf.scsi) { > - error_setg(errp, "Virtio 1.0 does not support scsi passthrough!"); > + error_setg(errp, "Please set scsi=off for virtio-blk devices in order to use virtio 1.0"); > return 0; > } > virtio_add_feature(&features, VIRTIO_F_ANY_LAYOUT); I like that message much better.