From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48326A00C5; Thu, 14 Jul 2022 10:45:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A74FB42B87; Thu, 14 Jul 2022 10:45:21 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2074.outbound.protection.outlook.com [40.107.223.74]) by mails.dpdk.org (Postfix) with ESMTP id B5D6541156 for ; Thu, 14 Jul 2022 10:45:19 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=eEq8zBVvj8LtLSoXjm1wxfxudW6biftz7a6QD68TWZsawL1UL8GUjyGkLg6DXEZfuJmCjXIWA9eCwoNVCLHqNCxaH3fRmy4HyB53rBJsaTYRY5JDuvuRemgFSDX0CgWCxdw/nZfJ08zoYytEYMwRtmrBCM8qrWeyAMyuoVunwVQZg0NKxeNRTHLudVilgU4ELhfPKdkKHrPgll9govAdEplxafEoeBSqCwNzt0K4wRkLoN96jwYsPJhwnpV46fJXCTYJODuXhXV2LCh+vtFXakgUCju6ZMuNSF/omvHsk0KrYZc7Ok0gOC7JRagkkomCvk+bNYk5w5BKgt9GLNF+zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=XRtt9Ar1laTZ2Dxq1hsnHo4BHsfAFhCanlHEoTW/8Y8=; b=kSPRDpermMmkqKsHK751GG5NgX1wQ7Mhp+dwolFn1AqFpWlwnlduw8M5JPY9MgCzlwDsy+jCxUuNd9YMuzVl+NB6NmBv2vU0Ro2hwTbFpOE/q24YH30/ToNd/Y+dIAKKZJvARIe35qFV94jtwusD2z/wjN43/SLeDQYfpnD8ytHuj+0YHK3vcjqwFjLuGkFfjgiuPVZpDJdW9keQYUl6WpJuI2mlAET3DPary7cHeFbjQykAzxMT8R7i8ucOEcZGF6vCd0B/p7U1sSO4SSKtsazhD0C0QRXOuc3lSWpGRbaFzE0XKWML5UeDhTuE1aQm6IEex7ybdaiOYT0eQyBrlA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 20.83.241.18) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=xilinx.com] dmarc=[1,1,header.from=xilinx.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XRtt9Ar1laTZ2Dxq1hsnHo4BHsfAFhCanlHEoTW/8Y8=; b=e6GIjA+TBhbgUAk/imSaP8cT2+u2KuNsPTk5q45fpiLq2amlyqMQUAYfNnkCxuMIkG1Ur8KO7ofbeonPdSXD1ruhSZqXi3507jYDJWSgVCEXmMwz9eBL41h1i+uK0CzyD82jut374nnTJOI1I63hTr45YSc9fa+GHukr2A/iwoowRHLMSNlusp09U74k6LkbgtP0phLgXD/q+HF/8YNrLjKB8jbME74J6LP9JyH/ha4GCPb/Pr6+l4PwjmETZ0RpUuu/gqSLLW5ijAhO/i7q5tmaEnahECo6jQxUfuGNK2qokEM7HUmidPVSoAHlNcn5mologWeY4V0fNJWm0Q/a9Q== Received: from MW4PR04CA0379.namprd04.prod.outlook.com (2603:10b6:303:81::24) by DM5PR1201MB0011.namprd12.prod.outlook.com (2603:10b6:3:e4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.25; Thu, 14 Jul 2022 08:45:17 +0000 Received: from CO1NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:303:81:cafe::f6) by MW4PR04CA0379.outlook.office365.com (2603:10b6:303:81::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.15 via Frontend Transport; Thu, 14 Jul 2022 08:45:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.83.241.18) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 20.83.241.18 as permitted sender) receiver=protection.outlook.com; client-ip=20.83.241.18; helo=mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; pr=C Received: from mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (20.83.241.18) by CO1NAM11FT038.mail.protection.outlook.com (10.13.174.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 08:45:17 +0000 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id D6FAC3F250; Thu, 14 Jul 2022 08:45:16 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NuN8EzqEvue3viRo4COVaPvFFJ8FbtWWFyVxnQ6smtQkwfKlRg6529m+06K6ZRQMKYn9Lvhu0h1Ab8nfiU30uIlNb9+9cDai0Y9QWlkxYVBOqp2rVv85aK7KvPKPvjOwz4p1aGwlLJGTMUdvHOCxOBvtTGt8hzl6vtbG3U5dOeEJeZ7L34DIf7dAHEZ74inFPTamQYz/fLlQk0WPNfEUhwhmS6n2kT2TuhGviDuu2/LzHs5Q8HXX9x8bd77037OhHcTpfkoajoPpAK0EQ6DO8dN/vaTLTwOh2u7xBkp2yypLhEYtJ8fENVqhp40OBKQNDgigqiIG99n6LGnr9oIIwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=XRtt9Ar1laTZ2Dxq1hsnHo4BHsfAFhCanlHEoTW/8Y8=; b=DitX8nphbQOxaEmGWfsGXp5RrROUHqWaw8hcR9mcHpWGH8V/v/YOEc82uXUYLXOkvkistQjPmsdEhwk4g/a/sHjOiFm7vRd3+KjWoGq5e0un0cN+cO1/8MqSesrdacVmJiJALiFosXJpaiqvAkvyYiqg5ZmTZ0vm+ZL+oSNwSEKgKEpQsrNGEsd0NoklAwDqjZe+/uNInrCjv2uAs4A77ft4HUnvMw7zZryw8hAehpbs35se1h8wjFONuP8up8x2QL0M5XVMmTuZOwJ3OJObUVZ0jaKf5Zygf2YRK6Ex5huRiU2aZxnSV8SMaoQivxo1FSO0Ut3Z+oogbACJ8Ywx/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=dpdk.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none Received: from SN6PR04CA0105.namprd04.prod.outlook.com (2603:10b6:805:f2::46) by CH2PR02MB6198.namprd02.prod.outlook.com (2603:10b6:610:b::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15; Thu, 14 Jul 2022 08:45:15 +0000 Received: from SN1NAM02FT0024.eop-nam02.prod.protection.outlook.com (2603:10b6:805:f2:cafe::c7) by SN6PR04CA0105.outlook.office365.com (2603:10b6:805:f2::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.17 via Frontend Transport; Thu, 14 Jul 2022 08:45:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0024.mail.protection.outlook.com (10.97.5.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 08:45:14 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 14 Jul 2022 01:44:57 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 14 Jul 2022 01:44:57 -0700 Envelope-to: dev@dpdk.org, chenbo.xia@intel.com, maxime.coquelin@redhat.com, andrew.rybchenko@oktetlabs.ru, absaini@amd.com Received: from [10.170.66.118] (port=50766 helo=xndengvm004118.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oBuSv-0005xh-Ep; Thu, 14 Jul 2022 01:44:57 -0700 From: To: CC: , , , Abhimanyu Saini Subject: [PATCH v2 0/5] Add support for live migration and cleanup MCDI headers Date: Thu, 14 Jul 2022 14:14:46 +0530 Message-ID: <20220714084451.38375-1-asaini@xilinx.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 854040ee-3d5d-4e2c-0057-08da65752d5b X-MS-TrafficTypeDiagnostic: CH2PR02MB6198:EE_|CO1NAM11FT038:EE_|DM5PR1201MB0011:EE_ X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: gp/NEqnU/63M+zqxqwuJpfddBuUPEGT0nUM5ebNOQarGq+P2ahcacUK3fU448zgr+iRECiGjD4N4sCV8SXPkZZi6RPWVJ2oig9cgZnIEQZYW/I2Vju1OeU4B/hTKT/H6aIfah7FkpseGMUh/TZUYy29hAzixd1Op4CgCrf9P7UULYTn7Xhu9g/TbTET4E6agbZ74oZCJHnZK5nO2mbn7Af2tjoM9FeJn33zHzMC9RHNesnOLlnYjo2Dt3WX3bu7R9v6+G6ZGy8o+vuWwsOUHBRn6NwkiyVNJW1/h43xB/VA7BdE20f/gjXQc/+YnEfMDzffh+njxJTnctjg2vJeL894Z6xWvyCMYf91+5PcdDUXyO2z31/di+QH09gtbTc4VbWU7sHF1+XfNGZYDcJkAs74clyKAd4zjwS1J8T4msbfMdgcfopsIX1C1kYrDP7kgRicU2zFbxKgwGvzacnq9mFAamYFqJs5ZIPI4a8nwbXP0p2enVsuCAfdy+mk4XH0uHjph9ELGbpOzcaWHMROvHzxJ6dcPOAlLNcarKAE4XRgDm4CjC0dyC/QWqMOLaDcEEck9BXQ0jaZU3kv82iQBbK9er3+Mv1DdSXcEkqEb6zbg951uySM27UAMZ2lB7Vl0w02fQEg4/t70H0pUN0W9crgBoZq60X8a55s9d0YHVl+kHDG4Lq6MOLp8ksbE4lBGnhX8DdTVIePLAw0DQy6QIrxOFEWOtI4mBjjlDE/3hHaxW40nY3tJujZOfUNJ+giMAbVNRNx+ld5ouH6xaBh+8Q+SaBAtCo1C5BiRN/iOrZ+8o7N8YxczyL1kkgOj80Z+r7YujQWHAbI8FqLEcrf5G8K7a4ZUaR8DSXpaGzz35sc= X-Forefront-Antispam-Report-Untrusted: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(396003)(136003)(346002)(376002)(36840700001)(46966006)(40470700004)(336012)(316002)(7696005)(2616005)(186003)(26005)(70206006)(40460700003)(70586007)(1076003)(8676002)(8936002)(82740400003)(478600001)(5660300002)(6916009)(82310400005)(356005)(41300700001)(9786002)(6666004)(4326008)(54906003)(2906002)(47076005)(426003)(2876002)(40480700001)(83380400001)(7636003)(4744005)(36756003)(36860700001)(102446001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR02MB6198 X-MS-Exchange-Transport-CrossTenantHeadersStripped: CO1NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 17e07fa1-d9ea-4b1f-5a81-08da65752bcc X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lkqXDnfauCwC/cMVNTZF/P35MypzCSSBozYQsDos8ndNti2Ig5H6XagMbdCZv0CrActH6UTLHkd2tXvbl0X+/bF5n21Czm2LolToDo4IdKDk17AvHIi793QaZTcIl3mdJdaGMSmKWKCq4GmQgLVrse2iQ3G+1eYn0tEwiH3aksZgkgwFUzkE4Q6aUWFX+iHokid/PrRNAU3U9fLTIo/OFrW1vy0vCEQDCYSHh1gAytUQ2aCFhFtgH7GPZOa6Li+ccmzufyTWVPqC5sH8u6JMtUMW2X9l8QfM0a0COzs3jDD0MXdpU5bQ1crdAKshg09iOIALINPLrtVEkTqpZ6jlarCrl8vykNoPatJ0lUq2LjaWr8qjS5YeJQrm63Aa8DVqbSm1TdOtdcfKfn1Va8rnnzQQ0VKsCllQPl8kC7zvZ8ssb0FTyz4AhGFpRmEd7uFTILouVObOkRAZrMcnE7Am4uFu79YexckRgmsEZXMJY4dde6yIk8M4trvwOG4lRDU3S3+09HXYLxbANYhVsfluNijzD42NDUaLPyGRQLgELrgkV7dzbI7YwkjH6EMmhWSCHgX07bkM7BGd0wMOErG6yNbZ0XyWactietUdNpDYeIMlh/bqbba+CyURsMN9EHYqk1dDSAp7pQ6sPzOMTPNm465OjBsZz9qIVrfdwY84ns2TWkZAvZ7FBHKGgA9i9toPSYsooftkNB5ivDJIlbcUskyizIKb/81pxVJ1N6aq/cC05gpL1KJ0Iy0zL5w+dwKdT2v91K0SCcqN+XS//J4KqOCRwzsRaZmdcwx4hq8kw+O9OTi3J6T9R+4dEno9vq32I9ROi46cz6zzOaLCEJjIKzcYKviBR8mhShE8OtZnLbk= X-Forefront-Antispam-Report: CIP:20.83.241.18; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(136003)(376002)(346002)(396003)(36840700001)(46966006)(2906002)(47076005)(6666004)(82740400003)(426003)(81166007)(83170400001)(336012)(8676002)(26005)(2616005)(186003)(7696005)(82310400005)(1076003)(70206006)(2876002)(42882007)(4326008)(9786002)(316002)(41300700001)(8936002)(6916009)(40480700001)(4744005)(478600001)(5660300002)(54906003)(83380400001)(36860700001)(36756003)(102446001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2022 08:45:17.2395 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 854040ee-3d5d-4e2c-0057-08da65752d5b X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[20.83.241.18]; Helo=[mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-CO1NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0011 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 From: Abhimanyu Saini In SW assisted live migration, vDPA driver will stop all virtqueues and setup up SW vrings to relay the communication between the virtio driver and the vDPA device using an event driven relay thread This will allow vDPA driver to help on guest dirty page logging for live migration. Abhimanyu Saini (5): common/sfc_efx/base: remove VQ index check during VQ start common/sfc_efx/base: update MCDI headers common/sfc_efx/base: use the updated definitions of cidx/pidx vdpa/sfc: enable support for multi-queue vdpa/sfc: Add support for SW assisted live migration drivers/common/sfc_efx/base/efx.h | 12 +- drivers/common/sfc_efx/base/efx_regs_mcdi.h | 36 +- drivers/common/sfc_efx/base/rhead_virtio.c | 28 +- drivers/vdpa/sfc/sfc_vdpa.h | 1 + drivers/vdpa/sfc/sfc_vdpa_hw.c | 2 + drivers/vdpa/sfc/sfc_vdpa_ops.c | 345 ++++++++++++++++++-- drivers/vdpa/sfc/sfc_vdpa_ops.h | 17 +- 7 files changed, 378 insertions(+), 63 deletions(-) -- 2.18.2