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 229CBA0501; Tue, 24 May 2022 05:00:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02E3442684; Tue, 24 May 2022 05:00:07 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 719BA40A87 for ; Tue, 24 May 2022 05:00:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653361204; x=1684897204; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=RjoulcwxWCUZMr9Fd+YTqobllLjRbP5NDzjsLRHboME=; b=ge6QraeVuUOFOtX9M+dh+lwlhiHkHLIgNXKT31Fj5YaKmhdaNwKgDoaR pL/vbfcMus1OALADvKf2dGPjy3wEAhnR015dK2b5Go9wAOEaVmpEucmaG w2kP4DdE/CofskTGf3/L+PxRqmg+rj0awyIn66meplpDLYOp2T7FIvG5w v5Nm4Z7NmIR7HAirK7iF9LjjcQxwAilX9kLtFDiOrgH6BwKRBJID4ZHYR DnhOI8IEn9818ReNyditpN1BL0NijiKxwISJ3H8tJ5m1ktgyZURgWjhaC JoA5mL6AGM9L6tNoT8rcZ69PqsmixvTe0iJvBVaAqXnIj8B+8BX9RJysR A==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="270989215" X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="270989215" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:00:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="663718741" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by FMSMGA003.fm.intel.com with ESMTP; 23 May 2022 20:00:03 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 23 May 2022 20:00:03 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 23 May 2022 20:00:03 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Mon, 23 May 2022 20:00:03 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.177) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Mon, 23 May 2022 20:00:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M58eGXLxpaj+AFioldOXD/roMKMpqFUaFl94rPbhirbuCvrMtEh9NK00fUHkASEobzmsQDy8LiwiKu10a3nHcTfXeK74F7siuQTfnX/0w4Sv4+dZaoersImn04iC8w3uW5cMY+fjAjvOwnHrU7nJe23PykXx5v2u9pJeB5Gc4fCA7ffOsZJU1Saf1PpaNVHgBa8CoT2RL5Ffujf7BbOjyE8ytExHJwVupn0kHwURd6f9czm7TyOSqk89B0FEnw3eZkhWqtnaUmrc45pTpMuI9zI8JhKFnguXclBPDBqwLBFlT1aa/9GPZv0fBkT5S7olgrt0lV5Ctg5qWPe/a4sLtQ== 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=6ZXgOq1jVABChfwbPLKmcLttl3lU3PXyWeGF9hWRfvo=; b=dvfIw3/mmk4e0aeHtH6a3VZnZdpvfy7RYacK+0poHd4jikdQzJPpl4jH4GwXlZpORL7McQHsmO4iw9dZKyF/Pj+wFYQdLSG/1bU2ULv0hwIgwA1IuUFfB3vZnIKQxpddV06gFWGkeltla+bSY0fMN4m9PAGXc3Pn1cjX1ob+q4CjJSaTa3ObzQg2AXPc07u80deDaSihUVE9TQXBc/1AolmfkEc/6JbIK97W7qyK8hSCWB+NtWz7swpYeuC9H7/K4I9TPQ6nHGZpfeFipMaohjktwFqSPXuLomb2FJKMPjYzU61q4Rg0JzjOkM79paNuU0ljFeiSGu9m2lhkol/M9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by BY5PR11MB4039.namprd11.prod.outlook.com (2603:10b6:a03:18b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.17; Tue, 24 May 2022 03:00:01 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::54e1:e802:17c8:93f]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::54e1:e802:17c8:93f%7]) with mapi id 15.20.5273.023; Tue, 24 May 2022 03:00:01 +0000 From: "Xia, Chenbo" To: "Pei, Andy" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Cao, Gang" , "Liu, Changpeng" , "Xu, Rosen" , "Xiao, QimaiX" Subject: RE: [PATCH v9 06/13] vdpa/ifc: add block device SW live-migration Thread-Topic: [PATCH v9 06/13] vdpa/ifc: add block device SW live-migration Thread-Index: AQHYbo8XMz0IBra9zEanxYTFE/+rS60tV4Qg Date: Tue, 24 May 2022 03:00:01 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1653298524-232138-1-git-send-email-andy.pei@intel.com> <1653298524-232138-7-git-send-email-andy.pei@intel.com> In-Reply-To: <1653298524-232138-7-git-send-email-andy.pei@intel.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4d870bd6-2d3c-407b-45a5-08da3d317e98 x-ms-traffictypediagnostic: BY5PR11MB4039:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7JuvyWaxTBCnfpyj2tNzUzioskmD6N6BhWbHpXMOG96z99WexXP8X5hBcTTxlKWC00FWtDWSfBr743B9JSj7e8YrRePGbW4kjIyno0a7NY0JmruDwOTy+VJYoGznuNv8zBh+2ebUF9ej24e1yT+I1/uJHUQrlh+ExHoG8FBo9LTw74tQT+xb95zH9XoXGCvOdT3nHBMal9r9/xjCHLsa1JpmcHDw/Op6ePlZSFVfhUi+ituIU0vPHmmRxs6RxSYqkxEhwM3K2s1mqYiY3hemMK4EEF5gTB/4NlAhXGuuSix8wghj72DzMs/qz37tjozSN8kH14yOsNGZ2Gu73+DSSzyAekthLdo7/t4jSCD/d33AZdK0a4HQllh7DvrHUiatWVXktK98lgU10kuwenQnCkQX3FWuBLQGVsnRzWpCgus3pYVlhWrXzdBqb1pZdsXaXW29nAB5kDfBCvoo9oeaFKDrn6dR248KymCXRSqG1Ru62/jt4OQJFC5cBhqdpWGD98AcPiUuddtJ1iFT9kn7R0SaadqkGe39aWJA6Asdfgr/lgqPzTUtwqyIQARWx74o1/sdFSvlHu+5Xj03rK7v1jA0uY3E8Yd0JR67wMo9kcPub9Nfq/6/886hOpr68rXUlednaUBmdAuwqpPkyqMRqUnG55BqacXwNAUoVqfVpeEyeCI8KIZDYWBiSs2KmDVLG8W9UbZpqpgaTF8veNFDfg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(8936002)(66476007)(52536014)(66556008)(66946007)(2906002)(53546011)(110136005)(316002)(54906003)(64756008)(76116006)(71200400001)(4744005)(5660300002)(4326008)(33656002)(66446008)(8676002)(7696005)(508600001)(55016003)(6506007)(83380400001)(122000001)(26005)(38070700005)(9686003)(86362001)(38100700002)(82960400001)(186003)(107886003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?U6Y3Cgy8J/1rwecPWQfKFuZOV5tQ23+lLjFEhHSoGi+WD80M4iTYdAKSzcyo?= =?us-ascii?Q?8IiectkimzcX7twAX6KzGzaRgWPdjQH4VvoHkDcGbuh+44uzkzhQnMx6Z1NO?= =?us-ascii?Q?aeedIIxVQum9pBb+Y8hSW9W/zPBBOjgfmacHRN0Yxc0Y+ajYx+7FKewNUeBZ?= =?us-ascii?Q?O/mFbKAuT8uOtuOnkXtQ3jNkm81IwbpRkpihUKkR8CZNvZKRvhfMWdgM782u?= =?us-ascii?Q?dh+A/8iZ0OIDQenuXhkN6redtGCLvxbhCjFtgZAPA6EG60Ps/iDQvlkt/b/Q?= =?us-ascii?Q?Vc9gEzWfpeDqKqILPwhYtrmLEFkhvgt/k3ugeV048nhvD3Jp0PWmk0y2uzqr?= =?us-ascii?Q?oZ7HN9jeRhbc7CQm+Rj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ascii?Q?a/V5t1PiWTAMiKmMAOc6nwnEQwRHpersASrbphZ+HQK7YTu6X5eZvoFxk9sn?= =?us-ascii?Q?WpqXikRiiuPxx1n1RquYGYlQaE1bqidArr32LwoJ6Vu6dxMVx6VKkTrNQDld?= =?us-ascii?Q?xP3khqv8Rh+jJLB/QvQOHUkhAw5f3jiwaZw/2KBi/YCsLqI9rXBYlZTPlbUW?= =?us-ascii?Q?oogDceUmtb4DMoSdAHnU8yRoBYYJ3Jd/fkwGBi/PB4N1GhZbQaB8opvjjsCN?= =?us-ascii?Q?0zoP9t1DaXW8W5bsk75HS3+MgFFXEdtXPS7Gi2Hzkbyl9CiOcy1htu55xRUU?= =?us-ascii?Q?SEV9cSWjNV5LkSeahbW21VHQowO/o0SJrIWWpOKPcZQ42XsjZkXDbhH07NhZ?= =?us-ascii?Q?56Qm1/DKdY+BxWQckGqYcPHEpvUm/NEG3V23r+mmX12QOod9k0MYBFKjIfca?= =?us-ascii?Q?Nxxo/NjFhU0MpqFn/etTsFcMdWoYmQa6vQiuHYHOzxC9xD1VZ30J96mChbXJ?= =?us-ascii?Q?RP6Bm04REw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d870bd6-2d3c-407b-45a5-08da3d317e98 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 03:00:01.2321 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GHRcQvBZVtmElEIlC0nWtJzfTB/U1nnIiHCPFg2e0k7/rJpL53Z5uIYLbOxj1XcpvuweXAlsWGdvsjdj9j1M2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4039 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Pei, Andy > Sent: Monday, May 23, 2022 5:35 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; Cao, > Gang ; Liu, Changpeng ; Xu, > Rosen ; Xiao, QimaiX > Subject: [PATCH v9 06/13] vdpa/ifc: add block device SW live-migration >=20 > Add SW live-migration support to block device. > For block device, it is critical that no packet > should be dropped. So when virtio blk device is > paused, make sure hardware last_avail_idx and > last_used_idx are the same. This indicates all > requests have received acks, and no inflight IO. >=20 > Signed-off-by: Andy Pei > --- > drivers/vdpa/ifc/base/ifcvf.h | 1 + > drivers/vdpa/ifc/ifcvf_vdpa.c | 42 > ++++++++++++++++++++++++++++++++++++++---- > 2 files changed, 39 insertions(+), 4 deletions(-) Reviewed-by: Chenbo Xia