Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp506560rwn; Thu, 15 Sep 2022 02:03:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6CBnxNcI/YCgH+gnQKM4UJi4wOcaKwbLwjOrpxMVuJDL8rhnZhuvn+//uncjgZ+TtdTvdZ X-Received: by 2002:a63:1351:0:b0:439:14a8:87 with SMTP id 17-20020a631351000000b0043914a80087mr14951635pgt.66.1663232638054; Thu, 15 Sep 2022 02:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663232638; cv=none; d=google.com; s=arc-20160816; b=Nfxg+PKqDGUfxwi4xOE0xGPQ1hX/0oKW11ARH5paUsCghdbxmZplj/AMcklBkv4Cqc YUwvgUR1B5YA2oBal2H9pzIbJumD4jqo/pg6cD48eQX/eKJ+Y2cRqg/s75SsVJgf4Ko3 KYPPljfGp+1r8eS1+89nFSTz9RXXFKEluK84FIBO0KMqUyNVFYDcB+TkEvBtysIimY8C d0igeuM0VTFmsrBeeCoLGT2ZfYc8b12wMw04TyCKTt7YkySPLkiJ6J+5WySQNvCzwtv2 VQbj3W+i6QEZpB2e5P8McHU1+omq/2QIK6Yb7ljH5GYRSaNOj7duJujeIFLClM/TRacy 4fbQ== 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:cc:to:from:dkim-signature; bh=GENWxAVvpWd3dVo6dm0mZc+x/Kx2jIgk/iiRb5OOLbg=; b=qJyTmx9yyLGUWrPnwbB+3ks5tyj2xLyVKxa6y03f8AYbVRRQbUxc09ly+NKNB3QQZo thabonwTVw0k6JWQAKDUUJEUEao6xZcFx0hAxZyy1kp3m1+aOToHuz3khHyNadeCQUvn K37778e2FiwBJLgAFXuIVc9CDQ3gIObVCNH1Ksp1h3jl/NcM2QWkqAREYa1ReFJ+V0Fg QprADN7zvDYZX63qGEJGJss1PQ6g8e1Mq0G9ansduz63XnxM9o66PN6toLXJrkzTiPAZ Ry6VaPqP3V18C4WLgnF31qV9Kc18pWrbsPv+81dOsWorFLG2XYNo/isokCEk4INR9gSE LwAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QoprnRvR; 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 f9-20020a635109000000b0041b557cea68si18301158pgb.25.2022.09.15.02.03.46; Thu, 15 Sep 2022 02:03:58 -0700 (PDT) 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=QoprnRvR; 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 S229908AbiIOIvG (ORCPT + 99 others); Thu, 15 Sep 2022 04:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbiIOIvE (ORCPT ); Thu, 15 Sep 2022 04:51:04 -0400 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 477C77CB75 for ; Thu, 15 Sep 2022 01:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663231862; 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: content-transfer-encoding:content-transfer-encoding; bh=GENWxAVvpWd3dVo6dm0mZc+x/Kx2jIgk/iiRb5OOLbg=; b=QoprnRvRHbRpUWvzlHTWafzIM8LgWXQZu0nyLr/fJvGJCMo2GYsot54xcwsFICbE5RONkg gXFrsU3zbtnGyUl9EbMVcjlV9hTVuII/g8X14VESSCYSf4j0zzr2/0H5s+qHQc22guO2YJ KIxR53GhScQsoV4Bd39tHNb/5YuTXL0= 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-255-dSUG1HUlNtCHrmg3fr2PXQ-1; Thu, 15 Sep 2022 04:50:58 -0400 X-MC-Unique: dSUG1HUlNtCHrmg3fr2PXQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 92604858F13; Thu, 15 Sep 2022 08:50:57 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-201.pek2.redhat.com [10.72.12.201]) by smtp.corp.redhat.com (Postfix) with ESMTP id 108A91759E; Thu, 15 Sep 2022 08:50:51 +0000 (UTC) From: Jason Wang To: mst@redhat.com, jasowang@redhat.com Cc: elic@nvidia.com, si-wei.liu@oracle.com, parav@nvidia.com, wuzongyong@linux.alibaba.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, eperezma@redhat.com, lingshan.zhu@intel.com, gdawar@xilinx.com, lulu@redhat.com, xieyongji@bytedance.com Subject: [PATCH 0/3] vdpa: device feature provisioning Date: Thu, 15 Sep 2022 16:50:45 +0800 Message-Id: <20220915085048.12840-1-jasowang@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 Hi All: Virtio features are neogiated between the device and the drivers. This allows the mediation layer like vDPA to hide some features from the driver to faciliate the cross vendor live migration: vDPA on the source supports feature set X vDPA on the destination supports feature set Y Management can simply provision the vDPA instance with features X&Y on both source and destination to let the vDPA can be migrate-able between the two vDPA devies with different features support. This series tries to allow the device features to be provisioned via netlink to achieve this. Please review. Thanks Jason Wang (3): vdpa: device feature provisioning vdpa_sim_net: support feature provisioning vp_vdpa: support feature provisioning drivers/vdpa/vdpa.c | 5 +++++ drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 11 ++++++++++- drivers/vdpa/virtio_pci/vp_vdpa.c | 16 ++++++++++++++-- include/linux/vdpa.h | 1 + include/uapi/linux/vdpa.h | 2 ++ 5 files changed, 32 insertions(+), 3 deletions(-) -- 2.25.1