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 49DD8A04FF; Tue, 24 May 2022 08:30:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C36F4014F; Tue, 24 May 2022 08:30:30 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 21238400D6 for ; Tue, 24 May 2022 08:30:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653373829; x=1684909829; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=jFXxhfBHbeNLnTOiPS5c4CQm7h+fKqPMrnRKjD3/3Kg=; b=GL0eWO9JkDcE501rJveYH3GXA7tpZ1DVP0Uhpq/fIjr2+nSWY5aVLZQp 5GYSw4IIoyVq5EazjBlYM/53NynrttkoR9n/LdhIBm/GXLZtHBA/a77Oi o2zH9SYSk93hDrCtMNsTS1aGBXkPpGyi8Um/X6nwAviwrKZZUlMObldBu ch9TtdncKGn2E1GuW1T4+4DSxhYS4o/LBKv2CG8U8vnl5brtA7JYG7fN6 SqQjn+e/nWvtP6Kq47dLqVWMV4H+j/v7C8uaT+Coa8hQp8Fj54Wfp2T6C 0ULP9FLnR7YpYx1SeiJ0TyifkxPDb+4/doI1ctsvsRDj3ohfkDsmz+OcU g==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="253319335" X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="253319335" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 23:30:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="572479966" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga007.jf.intel.com with ESMTP; 23 May 2022 23:30:27 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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 23:30:27 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) 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 23:30:27 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (134.134.137.103) 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 23:30:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NmHr8ZKHmHYQLJjRtDnBvN6WdAXqD52asHC3HfBe22X/NEGFFfPqZKVTddIWq0UqdYkhe57HLS9B8BaL4ouAJjrTMGT9eytz3CAlI3yW/gpt3l6fTG/5J0QHFCuNMj3Dxo9BqA4BZxVFjxrjCxmYOxyUIngbj/X3xoYVaec6isMUkZ3UVHFI6zi7xujfpHp74U8aD/AA2whnvMCNd9MMI1IFURu9DzTRhYpQ6AvTDafaEJvNPlPgr17SmjuCo3Co7M3Ye4lXuc64uH9wvhCK/0mMnoX1f5NHn5DpCalXkOSsiU3s4/yVAZKklGAxB58QmFNy19c06TudJ/yi471BQA== 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=uVXV1RTEqGrNXq0zdzV/e2c0ZcGtMHrhuRzKsQUJ9F8=; b=OuEwCV8eO2iUUgpoFy/YswxUfNT180fyLSmiI1yIDl7c5miD7wgIB4euCx3a7p7+dHtQRFElmzABDnzA1eG1Dwg63/gvwvRGYH3SayFmV22BTOsINhgF/BVRUU8jcteYOaUTOswl0Y7JjOuCpi63GtYLPxX7ifL7HDHT/2gQJojGFAq4kGhPdNa9NydoohXWy4J88Thibicry26Oy2uV930T79cBDoNABMG/ymmvq8deAnZQNSAJsUNP4+2TkhDhNcKPnzMRldUBbxIE+VsywifozB858Z7htMtYfh2eM8riM/5RwZnWaU04GJUluEB+f8xRsaMtt1S0JfesusOabg== 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 DM5PR11MB1739.namprd11.prod.outlook.com (2603:10b6:3:111::22) by MWHPR11MB1597.namprd11.prod.outlook.com (2603:10b6:301:d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.19; Tue, 24 May 2022 06:30:25 +0000 Received: from DM5PR11MB1739.namprd11.prod.outlook.com ([fe80::8c3b:8a54:d186:b555]) by DM5PR11MB1739.namprd11.prod.outlook.com ([fe80::8c3b:8a54:d186:b555%11]) with mapi id 15.20.5273.023; Tue, 24 May 2022 06:30:20 +0000 From: "Pei, Andy" To: "Xia, Chenbo" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Cao, Gang" , "Liu, Changpeng" , "Xu, Rosen" , "Xiao, QimaiX" Subject: RE: [PATCH v10 04/13] vdpa/ifc: add blk ops for ifc device Thread-Topic: [PATCH v10 04/13] vdpa/ifc: add blk ops for ifc device Thread-Index: AQHYbx9Ysm+UgmOwgU60d3dqU8QK660tkJPAgAAAkjA= Date: Tue, 24 May 2022 06:30:20 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1653360497-18080-1-git-send-email-andy.pei@intel.com> <1653360497-18080-5-git-send-email-andy.pei@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action 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: d7a15660-bc9b-4d50-4f66-08da3d4ee009 x-ms-traffictypediagnostic: MWHPR11MB1597: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: ZVeQow2SFw+x8/rnGHOe2Gewz2J4ruF3o/PioXuK/OTn3L42TpcKBd5dUfjQB187DV6Zi4/iIa1UPEPOlvZHBtuxZWpSHel104DNe6JfMT4ZUF350W4EsxwpzBhFDCfIkl2bRHuSWDqpbMXSAv3Eewl+EfLXFd+1BUUFPj6ZrlNqqHhcvepr8xP1F/Ym+2HYcm9lTBPHtWujTdUx8Kfvd6XzxuJxbRCaftwY1PnzvaNPxkkhkcPVnea2kfWM6AVIyRO0cbwrXZjVOmZAXytF85C+xowdsgblwXPCjUnp2Ehb9SJR8BO/T23s9TkkkT7PFCsED0GMAD+MgdRpxxekGPCm+3BJIvaXk6x3N7ckVmqJ9pfsmVju8eDjwvMa0r3oONC2Z8qtx2C4B4nHZ8ZRpkOW4Y1S9x3KsQ0MtJHe3yZjjCCX2Y8OKsI5lEg+upnRdaIThDLYXIK7DZwEUAUdU9vvxStqFtZtAvBmiIQC3LtCVL+tMLjdYZtNcbAYSibbjVghQeYm9U9zghxDykWcWTF2qe8yROzfqYRQworVt1hA/pF9us6eHhtPjdpfQu021db9a8iMhkAqG8bdlLRVYEc2+hp+qu+RB02crdW6bjmWi8qoK2LSPJBW5vBbZHMbtNKRdVbXQ2+Ojn6EJhzmchdbhJXdD7CwBECDxkQV4uZsijB+YB1Aqo9w0NRFRJzrKZI66N1YogXOJbhv1GPD/Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR11MB1739.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(26005)(186003)(110136005)(107886003)(38070700005)(122000001)(82960400001)(86362001)(53546011)(316002)(83380400001)(9686003)(508600001)(5660300002)(52536014)(55016003)(8936002)(66556008)(71200400001)(54906003)(66446008)(64756008)(8676002)(4326008)(38100700002)(7696005)(66476007)(2906002)(76116006)(6506007)(33656002)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vs5vPGsUD+IwR1pzhIUVzT+R34bXKuJXtzvLI+SAzIVYl2kTBy0VCc0LM7+7?= =?us-ascii?Q?9ydIAsy3y5u5/QmhhtdUcHOjmhzdBACPgAW84NA4r8K7DZtDphUSM1YiarPx?= =?us-ascii?Q?mRKcoim8tiCQ0nVysTfeFF9z2CdvcdIW1u+NPRhe1r/mRjTXrr0FXaOBNc0G?= =?us-ascii?Q?9b/zrWz1Nljjer15S601ZYknOUpulPXas9jzX20OApm+Z2w+8ClI3tryByUU?= =?us-ascii?Q?QBlUbzYvqmicMA9svxjPKJzW7c6XRLdN49zo4oN8Iu5MxkOE25mDQsyEl+1h?= =?us-ascii?Q?tcYSgTRAh+hXrm1q1cxyN9Dx2su3S0HPAHSqU/U0XSOJ7SGw8YopDS6sImd5?= =?us-ascii?Q?QC1iM73+cgWqbvWFzgDyfQjvt7WU7kSL8D6UgWtlW3BsCJ6iaoKG8mHXGkeS?= =?us-ascii?Q?zpv3uCkyGY4rEOGYc+Q/D8lwvD+cNyW7NJXmBnGcX4x06x1Si14CukoOMPo7?= =?us-ascii?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WR5RiLUAb?= =?us-ascii?Q?14zCMMA1O2LeglQIRVGyAcUQlqYi3OsrsBMVC/MgXuIok0MTjDfRSayf8rR3?= =?us-ascii?Q?bOc8WMlOsJSeo+9rkjGie1QFIJxJ4/IroSpB0GR4+2YYpdN6H86tQ3x8vGOR?= =?us-ascii?Q?rwrev3sAYVEOUtfm4hkbMqN8vhww9yq60LDLJjOYTNT4lZzJJ7ysxbTiy5bo?= =?us-ascii?Q?jXwygFD2zZ1XqjHD9BBSgVBJyzQ2BrikTsjRmZLwPOB1ODtzR1mWSZjCq5ME?= =?us-ascii?Q?R/bMW40TJXuyLZSbA02xZZurYhzkz5bKK2RRrBQ4zIMxm191oxslkwbKEcRj?= =?us-ascii?Q?lCq5YjoEdpVQo1rSyQcGN+ICHaew4xB3op6XMwFhgJXb12UxW9RNNiP5kfxk?= =?us-ascii?Q?zohTsEJ2rQ=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: DM5PR11MB1739.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7a15660-bc9b-4d50-4f66-08da3d4ee009 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 06:30:20.1171 (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: vNdwc+wMe8o82jERStNZU9/5+jN8oYdJoh99Be+P1KXCYozBKU7aERAjP/k12Mga9Gvf99Gz1xYE5Zn47zJ4Jw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1597 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 Hi Chenbo, Thanks for your effort. > -----Original Message----- > From: Xia, Chenbo > Sent: Tuesday, May 24, 2022 2:28 PM > To: Pei, Andy ; dev@dpdk.org > Cc: maxime.coquelin@redhat.com; Cao, Gang ; Liu, > Changpeng ; Xu, Rosen ; > Xiao, QimaiX > Subject: RE: [PATCH v10 04/13] vdpa/ifc: add blk ops for ifc device >=20 > > -----Original Message----- > > From: Pei, Andy > > Sent: Tuesday, May 24, 2022 10:48 AM > > To: dev@dpdk.org > > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; > > Cao, Gang ; Liu, Changpeng > > ; Xu, Rosen ; Xiao, > > QimaiX > > Subject: [PATCH v10 04/13] vdpa/ifc: add blk ops for ifc device > > > > For virtio blk device, re-use part of ifc driver ops. > > Implement ifcvf_blk_get_config for virtio blk device. > > Support VHOST_USER_PROTOCOL_F_CONFIG feature for virtio blk device. > > > > Signed-off-by: Andy Pei > > --- > > drivers/vdpa/ifc/base/ifcvf.h | 4 ++ drivers/vdpa/ifc/ifcvf_vdpa.c > > | 96 > > ++++++++++++++++++++++++++++++++++++++++++- > > 2 files changed, 99 insertions(+), 1 deletion(-) >=20 >=20 > Reviewed-by: Chenbo Xia