From patchwork Mon Aug 5 02:12:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaoyong He X-Patchwork-Id: 142891 X-Patchwork-Delegate: maxime.coquelin@redhat.com 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 67B564573B; Mon, 5 Aug 2024 04:14:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 503BF40659; Mon, 5 Aug 2024 04:13:32 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2132.outbound.protection.outlook.com [40.107.236.132]) by mails.dpdk.org (Postfix) with ESMTP id 755F140656 for ; Mon, 5 Aug 2024 04:13:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DU3Beky3hwJOs0hZBIEdFupv6iAGcnWLUexR9FaULqOHS3iLLmyYDKCODIJfwYNaMQfyk6AhpE0GmdaU/oM9l6GKkqhAgbLwlnNTt69nvHfsFNBkLeY01Iy9wq8f2YBPw4vS0k6JSnzkaqMl60AvY29jTesaaIpf94oOS+rBmvFOJBwRFZARjV695uN1Dj/bA8ZOyuiStHYRKly2ubHH4RCOA8CTmJm3wvAXutwRmcZJANQfR14tqwOK0baqSZw31LcBdBUIZFVsWt9bv7q4sUQFRXarK9eU+vF4EQZRNzgx+vH7NIgJVaYqo5i5+5qFWvEv394PCY80AQMyfV8FDA== 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=noGbcYrfShaNJliK9BJ2L8XMYFD4PKxNdAKjrbLMbek=; b=g3h5a33hX5jUhpELl7/JMbfMXR7MCgB8qHj1OCde5Q8+JJOt/XQaNDgxFEtqdQ3YvZlj8WCxJ+b+/y+P4PyYZYH4tjWUitIcPNV8VDsrhn5py52RvgGZTndqlWqBNxJ9SPIHWxVwMg1vwKYEqEE4HRLOGa4fiKvJQOvsxDha5PUwLWsi4E+1GfTufLpvqSZto/m9+tgOZjBPu+az8rVzuazt0sOTF4VDPG4mgVBI5cBqHwNaQVkzPaxU7j1wA6C+wzdIb7ZSSUKL4cunoj+NhtuVxcCHtYoB9z7GBc6Bh5g4e3SrlxiqzjYmROTJdJKX6C8wRMDT+8WdqD7co4x3Rw== 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=noGbcYrfShaNJliK9BJ2L8XMYFD4PKxNdAKjrbLMbek=; b=ojoTjJMhJrQjYBPKFPrYdHnaM7YLat7C51FCd0Xx9p+2/dERCa6NIG36Exb+oY0gBYC7/6KT+BxovVh6BUjwxzdrz6GzMk1fVGi0cXXJE/4JFlCQlP7levUmp9jFQySd/0+OtI5utG3KlIY14N70gMR+1051puBQc22Nx6jm+9c= 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 CH2PR13MB3815.namprd13.prod.outlook.com (2603:10b6:610:91::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.22; Mon, 5 Aug 2024 02:13:28 +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:28 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Xinying Yu , Chaoyong He , Long Wu , Peng Zhang , Maxime Coquelin Subject: [PATCH v4 10/11] vdpa/nfp: enable feature bits of live migration Date: Mon, 5 Aug 2024 10:12:47 +0800 Message-Id: <20240805021248.1051198-11-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240805021248.1051198-1-chaoyong.he@corigine.com> References: <20240617062708.2932037-1-chaoyong.he@corigine.com> <20240805021248.1051198-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_|CH2PR13MB3815:EE_ X-MS-Office365-Filtering-Correlation-Id: f8661e40-e1e1-4b09-dd48-08dcb4f43214 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: C606VDZX++c+68YGybDPHK8sg4fRSMgQv/2IzKsdbJjXBPVXbHDz4mclxuut6pamyAeZV6hIkuKM4naES8IB9vHbveNRQHxi2qpK63qCWXq/p/BqyUWufY8D7Og1uXoiVbbHq9Z3wC06EmryI0Bh7wJh8LAdkZYjGP8jj4IWd2o1GSJa7DUJQyFb50tFu7yOzQZ7Msf62OApPDvmoiRBrjseZ40X62lQyClI7rRHUBtS1R8D85BFm77dEYyJidbrrjDzpWjn+mDx2bFGFz8NqKmFGZ+YIH1pT2qSOvdUnnTWG5B5PnffaQN/lq0G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VAD2L4OP9ws5MpkhjkuY+sEkoQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(52116014)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 94g065u6kC2qfP7tsrf07KpQ9kVWDUaq7WAEOOc2Xyr66bbrYUs7/o+D7nrh5zgzmd1GL+a8NOs8nO9HaPG63X9E+iDupjTBJAMgU/+Z07jw9YpKZ3Uh2w47za0TMCe98azEGybWU3YQxKHjNyBLzgvtDGtFX1dnDjoIgTrX4h2RjMjzAMMn1eL2UuuNNYy9vj8o5Zw1k7tkssf9wvM3P/xUlL3Pbr0k42eSrpH9u/2uGOaHc3yUIoMNDrAgfKYpU0X/bEDKUDJBIe+emJ8Llp7sXBF8ss8XNgf2kGsjwyqWS1osl96oPo0tdrq1i06/gSD90vzwgpqx8BqAF5Kp/XvvW8yXkgmcJXIhqST4n0sBZtu3X69Ncpdn6h+qqvpq5YX8QnYGlgougvKf5G1yoFt67YV5giQQXyihlTy4Tz1RkOCarnoEGP7ggxK4rhh3P6/5u5gRorD0b+H5JljpyWn/sc/Ca4LxefkkDNYtOPK4bUOWQAbeqmT+BPJsbr7u+6jNWlr/wW30ehQu+zzzl1G6XVqNW91IDku8apWFrfkWR8BAeiPCv2GnoWDyDG7//BhTBQ3cjojkWZlG1vGyZj7ulLn8V4NgBQI9CO18MeCG/Xb8K5zBwzTYqEKkKPOEG0XIWPnoJaqLJl9tm7kzzHiRc+3bDDxb1uP3SNGFA+30RKww+YN2GcT18nZG/OFOfJ4sZaX5qlhOPy3a4+9IqlUlratXKjhpPp1YUKPGcNEkkfubQKSxa4Zemeg7CNYhlQx+4osd6lwHgh2p1Sc5RShNvqGRTRHjHC6OipkLZQB5Vh8x2n80tQRZgDTZ3+UG/Hlv74aMLeF8HiPMaH3MM0LaKApPp+qwXkayS+b7orVJUGoCCImtswLW/lDuuwQObk16bLoCLcEegII5PXw7RhJesloUOLm01B4m2bddTpZewy7j9sZE87PtOdljWEBFAerOHmvjd2p/QAvemAY9/6vOWT6J7IZcXSMy4AYY4Vrt+0f7y+MBxpjqg6ZMLb3HnvlEfyf8M/TNaSCHRs3At9TbMHaKeZR8ePOzVwoQOwe3gw/ooAlNGz4srcs6UgzGVWTVapwUA1vRA4Yepq9fn4yS5ltR5+yP719saK75u9LmEwtqDr8prgocW2kGd+wI6azuYCNSHDPuaIZ830IiWp3T3Bv0ubGSYAWxMaU37udGFjQyd1fCc6SodsuqSlAeXDnUzSbk3xk4zSsfJlkJE1sMTYtqVW+JWrh/mQmVx6wwG7wAhBNvZHuOU2+FYnnHuWZB8kA0Xxzq+a8mYtJrSEKPlUahiFysgZqutoCQWaehUubcje1lOgvd7BNnjiEmbcy0QIA+RBad7raBAJYzrKC8i2kOKnF2vBF5Q7z55d9dXVGDZb5JxOwvEqgii67781RueVUmoNKHDioVD6scU6UgspQ4u62pZe9VpnhZQCjbi3US9del2H0uIr2PIXqzm47dN3Bl4QgcrSUCB1WEJ4ZXC1XS9MQzCmSdf1WsW2YRA0RlYcvHNd0ZpRCxrrQj+MP7xApKD5Z6Ea0qa8WO3eMr84lWkrmMKR4Z9OT/HFo59WBaepZsKGBbsdXj5ISkvpvMhjcNTdq1+fKui5HQgg== X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8661e40-e1e1-4b09-dd48-08dcb4f43214 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:28.7646 (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: j4MQgWNmIUQJuyIj+9+w7LkzgXgf1UPfNw0S4zf5AkCj2p63MvCQC6KZfjkg8WLTpb4m3SljjKw2hy8pe6KPtpJnozHMhQlIoiAT5dDTZxQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3815 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: Xinying Yu Add the 'VHOST_F_LOG_ALL' feature bits inorder to enable the live migration function. Signed-off-by: Xinying Yu Reviewed-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang Reviewed-by: Maxime Coquelin --- drivers/vdpa/nfp/nfp_vdpa_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vdpa/nfp/nfp_vdpa_core.c b/drivers/vdpa/nfp/nfp_vdpa_core.c index 3b3481a99c..70aeb4a3ac 100644 --- a/drivers/vdpa/nfp/nfp_vdpa_core.c +++ b/drivers/vdpa/nfp/nfp_vdpa_core.c @@ -95,6 +95,7 @@ nfp_vdpa_hw_init(struct nfp_vdpa_hw *vdpa_hw, vdpa_hw->features = (1ULL << VIRTIO_F_VERSION_1) | (1ULL << VIRTIO_F_IN_ORDER) | + (1ULL << VHOST_F_LOG_ALL) | (1ULL << VHOST_USER_F_PROTOCOL_FEATURES); return 0;