Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp187187rwb; Wed, 21 Sep 2022 20:11:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6pmcJ5rrb6vfH8J+e1EPMXCfi5sN+dCXgN/VZBdWnWxsyMgvY6djPu/dg1y+VWHWykFJR1 X-Received: by 2002:a17:902:db12:b0:178:1f91:74e6 with SMTP id m18-20020a170902db1200b001781f9174e6mr1391945plx.100.1663816308533; Wed, 21 Sep 2022 20:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663816308; cv=none; d=google.com; s=arc-20160816; b=XwtL7cdFWlZRyMuAPeI2+Fu/ki7iiTTm8lIyfVler4o7w86XwTE5rcJjAnLyG4xQCU QcWZ5t1VOddb468V8bij40nqhPXoIdQR3wzzx93d3M1wLc1ckUZUDRMIYHKq6x45gjvO 881+kvvTofqNgVG+9yUZcZd/l7qa1k3VWpgoGJ7eGesYL9bNG/o+i1UuiSAwTvX0jb4Y 4DgZ/7jR50NMPbl2ZmlIxUHxKBuc0NiK96u+rpKEqEUkvhkOurn1VgJ+7Ayu7V8/Nid0 PkqyfXcDV45G87kpfBLOtoUwSgU8cfwRODkBTjlEIhhF9NeGYHidUwoXZiqucH80vqVE ycpQ== 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=PLPlH0x+8sBFE1K2lMim73ZrCnIrLUq50RHAvVxsidQ=; b=aECySJuM6ifvmfaa55RXpiwMUqxw5Knim6gycbrYEFGPcDuBNPVvXlEkoD7zTJ5/lX smlvI6DSkAgBwBhGfrbMUGZ5/44zdwd0vQERvowtcg8IUECGLRnMlSPTGvNYgTPPhsIk YaZ4qB6YOQ3/w3Ta4GkgqFoq65Hr81Q/V387D6vlh2vtFNOoYO0WkYQ+HGdUfmoLfAiv Bt0bZgz6IMbRRebRLv3TRPsEnZ00p/5qJiEKk4NMhjR+jLJ+DkEQBT+oNtBKAtYRr5MH Yb70J7tBtSq+MC4Jw+7NUq3A1yJIwujX+qRJZLrn3+MPasNrZiOvGoPfkEuzijyL5owb WSoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BT7As3m7; 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 nu5-20020a17090b1b0500b002034e5450f0si5436186pjb.131.2022.09.21.20.11.25; Wed, 21 Sep 2022 20:11:48 -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=BT7As3m7; 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 S230016AbiIVCn3 (ORCPT + 99 others); Wed, 21 Sep 2022 22:43:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiIVCn1 (ORCPT ); Wed, 21 Sep 2022 22:43:27 -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 D27C4ACA0D for ; Wed, 21 Sep 2022 19:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663814605; 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=PLPlH0x+8sBFE1K2lMim73ZrCnIrLUq50RHAvVxsidQ=; b=BT7As3m7gHqFnMtgaN5HrDzhA6nZdXtpjd+6LBluuBxpL2RlROzZAceRj1+5hjHgGG/pal 7N07SNNUEc+Xc+xI6E5laBeZ542lt+6TfjAKqHJDvWYJW+y2pZRIl8Ep5ei+Cew1276mcu 8oCRIRfB59p8CUvYowPHf/xMvvBREbQ= 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-39-B9w-nOuoP_OKG7pu6K6esQ-1; Wed, 21 Sep 2022 22:43:22 -0400 X-MC-Unique: B9w-nOuoP_OKG7pu6K6esQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EBCB68027F5; Thu, 22 Sep 2022 02:43:21 +0000 (UTC) Received: from localhost.localdomain (ovpn-13-82.pek2.redhat.com [10.72.13.82]) by smtp.corp.redhat.com (Postfix) with ESMTP id 82B65140EBF3; Thu, 22 Sep 2022 02:43:16 +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 V2 0/3] vdpa: device feature provisioning Date: Thu, 22 Sep 2022 10:43:02 +0800 Message-Id: <20220922024305.1718-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.7 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. Changes since V1: - Add vdpa tool command output 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