Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4586171rwj; Tue, 20 Dec 2022 12:12:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtRTd/cCRmNVbZP0dD2GYjniXxVbT8tKk+Krld4KoMzv9H7wEcucjvW+8pSvx99/DJTgmzy X-Received: by 2002:a05:6a20:9b85:b0:af:8e92:8540 with SMTP id mr5-20020a056a209b8500b000af8e928540mr25821696pzb.1.1671567178262; Tue, 20 Dec 2022 12:12:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671567178; cv=none; d=google.com; s=arc-20160816; b=z2BkzZ726HhzLYSOcESLPmKEj3/CJCSvRszCgiCjQDYTV/78QP7n7prNKGst0L9R1l 0+o8j8jKBSQ2GsboyJcchvWs1WacnKp7NTwmKRUuaD6RjL2kbIg6Nn7bzuqd+9FX/vSl zGkvZeYSxuNcdV2JHBKruM8x5UmLbQWibJDzI9HT5uZOVuzc9aFOMzFrWjSLYA1qNeAF AkqjIwroKCtqr9tURHSCdQ2myQhnb2GXtom1HrQD4yiHoUjkosH9+B1RwdRldV5VdafI eT3723NIo2HtWsRibubPgLuFAoVCUOzq8VJNAtR0A3zpv577A9GGnYI90T9C2rtUz5wz 3vaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6dJi8OKv/lfpiYHlxZQhWkr2Fn+pTTwnDKMiC+l7rhY=; b=oRTrNCMF2mlN2JGyWYgC8nSONBr7gCo4YremEpQErF5Y7V9oFT+p9XnY6p5L3kY7fJ yHFs/4rtJQU82VOYOFESd2ONXZhPdGc9oPZwo38flPI7E1VCUAtIrhymhLg4f4mMmROX hTeXCuyuD7gIYJsTsPWeYrTck9aekJLCVcNJF9C8b8mSeO3eCgO3CtAugGRVGwGdWiba IFT+6Vih+EOS/4PqvckERPp40tIT6jk3BF6EZoO8YB+yLqzo97F47A+yPgxKWyd+moPd wvobkI5FNLh8hZYfCiBwJzzuLn1X8Yoe7Vrt2x0vTNAq8hQ43bvIpZk4G9tVTZ0uHqE0 HVtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R53fyT7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e71-20020a63694a000000b00476bba7cc00si14981348pgc.85.2022.12.20.12.12.48; Tue, 20 Dec 2022 12:12:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="R53fyT7/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbiLTTvk (ORCPT + 68 others); Tue, 20 Dec 2022 14:51:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbiLTTvi (ORCPT ); Tue, 20 Dec 2022 14:51:38 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 429541134 for ; Tue, 20 Dec 2022 11:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671565855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6dJi8OKv/lfpiYHlxZQhWkr2Fn+pTTwnDKMiC+l7rhY=; b=R53fyT7/cpWyq5/Hzsul/v0owww1iLL+8SK2ivT/6XtoCD13KuzCFWhCKIx8XOppdzL90j +n0OkaVDbAqFatROdgaVUugKXIiPM94w/pMOKSJHAkyv4hMRyL70uFCQssZwIPUY4XlJyY +lx3KvMZYTFRIMziWFHNphVpsrnNu2c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-43-YJEg4p33N7yafxArripUdA-1; Tue, 20 Dec 2022 14:50:53 -0500 X-MC-Unique: YJEg4p33N7yafxArripUdA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CD541857A8A; Tue, 20 Dec 2022 19:50:52 +0000 (UTC) Received: from localhost (unknown [10.39.192.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 355F7112132C; Tue, 20 Dec 2022 19:50:51 +0000 (UTC) Date: Tue, 20 Dec 2022 14:50:50 -0500 From: Stefan Hajnoczi To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, Anders Roxell , Jason Wang , Paolo Bonzini , Jens Axboe , virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org Subject: Re: [PATCH] virtio-blk: fix probe without CONFIG_BLK_DEV_ZONED Message-ID: References: <20221220112340.518841-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qs7BktVcbA5Ws00G" Content-Disposition: inline In-Reply-To: <20221220112340.518841-1-mst@redhat.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qs7BktVcbA5Ws00G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 20, 2022 at 06:23:44AM -0500, Michael S. Tsirkin wrote: > When building without CONFIG_BLK_DEV_ZONED, VIRTIO_BLK_F_ZONED > is excluded from array of driver features. > As a result virtio_has_feature panics in virtio_check_driver_offered_feat= ure > since that by design verifies that a feature we are checking for > is listed in the feature array. >=20 > To fix, replace the call to virtio_has_feature with a stub. >=20 > Tested-by: Anders Roxell > Signed-off-by: Michael S. Tsirkin > --- > drivers/block/virtio_blk.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi --qs7BktVcbA5Ws00G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmOiEhoACgkQnKSrs4Gr c8j1sAgArFbeE12ThS17C8bvQ/gd4ePFCbYmOiFcuTrQZ4fBWVzD6K2vGZhTWrRT O5EJiIzBGTdeoWGg/BuhYXddcyXimSyiwBRQquawn5IIKeleNtODdiWT3dZOAiW6 ZEfTlKRGSjqSVWKkEiL943KRQ8Y3RYSGzu2pHNRgB2AieQmjX1hAjNj3WzhM/Emy tKJr+R4FhEqfZF7i9x4fTAHQeyjgJWyY3m57yJ+Im0mxxiiQhufIKNeLDNSp2N5T 4z8XvTj81aLfQPtOeAppVdNetBBo2fS8Dzj7r+O0YfKRCPufHUILGnyU7SrnMpJ4 Tkt5GDbZi9cxlMFD2te/Vhs5RK/o4w== =rcjH -----END PGP SIGNATURE----- --qs7BktVcbA5Ws00G--