From patchwork Mon Aug 5 02:12:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaoyong He X-Patchwork-Id: 1195 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 69CD44573B; Mon, 5 Aug 2024 04:13:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1518640295; Mon, 5 Aug 2024 04:13:12 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2122.outbound.protection.outlook.com [40.107.237.122]) by mails.dpdk.org (Postfix) with ESMTP id 254904026C for ; Mon, 5 Aug 2024 04:13:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bkdt8XqTTs3futsSA/xFHFe3ZS+iagZ4JG51RZEnWE8Wh2JCc+6XQ0EaI2EmG7dsbs8clEBTPMVLRW2rvfTXE1wYK/wynYIVL0wbvm3ZJ7MRA7kSEt8LjOn6kLXtJnKMdfNB9MGVAcLVJ8/PCySw+TMpr/tAyjqnbim+zJ5ThBFgMd7XcH4c3RydoQjOc/XezA81+DBZ12WBIYpfL2lro1fiC33VmIHUZ8LVxTs++Q0tbAvR2k1cDUHG7KARDP1hAa0x2Jd7OqQtv9LUPo7gt/OJp7reY7eFzPyzRJxqoY0XJFID+pF3l18tHnvYb7kR1+a8zfBM4y5jT6Ek1Y77aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=urNylCo9SKBLEaYeC7Pmha9iVO/dGaxbzmmtymsadB0=; b=V0Ps65cYOihvEEEMijaTje4TQ0abbwsiGOxC3/2j+iG8Nlfca7QJtol6y2+lQ+793VQh6YDvPbXdm73qmILFw3m6B1mdah9oiMUsSMwZez0PqCVbHORGodh3jngeepuppH7FasWzxd731fTaOoI7ZaxEc2QnhH7Nsthttau0GY6CEoqsCemkKZGucg+KiKb80rmUsFYv29eA3X04QFWwCUri5EBpGBLDuIDu246rQcseD3LzIY9GEVgfVo655b1cw2ES7heKVYNs2YemIzEIslERzzLFbqCGM/0P0FyFu/vC6MmvUlQoWs64aeLEIVe6Rk10qLIwXk0iz6g1lVPkBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=urNylCo9SKBLEaYeC7Pmha9iVO/dGaxbzmmtymsadB0=; b=XUWUmqBrwLoszL/iWZ+RzZngM5LYuWptP+4oPhFG7+oGzRK4gqtVHvOgzL9omcIqeFKd+5hmMOzDFCJ1UOFaKf2tRG2lCv9opLChdsylrMBYmHhlO38wknolPjQlI2H1TD5mr1X/oqpl0D4ypyjXy3KLi6uK24k+AqaLMWTCNhs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by SJ0PR13MB5896.namprd13.prod.outlook.com (2603:10b6:a03:43a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Mon, 5 Aug 2024 02:13:06 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7828.023; Mon, 5 Aug 2024 02:13:06 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v4 00/11] support software live migration Date: Mon, 5 Aug 2024 10:12:37 +0800 Message-Id: <20240805021248.1051198-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240617062708.2932037-1-chaoyong.he@corigine.com> References: <20240617062708.2932037-1-chaoyong.he@corigine.com> X-ClientProxiedBy: BYAPR01CA0050.prod.exchangelabs.com (2603:10b6:a03:94::27) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SJ0PR13MB5896:EE_ X-MS-Office365-Filtering-Correlation-Id: e5e06da2-34c8-40f8-3169-08dcb4f42487 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: d6gqHFUV6Z9o9nf5AN4IjdqajWU2G2sBkIdZh6Qhp3bIZyoP5S2aQazP2z5HzqPGlv6WOw8u2OCvG0FtIl13Y9LAdLfch5RD3/ndfLf0YAVjUzW7k4cfdk9FBgKv39et//CUznGdPFjrxu6RgRaoTVjmmYAUc6MIwOOCxgUMmPBY+3V6olJHH1u0vY7FdTgfG7Syks+jOFxx8Xb0+co2iIn3XcWclyRTI44daNX1jYUA2wdISnZrbbVk431+UACDSOgTA8LexOewhYMbUBVTJAsqA8xmhdh4PW7K3NrsWRE7MueaMaU5+6h+J3grYRV+5KpYCvdYXy+i5gIMZVjGF555131Mj7ZNUrRxKQJGi9x7Dk6+L7hWRPvG/FcW3oB6PSN0H7Sc4SEwm9IUEBXO6qqnjS1uRyblEv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R13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(52116014)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ele6vt9p8ybWPtZpoCNNgjAzWNGE7dcyt/wa6sjDIqpmdj7Ez9ADIzx2QMMjMraeEwX6tTVWhtfFqwg4/+zoXwYoltP9NHZiCzzL2Q/Te2NDVwnmztXvnICcEL3a8XY8kpr/mgtnFRCBtg+RSs+YOP6A8zrnSWyrhQI40beQgGLYQqSSHXMlDzDq/mSXzTD89DiRp06btR/kgo1wEep8iDjzITb0EBZ38CDMpfetFl8wzaxjYMZKA+Fhd36drou8vgwSea3zw2ekweafAPCYPfizVjuDYKalvYXiu7h7e0V83jYei6cLyKxgOGesGubS9jgRui2Tg7jUH4sJdTM0vSe+At5XaOfvwx3F6R5lLbUxJ4hk8pMGvYggvZO7m0Qew2r4Q2z4PW4v+3eZDPjWyF+q6E2ztH40m8cFAcIhHyK0Dng6YHMT/7vFDz3Ohpk2PmEmvxgREeGv0Cb3tOG6ko9QfB8qv6ih7bmKdFXoj0GOfChoZaT578zssIQaoYOiWu4p9P+X/EYOlatsMfa0uIIHcEzwXS04ttBvkbZKJHEeU6pDqfFKEtO4p3PiEpGTc1u+aBy2I1m+IKqsVKbEjg0BOhbo2E7mZ9N2XS2uB9e6cYuCy0GBT/+958XjTaca17gjR4KdBsc6urOTFtwUzWE16ROMqCyFLr9nslUaof7/rFn2ivstLYqxn5YCl5yjWMjqdFXHyAClOEikcDKDAvfrSkYgXa7IWJYgmK2AURvmtEx7kDGo2LGuRZFKS8vdei3l7cBDvm1trSQAXUEN35vUEv6xnDsRzPm22cM+/rY2PUXp05UaUCmxxsiAnwogjw9slwb+mcDf6EW5cijdtRlINvA2E5ogU99u69AcppgnV3twHikjUMj9cUARjUE9vLFYvBvtpfWbVlUO67hNjB77ca2lePx6ZhpPRVfJiUfTd7GdKxAveNd4yGHytxf53xLx3N4AzrzsaXEGV7/pvaXYBwr1PwCc5yG/8l8gaZTrDx095plNDB9WyhJx52XpCmY22oKShynPSAsICOgydue4CJO4lMx4KAM+apri+FjDV3kFg+/tVHwCym1s5hOodnMTJ0yeuQ6J+Pe2TO7MHTWSfHn2Hfqg0mGNx0WoCkhRB3nVqZxw3FW62A3AhAeDvbGgUcnOdKZihN/91kjecojmjGB1TIlbV5dBqZBYIOrjcTxr99ot/VnYyW/+h7kx1rDfz3Fc5zk1z+NkLOmR3yb0MRBdQOeEOXdXtWQ1B8rfwjP2cmpn995eZiY26n1s10VfbjGc+OQB5jB85uqkuJy6OQc0IRXCNGu3xkpuBv++S5aMvY+jqTgW1CEf/2s7lmHs5dVfm3VoD71yusg4hGIRcL9PsTmY+X9U/2lfr77CjJm+CDDPSfser7VatJ/LLzb5OPGbfM+YkqC0ndba3jqZgmYZMIDXL+jHwS9wERzGmreX/WiLd5OdRIoGLQzBt+Lg1kBepNttDf/x46MY8k0Z7oawvTIVJr8YPPAmBRtKq/FNvFC2LP1+NAfBHjJOumy7TN4o71o7RRaa70t+78PhmsUmNEgaReUh4d0emtmuPfB29l4lxjX1mrP+kVbshYkHaYvXJ7Vk+o8G6WiRvQ== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5e06da2-34c8-40f8-3169-08dcb4f42487 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2024 02:13:06.0694 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jj7CWAHt3Sd7g+sNaM1EmPrePHW4nqshQOZcLPf60hnJaW6khitR+9gF2iCnfflG6bPFzDY7KMkMrnYlt5bYVvkCzpfru4VvLbRP/RS0/7M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR13MB5896 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch series aims to add the support of software live migration feature for NFP vDPA device. --- v4: * Rebase to the newest main branch. * Add the 'Review-by' tag of the external reviewer. v3: * Fix one compile error when using standard atomic. v2: * Adjust some spell in the commit message. * Split out a commit to enable this feature. --- Xinying Yu (11): mailmap: add new contributor vdpa/nfp: fix logic in hardware init vdpa/nfp: fix the logic of reconfiguration vdpa/nfp: refactor the logic of datapath update vdpa/nfp: add the live migration logic vdpa/nfp: add the interrupt logic of vring relay vdpa/nfp: setup the VF configure vdpa/nfp: recover the ring index on new host vdpa/nfp: setup vring relay thread vdpa/nfp: enable feature bits of live migration doc: update nfp document .mailmap | 1 + doc/guides/vdpadevs/nfp.rst | 9 + drivers/common/nfp/nfp_common_ctrl.h | 11 +- drivers/vdpa/nfp/nfp_vdpa.c | 441 +++++++++++++++++++++++++-- drivers/vdpa/nfp/nfp_vdpa_core.c | 135 ++++++-- drivers/vdpa/nfp/nfp_vdpa_core.h | 14 + 6 files changed, 565 insertions(+), 46 deletions(-)