From patchwork Tue Jan 31 23:22:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Si-Wei Liu X-Patchwork-Id: 4784 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp90544wrn; Tue, 31 Jan 2023 15:24:37 -0800 (PST) X-Google-Smtp-Source: AK7set8NSApdwokqNEhD88D9rwJl2e5YSwB8hR2oDHwC3oc5i+ANnvNj3ESDXwtLycy0+0E7QcU1 X-Received: by 2002:a17:903:2053:b0:196:77e1:3d9b with SMTP id q19-20020a170903205300b0019677e13d9bmr549895pla.41.1675207477329; Tue, 31 Jan 2023 15:24:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675207477; cv=none; d=google.com; s=arc-20160816; b=uoYilkEB1vNZzwyKqoTADk3ibHwc+Qq7SkD9DSVyV5++ebnI8/ah7b7cPeW7E0pDms fM7EdwfxyWkt9aN58DAj2nSO2aFcLBAYDurAOTbsBsl6tjeG+cPYnPxftHJw74Xb+lIY spzMrldMrDMcW1Kea8f3nZWWFAhksOGX3BpZvFFlIeSKp2rcDXwcYwu9OeeFCtNnqthE 37Qu6zFPF1WQ8ogMIFcAwaIsAMhr3zu4JaeX2ax9XJAYV+MiNqwtbj9KZ5kz1QIDr/Ld MoHhUJhA2Pq5hbld5Lna27cSML2HTTs5QXLEOASxMoQsYDgGBqtEbREFmcE8+8IKEEo+ xWKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=0s4y1MDssHKhpvnOleVZPgAoMVzvrH7+LhP7fjbqZEo=; b=bBRedsJ8FV9rWP6MwnicLG+LLOaopAogICMhbSXWsqEjjs4OhXDj8Gi58qmJntB76N 3RW8CslwmPUFLZdHq0D7LD7z07k+pQ8jBxniCbp6oF6CwRuZwI0o42huszqIRdFJqhNw ko3CmUrUqfjlStX4Dr+w8DRnkFeGDpkLs659DiwpyeROSrjjtaPeKdSelGCxojp4DIod 1Cal81Fp98GffeQzpXLmIY2nmlc9T4l/Cw4z4SHrxbMJil0Jt7b7e4TvXAOQqqQeHExD cU3F8nHqYNwA1Rh1eCdfv06JE45Kr+QMpFFwxizmcnJiiSjQjYo1UeX8u1NrpRQS/wvP pc+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=gKGsMVwl; 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=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a170903120800b00192f5f00971si19792554plh.579.2023.01.31.15.24.24; Tue, 31 Jan 2023 15:24:37 -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=@oracle.com header.s=corp-2022-7-12 header.b=gKGsMVwl; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232147AbjAaXWa (ORCPT + 99 others); Tue, 31 Jan 2023 18:22:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbjAaXW3 (ORCPT ); Tue, 31 Jan 2023 18:22:29 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5527144A7 for ; Tue, 31 Jan 2023 15:22:28 -0800 (PST) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VIiMW0005638; Tue, 31 Jan 2023 23:22:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2022-7-12; bh=0s4y1MDssHKhpvnOleVZPgAoMVzvrH7+LhP7fjbqZEo=; b=gKGsMVwlYN+br9jaH0RiLf+0gt1Q2ea0frp1PhYllwo9wWYOOsY027uBfOgasGkKSD7s bs8yYp/QCI5KZuhFa0V8sWsbx0x/Tn3QvTe7kvg77KcLNed+4ip5eHgNK6oq5YO78bsU 0Tr3n3eudLD6iNoA3Dij0KqmnBj49UhMP9U2UZrLobwo2aYMwrsy3gncec4+gEZC2X6M j0G04ntpZGuEYogzxtdmvn2048rZeJH3jUO0VNEnMgL8GMioiSYT+pIUEk+msuH23doK 5Welf5G2y4TaDhcIKRtE8o37LlKRgZRjDV4B3f81SpFojPoau2qkUrhvrjQcKyBXTE+D yw== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ncvm172t3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Jan 2023 23:22:24 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 30VMuk9K031540; Tue, 31 Jan 2023 23:22:23 GMT Received: from ban25x6uut24.us.oracle.com (ban25x6uut24.us.oracle.com [10.153.73.24]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3nct5d8c94-1; Tue, 31 Jan 2023 23:22:23 +0000 From: Si-Wei Liu To: mst@redhat.com, jasowang@redhat.com, parav@nvidia.com, elic@nvidia.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] features provisioning fixes and mlx5_vdpa support Date: Tue, 31 Jan 2023 15:22:01 -0800 Message-Id: <1675207327-22289-1-git-send-email-si-wei.liu@oracle.com> X-Mailer: git-send-email 1.8.3.1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=0 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310201 X-Proofpoint-GUID: nsgxjMM5DMAO8yIvsELNQHutpZmxxdwC X-Proofpoint-ORIG-GUID: nsgxjMM5DMAO8yIvsELNQHutpZmxxdwC X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756582355711044901?= X-GMAIL-MSGID: =?utf-8?q?1756582355711044901?= This patchset is pre-requisite to export and provision device config attributes and features for vdpa live migration, in a way backward and forward compatibility can be retained. The follow up work [1] will need to be built around the new feature provisioning uAPI, with which it's easier to formalize migration compatibility support at the driver level. Thanks, -Siwei [1] [PATCH v3 0/4] vDPA: initial config export via "vdpa dev show" https://lore.kernel.org/virtualization/1666392237-4042-1-git-send-email-si-wei.liu@oracle.com/ --- Si-Wei Liu (6): vdpa: fix improper error message when adding vdpa dev vdpa: conditionally read STATUS in config space vdpa: validate provisioned device features against specified attribute virtio: VIRTIO_DEVICE_F_MASK for all per-device features vdpa: validate device feature provisioning against supported class vdpa/mlx5: support device features provisioning drivers/vdpa/mlx5/net/mlx5_vnet.c | 72 ++++++++++++++++++++++------ drivers/vdpa/vdpa.c | 98 ++++++++++++++++++++++++++++++++------ include/uapi/linux/virtio_config.h | 8 ++++ 3 files changed, 149 insertions(+), 29 deletions(-)