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 7AD12A04FF; Tue, 24 May 2022 04:38:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C34A4068E; Tue, 24 May 2022 04:38:43 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id B838E4067B for ; Tue, 24 May 2022 04:38:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653359921; x=1684895921; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/pV+hDrzMkegsA76Mmfok1Evlo7fdxg3BqT2IE+6qrw=; b=GnKkexPKzeaGGwTN+DVFVPM5c8Gz0Gi6P27RYqSGxEuw7Uzn5136q/tp G5PK+z9ZYeH9HIazs0ZQVoZ1dngLjuxQhAgpAZSwQ4QQKYyGRKqdc9o6F KqoIx+NqtMVtTlqnzlh9tnekh75Hma7c1J/qltmrYSyr8VkBRWZfPP7k5 +L9VB4HdcGP7myICIgP+eJr0y6GLibL7P5zPJFWtLrqQDp9kyKQAfJ3nf opYvebYEJ8hcrPLEHS6A2UDg+/qjdJmrDAGMnIVTVjXuLZh7aqRQyYwQP tnKmHr3jRUnBPFwQDeW3CLsJN22lyi9rFqanvfeSU9SrV4rdWn23BLHpk A==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="261019080" X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="261019080" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 19:38:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="629680486" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga008.fm.intel.com with ESMTP; 23 May 2022 19:38:40 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX602.amr.corp.intel.com (10.22.229.15) 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 19:38:40 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx606.amr.corp.intel.com (10.22.229.19) 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 19:38:40 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) 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 19:38:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F4AWM0E0IwvVN000uUQ7OmKSixeS77gRmJlU7wVs5eS3u3A1CCil5a0T9otjj+lWrrntMZD8JCoHlCnsl+2PJ3E4qC5X1VANgM9mrjeGNIX8XLh9xNkK5eEIh56FfRPo6cmx5ljkmUPA7MUjdBY98xgk4rO7zeLJ4r4dMe/3gsO6yM5kgF19BIG6/Wen9UcG4Ea8nojaRUDhcF+mECxMLqPuD8ebSM/nhd4gz9wLZDrScWjER0igyHg4W7wz5OKliZrY6GzuhAXKioFYD4BZAN8+VZNooxfJhPC/LK+3yajdAr7nRjntTMNEhxlbnssWXRno2DQhZ9NJy1PEbA2bYQ== 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=53PTj7ekNUjJnH1IpcT4tX3nkuSoG4elBaE2K+geY6k=; b=JV1ZRyjL0wtY3T6iAk6coUlyOu3dxSYn7ssXwTDg4dU4poSHZgj7ktBEX5KbALSZnGLN2kdeBDeHmX6fSbh3ctmW91BI9YJUtOwhmwNW/zVPQT/cJ5x5nJuvfLpDIvhG/kctHBRItSD9G8PHyxMc4yAUvGlwBu6E78UhLeZ7KNloPDV0NZ2aa+UQf0HW8ZPB1sWn6D1ZPS5rZqbu9oXYMirSYQAE7c745m7QFXrtPR/kQZOCtvWL70shqwpaRfwhwINhVC6CC0+cWZF74gytVZOjlH9OwHetLRg3J5G3OeJAiBc/MWYtc361+8v9+HxY46oIqthJzUXYXsRZuEepFA== 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 BN6PR11MB1730.namprd11.prod.outlook.com (2603:10b6:404:fb::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.20; Tue, 24 May 2022 02:38:38 +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 02:38:38 +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 02/13] vhost: add vDPA ops for blk device Thread-Topic: [PATCH v9 02/13] vhost: add vDPA ops for blk device Thread-Index: AQHYbo8KKnKCP5o330qSsa2poWNKZK0tUYpw Date: Tue, 24 May 2022 02:38:37 +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-3-git-send-email-andy.pei@intel.com> In-Reply-To: <1653298524-232138-3-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: 66de6b7c-b487-4668-67cd-08da3d2e819e x-ms-traffictypediagnostic: BN6PR11MB1730: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: FTmMzz7V03ODc2uEK7FxLeRCtABlz03Tj5ulVFHs/jER87JbU7XfdWYyR7Y1MI6iIsEjxsqPj9HhlKiGPAn+6KPXOgZHSxskxCgvm1+vW2rZSU0Tj8oCdy/inVbGTCAoCcIjmU1iILgd/dPppy3kKmdn0cBMjzprzVX9WfCQbja1cSkbknfaUVGKoctlSxwy+j5uoJyKKVZp/44ZTdQLT8EdZo2DCRCe6XukSXMWsxuKJrCX4Muu4aCiTGRHjhtfNAU9NJaDkoZzjzvS6qE7x6DI8In5KJ38lUlm5CwXNsC6KMozW881kzAnMivW6wtsLs/vAWD8wpQazIp/JwXZiUUYuPLfsjO1MQHJx+mB0QfWyq2sKMIN3hFSRsEsupunuMO5W9u83cSh1K0ufI4gjKEgVcvFNWwbXjbqrVUMcFO1P6xSXlL1zgo25okR7qRj/wdMm/87Ooflpx1Ly4egatRgh7IWxG7A75MKnLmmZ/sGE4IUotjdmv7Nvl4mCeWOlVC7lE+tFihwhp/vsWLsF6U2aNMPPUO8xl+QcUpNm8B/8CsQEt5nbNw7oOUoq9i14R9O4sunUGpjrC3Y8P59QAbrf69OM4PmINXY2SDaMw1uCyAj/dvdZH9PfBGTwD7V+d7fhbJ3UBwiwWcKMx0Oes0yvsMS0589GVXDQrryAfGmwMuyemcl5moBKEg6I819q/VLdDBcXfsqsy8Fueo0Uw== 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)(26005)(122000001)(6506007)(71200400001)(316002)(5660300002)(33656002)(7696005)(38100700002)(9686003)(53546011)(2906002)(4326008)(8936002)(52536014)(110136005)(66946007)(55016003)(508600001)(86362001)(66446008)(8676002)(64756008)(66556008)(66476007)(76116006)(186003)(83380400001)(82960400001)(107886003)(38070700005)(54906003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2s2jlK0X0wVNLMQreBcZK2Ae2V7l0T8PJNyHIG2Pb43hKCWLG6fBcgHa4KK2?= =?us-ascii?Q?cxNAH5gzti+O3b7OA9e+d8/EwErHChqSyja2WitPbPWSpZD8pP43rhciOdED?= =?us-ascii?Q?gDDjSsTgP7j9+gSmpZvdJxZN9Looz/RyVgfXifqRqrdyCdFPVcg0SJ8HRFOt?= =?us-ascii?Q?U/AQ47HrKuW8KZsWSoU1D+RDAyhXMxPVvKqHpPmRuwgL5DzPTfY2MVkmVcKE?= =?us-ascii?Q?wuLqHaDbdRtQFLh4KPGmQH7UbPQZ0YZrChUDM+bPG9NqNzYfjJeOZHUO1At6?= =?us-ascii?Q?8XX8o3646fdpxKrHRHfEtIeCMYHojplzvbKlCutaXwlXz4HXekgGxeDyy711?= =?us-ascii?Q?qwEbg0UrZXhXJslyDeYs9H4HzXRGJB1e4kXtknTTs1MidGMPPS65i+mZazYh?= =?us-ascii?Q?T0ElzdKeMPSKToBwdMJaZEampMxhGj4WehOG9/TtiikyJwyCpNfrxY0zxt5j?= =?us-ascii?Q?UnlrAt/OW2+sDW+fu5/U4yrDX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eFyz?= =?us-ascii?Q?IZyjaCXkkP4vj+yEbMx5OIidjPcQO5VKfCxs2MqBHdsSkFPY54hBkq7RNpul?= =?us-ascii?Q?94lNHL4l/fPpSx+KJtF8wRUMgcPjHAD511nIppWXjlUoGsoUbDGmOzLFXYYn?= =?us-ascii?Q?sUZwzr4KyHPz8pPZLrmIDLHhe6dcXYCTjwQEjelwa59XaHwnm094vDGtWlsn?= =?us-ascii?Q?sV1sn/xdTyjfoVME6BgsEgJUfgVZeryYhzXdZcmkHdGjx8H0CK5MVnwT6Mnr?= =?us-ascii?Q?hYGz/KtWJilJ3m8QuqRXSLmcQQSmVjopKBTh+m81Lo/eOu/5Pb0++LVSKdky?= =?us-ascii?Q?7fIudu2rUG8eKwb57tlqs+xGbObTmbTwpe0E3VqXiq+/j5hBJfGyK9zEClwZ?= =?us-ascii?Q?NGK2/HVnVg=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: 66de6b7c-b487-4668-67cd-08da3d2e819e X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 02:38:37.8622 (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: MDHi/AUv4J9z/AbO4gGU6QZsEodHYXFpeOb7H4zVBvtrNtg2DWfbmFmPoDW4eqvamDv7FKs/pjkqZOM/oypmWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1730 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 02/13] vhost: add vDPA ops for blk device >=20 > Get_config and set_config are necessary ops for blk device. > Add get_config and set_config ops to vDPA ops. >=20 > Signed-off-by: Andy Pei > Reviewed-by: Maxime Coquelin > --- > lib/vhost/vdpa_driver.h | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) >=20 > diff --git a/lib/vhost/vdpa_driver.h b/lib/vhost/vdpa_driver.h > index 88138be..c4233a6 100644 > --- a/lib/vhost/vdpa_driver.h > +++ b/lib/vhost/vdpa_driver.h > @@ -72,8 +72,12 @@ struct rte_vdpa_dev_ops { > /** Reset statistics of the queue */ > int (*reset_stats)(struct rte_vdpa_device *dev, int qid); >=20 > - /** Reserved for future extension */ > - void *reserved[2]; > + /** Get the device configuration space */ > + int (*get_config)(int vid, uint8_t *config, uint32_t size); > + > + /** Set the device configuration space */ > + int (*set_config)(int vid, uint8_t *config, uint32_t offset, > + uint32_t size, uint32_t flags); > }; >=20 > /** > -- > 1.8.3.1 Reviewed-by: Chenbo Xia