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 54C7BA04FF; Tue, 24 May 2022 08:28:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01FC34014F; Tue, 24 May 2022 08:28:24 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id E10BB400D6 for ; Tue, 24 May 2022 08:28:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653373701; x=1684909701; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=7qXJRPJKD0XJFtShMPg1CUBqBfdFjKhor/4Z01E+BDY=; b=OObHHuXnuCmUKJwoWY0PO7SX2JFIzOwAwJi7OUit72t3vqHlWpFJ2g9c w3+M2NdRMqnP0s0C6vZXKl6TCVNfD4cKNl4KeyIE/BBY/S/BnKf1+inC5 HEIVYwF7YBKg7nUc2fLguHh6BPsQqcuGBGesA4xBTwulq8xJy6nZO/p9a A5B5XXwOfFyKm4bUczHpZKgtg8H1cZjfA3wgF4+7/DXfVBYllDp7NS47p n3++ivSdiFcEG5GedtDYgqZAiATHQegzk8gMTtOY9Ztu2waRKlgsouwQT ouk02l6Iv/zdjQiBK928Gwf3wOSBEC9xRe115fXtEjMA8wn0iElZ03EjS w==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="359839325" X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="359839325" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 23:28:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="601063061" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga008.jf.intel.com with ESMTP; 23 May 2022 23:28:16 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) 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:28:16 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX612.amr.corp.intel.com (10.22.229.25) 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:28:16 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) 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:28:16 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.100) 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:28:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hK4W/btgh65DQXGpoqzXFXc5crrJobXBIE4Npy41+J9aYIjUybo1ZfVxTXOfhVap2KVuRlVpjEj6WLcOz4uZPd6MLAIOnx8Oezpc+20xcA3pas3OMj88ZBCFR9QK9Mz15tjMlJsXmbekxjbb+78Uhu/ia/F8ktsuw4sg5P57B3uImiRYebubxWIcqj3WydqVioVpDVLwVdlwYssXTSf9UWnquVzgLB7+kO1u7BaP9mALozuQflWPWpehiM3Li+c5giULmTH4hTxyg3XHu7VUJ4bvjWj1yh0UqAkNmAF2Vng85s0VqCzejhmrEFZ0nc3BvDtzHhSpiSNov9f7LiCQqw== 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=eWZ1ZoesfIOalzlondS41zdpINIetdaw+PUwfdPcDiQ=; b=EFJVPaXJ7RN6jPaoyF5TySBkuBMgVGFWMKj+FSgc3rrtSgSzwUWeHo1xEHaVx6mXJj65r1/q6sJVIvEj+9M1Pma3RettYFeWpHHjQuhNAcdXJ8wv73ZnpIeVw1SNIMbhwIphEe+Gf9tJRqHSOyXlJMOS0c/S51LCG7eqIpRNdH+CXAAxKqmOZESmQB9ftjXTY+cmhVgIP4o1JnlqvUv3bS63fe3F+AUnIN/yRQkDnyVuSQT99jaUeF9uE5MRBaFWr9gcpJOBo7mLRqfxnIzR+eY/J2hZWqC9x/cz9VUO7vwoeK6mOKu4GnOWCH6cKIoqEgsO9OLPm4tq7qLVl6hc0w== 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 MWHPR11MB1759.namprd11.prod.outlook.com (2603:10b6:300:111::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Tue, 24 May 2022 06:28:14 +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 06:28:14 +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 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+UgmOwgU60d3dqU8QK660tkJPA Date: Tue, 24 May 2022 06:28:14 +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: <1653360497-18080-5-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: 8878ca85-4ac1-4299-0d46-08da3d4e9526 x-ms-traffictypediagnostic: MWHPR11MB1759: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: wJ9X2wH6tMiGjzQVJff23C7QyOr6hm/KXRbjqIDr/0yLHivg78hfjS8HJDYDWfmID0DIUYkydoscVeGY/q6LF3gVHU0c3Myb3vo+mbstboIiXH9NV6w8c6G9yUvLQ65Tdp6M5eBf3oe96TGA8vMamjUtWuPJQC2vFuRbEhQKGM3oN0lQoad+r1bYoGwHdJiZXx+yxoskI/E5ylZFLBTHv7Sf6BZSNQQVjXum5ptEYZVPlpGcqH+VOff5ta4aO19uUOsWatctiYPlc1pwQrgI5ltqy8lNTk929b/gtJuwHI2O+7G1w1nzZ1AzGrhlgCzcykTDp1bJ+q3u0zbVuaiaTwynBp1ontO6VMU0xjBc8rUYhU5uORrUhlrWhT7s7tDOHMLNOAFpnRvTzx/veL9cSVVj3xXjo1syYwiV3hFQxa0Jw80BS4bq7J3tUD3hn3DRNbCkg3RMJDkC/3g+6TiBG5b4A2588TWCIwizQAHsS0ZjtD4fIUY+9HQBd8fvm5NWPjlfK1vQ1tRj+f/xMr2UqqlSK/61QBZZSa3pLR5U/bGvl6k7xpjWg53hOPdhZcIj7t/Usk9tqQIEmZKTmZpbFEkgi5N5/6xnfG7QEaW/0vxy7giRGmaNZ1qzydsarmMhpqHQou4KDz0Ux+ZXftK0Pf/sWo2NKPgw79xpMPfpdtV/Er/MXxGRebSFioUitcGaTpF5yhy3gYeNLuEp2osiQg== 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)(86362001)(186003)(107886003)(82960400001)(38070700005)(38100700002)(122000001)(83380400001)(110136005)(2906002)(54906003)(53546011)(52536014)(26005)(4326008)(55016003)(4744005)(5660300002)(66946007)(66446008)(66476007)(64756008)(76116006)(8676002)(66556008)(71200400001)(508600001)(6506007)(7696005)(9686003)(33656002)(316002)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rje1YQ4eEMZ4Iqduzc7O1+kD6Dz9g92czvaBCmvefQZ2VQfRmNpGvwU/mrei?= =?us-ascii?Q?7B+tXTWRNH1dSNAiV5e3OunRqbFlGn1fmuww/dlwFpRu1y0jpSFwGBar/Vwg?= =?us-ascii?Q?3QmAXWnI1A7ymVXr2Pfirq1Tcz1iOkz2whM1XR5yKc2cEz4zs7ByjuTs3k7H?= =?us-ascii?Q?rIiTfjYCajuNgh4ij8cUwUf78oJ2qWIKQPvNYiqHvpkxD9Styt8Y2kWFCVE7?= =?us-ascii?Q?n/6JN7dcbtPz/KCJ2Pg/p/dD+sy2Rlzl+z+dms484pLDK5XuL4meYlGdaAKL?= =?us-ascii?Q?2+bho2spXeRxcK64n7PqNC/uj0ZegVPQMujiHag+ShlPI77YWpJ6DueYgeCs?= =?us-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oZk4s+GNJuYDAK1S7KcR4DI?= =?us-ascii?Q?0i+35SdD1kQxY+2Sf84ZwZ6PnA8zsdbG6Hpf/4noNkcQzAvrDvuTqPyeAhnd?= =?us-ascii?Q?RjAHrrCD7UWlCpz5ikeFAR0sOedqWs+w8BXGRwZC4wfVtaP73oH5rXlqKFqJ?= =?us-ascii?Q?jWNuFYIGGYvVXRoSyIIcVEF+KX6AFLeBpPCSF0F8R2dVCO3P4JQxBgVMQ9TV?= =?us-ascii?Q?nxYNrFl8pE0BKvTHTo48r8HbUATsl+34xeAU/7Ax1j249BeQhowlHMqAxjvz?= =?us-ascii?Q?6hMRouwyOTuze7FLYe8CfwUEE7PkkJQ0yIflBI2YIAgYqvDkonh1faqZnTvq?= =?us-ascii?Q?o8NMxKPrIPEPTo7q8DRsUyVRukrgE2Un+M9tAoILaIrPyXYaz+PcTRYVgWGl?= =?us-ascii?Q?ErnuphqYb8+YiXn4wMdLj22fHsD5H7aU5b3Q/EV7tVnVhSVN6FEDU9bXEQQZ?= =?us-ascii?Q?BwVmt3MgVhKIMdXePKURMXCCf4KkJPwT7CRWScyZoTx3tO7IogWiV8T14PQb?= =?us-ascii?Q?ENhyeN6CYA=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: 8878ca85-4ac1-4299-0d46-08da3d4e9526 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 06:28:14.5232 (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: 9cNdcSQ+qf0h9G0MNsNY4XZ1c2IuI4pEwtc6ihE7mZW2Y2Yx9RQfbpmkuYkNhL+DeQMfgKuqB/E8MPhMbHLWkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1759 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: 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 >=20 > 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. >=20 > 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(-) Reviewed-by: Chenbo Xia