Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2242058rwb; Thu, 17 Nov 2022 08:14:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Tm/P1iVL72R1jXfN7OsU/Y9Ye9QTtpzxrfWziddtrOnaik/qBxu7KEEvUjttwo3G+zFHH X-Received: by 2002:a05:6402:181:b0:461:ea0c:e151 with SMTP id r1-20020a056402018100b00461ea0ce151mr2701443edv.376.1668701696211; Thu, 17 Nov 2022 08:14:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668701696; cv=none; d=google.com; s=arc-20160816; b=0EcTGqXmk0UkE2EyZn23LZDau9bnUE7/mTXQ5XbwZr2puB3fyEfUfCpuy5UvoR7JXk AE6WhtY07n4rVoCHzLdG3g4lkBUfCrw6wr/xjM6DKb52lS3QCKe2zXiAYLUdyLmg+KQ4 VFXWOgMeCANUaI4CEdx62rXtFSVWmSu4UhzVJL5YgQotcs+Umgy3zC4wRdTdcZAH6mk4 rmCQj38uc3+BhdnDfWm6HDDIE0y76wxdvWw0tNR4h4pKJKR9L13gZBdGFWXudcr0iWX6 luhyl19AeDW20QM+DvN+aAclOTm1iL99nf++R5MMDc/2QdTm/8M2uRdTcAK3eBL78+G4 q/oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=RMcPvClDyXqRCgCSImfOhtmqcNJCWNKsgSbr+RY5l4g=; b=IFavmPA9UdGXkx9sOJnuNyy1K0UipkSOCMGJhekNJy5nnHU8umFJRm/dpBhMzQECWw BRLqXDVvDGggzow2S+2xkaowXt8/s3rgqJKnu6D8uGg4XCS3spseSCFDaVCV5tpRUrFH b1/8WfsLLiP/EqkU/huKpvSfkCj/4nBQaRMGEK4Nqx0GVfmrivgNwAMTf2RlUABoY01T j5D9Blbyx2LFICGBSQqoH2i+qvtUxL6OGBmnKWjvos7k9tepmualAOy7cX1mPHHP/Uai YL5NcJJdNtFrV6PSV0vpplXIkhU05KySMwiDRLK3oz6ODMhuS16HucImHFEGjrLS0YKC /8fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g+Nf3E3u; 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 sz15-20020a1709078b0f00b007aea9dfb4f5si786268ejc.511.2022.11.17.08.14.33; Thu, 17 Nov 2022 08:14:56 -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=g+Nf3E3u; 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 S233057AbiKQP4G (ORCPT + 92 others); Thu, 17 Nov 2022 10:56:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231469AbiKQP4E (ORCPT ); Thu, 17 Nov 2022 10:56:04 -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 2CA5F769E1 for ; Thu, 17 Nov 2022 07:55:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668700510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RMcPvClDyXqRCgCSImfOhtmqcNJCWNKsgSbr+RY5l4g=; b=g+Nf3E3uMd2DfVdzqQbByfazINNkdvYe1A+Qn+Qutr2uBTZ2jZScKWmlnkAM907w9Hnj+A MO/7Y+ZwUnkZnU/CcflCDIZrJt9BPEV95TdPaHIEDVJBb5uAz8nScGBtuoFvZfhGJhuCeo M3t9Dl0DQ4vOHJSK9U2fDqxiQDGYlb8= 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-225--alPYjEWN-OVxn2vZ2vEhQ-1; Thu, 17 Nov 2022 10:55:07 -0500 X-MC-Unique: -alPYjEWN-OVxn2vZ2vEhQ-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 B822394AB06; Thu, 17 Nov 2022 15:55:06 +0000 (UTC) Received: from eperezma.remote.csb (unknown [10.39.192.156]) by smtp.corp.redhat.com (Postfix) with ESMTP id B347B111E3ED; Thu, 17 Nov 2022 15:55:05 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: linux-kernel@vger.kernel.org, mst@redhat.com, virtualization@lists.linux-foundation.org, Jason Wang , Stefano Garzarella Subject: [PATCH] vdpa_sim_net: Offer VIRTIO_NET_F_STATUS Date: Thu, 17 Nov 2022 16:55:02 +0100 Message-Id: <20221117155502.1394700-1-eperezma@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 VIRTIO_NET_S_LINK_UP is already returned in config reads since vdpasim creation, but the feature bit was not offered to the driver. Tested modifying VIRTIO_NET_S_LINK_UP and different values of "status" in qemu virtio-net options, using vhost_vdpa. Not considering as a fix, because there should be no driver trusting in this config read before the feature flag. Signed-off-by: Eugenio PĂ©rez --- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c index c3cb225ea469..30cfcfcf97f7 100644 --- a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c @@ -27,6 +27,7 @@ #define VDPASIM_NET_FEATURES (VDPASIM_FEATURES | \ (1ULL << VIRTIO_NET_F_MAC) | \ + (1ULL << VIRTIO_NET_F_STATUS) | \ (1ULL << VIRTIO_NET_F_MTU) | \ (1ULL << VIRTIO_NET_F_CTRL_VQ) | \ (1ULL << VIRTIO_NET_F_CTRL_MAC_ADDR)) -- 2.31.1