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 D1AEAA00C2; Mon, 26 Sep 2022 09:27:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79C48400D7; Mon, 26 Sep 2022 09:27:04 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 84F6C400D5 for ; Mon, 26 Sep 2022 09:27:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664177222; x=1695713222; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ZSaU/X71GVhoZapMq7GUp9txWDKwCgDEwqinJsg34vA=; b=mAFZ7oC3g8TqPBwNTb8Z5JRuj5yeWYPZNxNELGOxygVVJR6hRZYKBRNa 9I9jPA0yHB7Yn8c++cSUmDlxhUnsh6LlpmbKfsu4iTyCOCGOm3qqP/qqY j+T2ZxxBL2PfT7zElzDnrwP5nCr+qMNOZruTvmP/i1ikkpFh/+Xx7jh5n HhimoaA9ddgFPDk1CJHmNGJOss6SZwPG+k2cyXhQ8Gvi6lX+h1wZ8ujUA 7zAs2N0NUvAppEw/h+b16FSx/Mq72A9cRfwkHmkEmyUTBqDZaCKHakkmU sXLm2fY39WOhWV61wuOK+3H0A5fjUqFFGOsYNcscLPKHb5QVTOCxQi66g g==; X-IronPort-AV: E=McAfee;i="6500,9779,10481"; a="300942692" X-IronPort-AV: E=Sophos;i="5.93,345,1654585200"; d="scan'208";a="300942692" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2022 00:27:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10481"; a="620948028" X-IronPort-AV: E=Sophos;i="5.93,345,1654585200"; d="scan'208";a="620948028" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga002.jf.intel.com with ESMTP; 26 Sep 2022 00:27:01 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 26 Sep 2022 00:27:00 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 26 Sep 2022 00:27:00 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.109) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 26 Sep 2022 00:27:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cnMgBVH5cOW47mDXHk3HcC/70bf/FJ5ZkXz8k+VIIXh99/c2OYN+XpOtCfsy2r5O7/kP1giSlMfK2rCN9Eam0YaxHMTPsjV82neWuvaMwc1lkQe+wKDFYehjpoWwzpfgTeBQfb8vFd3vM9DWVWolOEAl2J/MqJKbmB1p2utwuOT/Sz9RJEcy2+tqqwSR5W4jQi+miFg5+lMng8yLujwlJtl06Uk+Rc5pRMxpr6u4RyBYlF+oN0dv+cElmCDlRqZZgtmKg+wo0r9GT+o7JRDZZwj1j62XkY+DI4NC7oxYDlAdkPZFzmtHu5qomJEuCk6mhehEA0FNMbupFL2wP421Cg== 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=JAehgBWIRQ7CvwOKfrBwmCivOQZVVzTnHRXQ5FNADNs=; b=HQSSFoiIXO56YvdPV1TBdFzjBJyzJT8NdQZlkeIzbycgd/t6tmh/TkWdyySGOMUr9vy18sStgqxAD5dszTr44Pbq8wRYvpQE5GbFB3jGZd0GXAhgo4m1sabhssNzFDeBId2ghX23eOhBcywkkRG2Nc+t78Uo67WBCfNqMzIHOXg7vxRwl9V9SfKml+gqoJeuajYuvg0OpSHHhpoaVVF+iuTYktam2onLSp1YOYyuVHQXX3cteiGU/+Elh+Z6Eo0N4UPyQ1klykNWFjf3vgjVqeAJz+ix2VRBjyf/7+dyTOvkP0UjM8tRml6WzcH7IlzNPVQxyhLNYgAugKUX3XJjcg== 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 DM8PR11MB5640.namprd11.prod.outlook.com (2603:10b6:8:3f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Mon, 26 Sep 2022 07:26:59 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::408e:79cb:b715:b8ac]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::408e:79cb:b715:b8ac%4]) with mapi id 15.20.5654.025; Mon, 26 Sep 2022 07:26:59 +0000 From: "Xia, Chenbo" To: Hao Chen , "maxime.coquelin@redhat.com" CC: "dev@dpdk.org" , "houyl@yusur.tech" , "zy@yusur.tech" Subject: RE: [PATCH] vhost: enable CONFIG feature Thread-Topic: [PATCH] vhost: enable CONFIG feature Thread-Index: AQHYx1cI8ewGVsa5GkmshSvjbLAXv63xY4KQ Date: Mon, 26 Sep 2022 07:26:58 +0000 Message-ID: References: <20220913095519.2554445-1-chenh@yusur.tech> In-Reply-To: <20220913095519.2554445-1-chenh@yusur.tech> 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-traffictypediagnostic: SN6PR11MB3504:EE_|DM8PR11MB5640:EE_ x-ms-office365-filtering-correlation-id: 1833a725-2f91-4db3-4bf9-08da9f907f84 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RHvlp/ajITF2Ml5FjVy8F4+DWLNSuPjQpenvwKv6TC4HRE7FUyiXvHPE/y8qAPB9t2mcxSl2++jNUpCixyV/BdpQLD31zL+8TFA9AavablSWl9fUttl7LwWvkQwI/wYexR5UmmOr/zPLSgUowIrD138RqQf/qvjsgxceNbnDSRs+wyVpeoE2VYAQA0Ny5PNT20gTx2lCnI3VkbOx9YReHItTHu34f0IKnGdBRpii5BvTXROIas2e4+CqQQ+ws1EqW/GY291luHVN6o+DJT8/krlIN2sdZLAdHTH3J1z5nG5QuMGxIAWoVRKttKcG82GPqG8+wTNEmEtvl0pY+ImyP95pm2IvvPp3aYixiN4B5mkJ+QhZPmawt48njEYpqgC+CRy2zXPtOiZZTpvCD8lD4yKr+dqWlOVetLrOMtXth0SrLtMNjgTvA3tkKVM6s713li7CMpL3fPL4QTLTAVOcH9DjWMCaxK3qWGcmCxNQ4lIzJ6MPjSNqBTTAnTeR8q2sx14POFT5vKg6+9ARb4xC8KC8/qaX6g2ZVEoIgGZTdQpCpm5IRGRh++y4vODnZe7AeXlisGpJlQ2OypI6ku20axKm//yCnW+B40oI2AO9ywbxIJ1mvLO88d61/CPQXBT8o8778kU+dEo2Z51zfrvGJ4fzbbcwsLO1slVmSg41HFOMDhSTRLBGRq6SdtyXaGTheGLRP1es9E7RYlT2Om6wpipvE9ebJh+396zH2qIwa81cpoLDri+n/0+HtoVm/RUDq7H63Wq/lcWwyaErKMg70A== 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:(13230022)(396003)(39860400002)(376002)(136003)(346002)(366004)(451199015)(9686003)(53546011)(26005)(5660300002)(33656002)(2906002)(38070700005)(66476007)(66556008)(66946007)(76116006)(64756008)(4326008)(8676002)(66446008)(7696005)(8936002)(52536014)(6506007)(41300700001)(38100700002)(86362001)(55016003)(186003)(122000001)(82960400001)(54906003)(110136005)(71200400001)(83380400001)(316002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8ZoIHuEvWYBx2Jhdw++Y3hpttFHj1uwcje2ihGLMaMZjTEYZpdSXeuGziyE5?= =?us-ascii?Q?Limjm7Kd/6R4OjTMEVmPksTLYBej9mPYeaQAjOZvS/Hk3zv9jKVhkXdewIkc?= =?us-ascii?Q?wEblu+goA0wiWLk9oWGR4jzzIHwClLLN8CPmNxfxQ/5bYuz9R3gg+nytAKLk?= =?us-ascii?Q?Yo2Pa3N1hCGr1G4AAKKi+rumGGJlUoWnhzftsXasxGvzHEX2fCmN4gmZ1zKV?= =?us-ascii?Q?N0sjlvwrrgNqtYWJCOgNU5mGjJsSwl65Hgk+jw9Rj3HHR+P8dk4KptoES9Au?= =?us-ascii?Q?/UJAqT0nDtRXpsudz3Philii1fkY/2MbqIxAD2i8W1QVed0mE9MiN/8FxDJF?= =?us-ascii?Q?pbuty+NMEcyRd2eHMAfVLB+hWZsoAwiTK+en2njw4JKqkroW+YutPZiojxNe?= =?us-ascii?Q?IDiKDnWQeT999f2wAU6Ltw9uNLBlJcl9BCzjljqt1MWQj1GroW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iRXDi7ZUDyltkMR1+MeTkItLOG351dfY8YN5/?= =?us-ascii?Q?LjtxEIwj9cMXlQ3tVdWVYS1aWNPkoNUB6laW9WVUHcLMfVqyhWVhq6jqKwAK?= =?us-ascii?Q?DZjHdkvLIv5QoS9a5j1StYG6hyvL9uP1+Waox7Tpufwu1z4X0ULblTpxUNhy?= =?us-ascii?Q?uFIeyMotjcyn4XPvDUeW5rrNSDRahKhLka0Hi1xzTe3W9af/VzOyrtDp3y6j?= =?us-ascii?Q?pZtpOzGuyUo17IzvJBNvj9Civv00ds2Yy7tkor8W?= 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: 1833a725-2f91-4db3-4bf9-08da9f907f84 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2022 07:26:58.9673 (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: /v2phWVGfulqKDmV1ZLeUmVkCXVpXqpTetV+S3PkyBFRC1WF2ldaSwfOrb9x3cQMPLHq6VnPg7oZtosiqctaHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR11MB5640 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: Hao Chen > Sent: Tuesday, September 13, 2022 5:55 PM > To: maxime.coquelin@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; houyl@yusur.tech; zy@yusur.tech; Hao Chen > > Subject: [PATCH] vhost: enable CONFIG feature >=20 > Enable this feature, so that libvirt or qemu can call vdpa vendor > driver's ops '.get_config' through 'vhost_net_get_config' to get > the mac address of the vdpa hardware without manual configuration. I think we should add this in vendor's vdpa driver, not in common library. Because some hardware and the sw back-end can't support get/set config. Thanks, Chenbo >=20 > Signed-off-by: Hao Chen > --- > lib/vhost/vhost_user.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h > index 8ecca68597..12e8d116f3 100644 > --- a/lib/vhost/vhost_user.h > +++ b/lib/vhost/vhost_user.h > @@ -23,7 +23,8 @@ > (1ULL << > VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \ > (1ULL << > VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \ > (1ULL << VHOST_USER_PROTOCOL_F_PAGEFAULT) | > \ > - (1ULL << VHOST_USER_PROTOCOL_F_STATUS)) > + (1ULL << VHOST_USER_PROTOCOL_F_STATUS) | \ > + (1ULL << VHOST_USER_PROTOCOL_F_CONFIG)) >=20 > typedef enum VhostUserRequest { > VHOST_USER_NONE =3D 0, > -- > 2.34.1