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 7729FA04FF; Tue, 24 May 2022 05:50:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1F8C84067B; Tue, 24 May 2022 05:50:00 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 2E4A74014F for ; Tue, 24 May 2022 05:49:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653364198; x=1684900198; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=m/UGBu4nP/sgI90RUjv3QQ9IOaNGV7QZdW9GmtP3BUQ=; b=gvWByqO/EPEq8hRkIrRWn/BH1HydoOyWHxabE+XGhc4j5bSdGck+dsIE LXnGhDfuQbT5sAwJkLVSL8X3li7fc52bOqv0auYacjVHE1v7FTBf+pnmF SsmreKZiflnqsQ8q0Vzw05rW7984X2F/5+M7dC8cMp1siDbKlRX39v4kT a4abtckxGRWsacXVN49jQzJD88XMcs7ml+K0H4GWioBVWafkzYQZHl5hQ BsGHxaYs5HBUfLVCifNL6Um9T1iSzoK5AJkfvPyX1dR0pKa727ZabgF0Z a1BfypN4mHOVE02zQRZ2+0BP5yECQR3ZMPQ71NWlY7VONPGVspd5aNtG7 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="298736472" X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="298736472" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:49:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,248,1647327600"; d="scan'208";a="676174799" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP; 23 May 2022 20:49:57 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) 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.2308.27; Mon, 23 May 2022 20:49:57 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx606.amr.corp.intel.com (10.18.126.86) 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:49:57 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.175) 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:49:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gthYpaLKRijYexHFmHfIMXXus8Sa+g1BTfqZ5a1Gv4lyapyINPake53ohClccRbhNcb6TOxD2pzlSXNrHGe75BWWdxinUzjkpMouX0HqWHVRu5mBCabopWrBqX5LHMCtLVAp5aUh2WG8MIVjtqOAJehCs7sIg6cKEhI1NRnH/8N5bvHbpFBHghPZByxKQ2mucATTJF6jcSUUFiYDKdm8QGBwnBJmiJGi+qo8M/ZfiXqmuRaBKk74/RoB654mpA17MGhvK4KnsWF37BGxxKAuZ81Bnq+Ctabn4vb4epIfM3L5owm77n+GMNnxAYsBfh7sbiLohMvH9R99NlIb4Pl0Gw== 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=0o59cS+TLnmJ+jA3jPnRYkAIXFiBzl+S8QV7G3jksM8=; b=ivB93n1W78ZAcWO9z99kU8tTMYG2Qwe8isyGAa8d3p1zIN5sZA6Xs4aWDg+SV+WJEbcqUJfBCq+P68ZLouIwWXyEnjVo2FwLgCVsb8y4CxB5I16zxrTT8a4uziuSM0dbH9lywSP8vOaah4BqfMJffnfdghhExUxLuYxeIQ6IqgiK+lXbegNTRdstEwvG86TtWilhA4huTGiD2/mYYAwrqLnEP9uvbeOVZqTvTNTskmSzGQ9GXsG/ZhsYu5Fv9QDqU5BjRkBMsyVfaMdrIqToE07UB37fTLG7STW32UbQEauxGPvTKYy6jD2lbRC7Xu9Wq7MGG3AgBwWugmUgcm95uw== 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 DM4PR11MB5437.namprd11.prod.outlook.com (2603:10b6:5:398::21) 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:49:50 +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:49:50 +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 03/13] vhost: add vhost msg support for get/set config Thread-Topic: [PATCH v10 03/13] vhost: add vhost msg support for get/set config Thread-Index: AQHYbx9XuENnwrTmSEGr/V5n74djhq0tZFFQ Date: Tue, 24 May 2022 03:49:49 +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-4-git-send-email-andy.pei@intel.com> In-Reply-To: <1653360497-18080-4-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: b2a522ca-f17b-4cdb-5758-08da3d3873f3 x-ms-traffictypediagnostic: DM4PR11MB5437: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: aIxTddmKqI0xHgwS4xnpnb3QDdomj+ex90qrPsFFEOptUoupzdTOZDyyiGxZOTfaB9QlE3NwlxVzNS3LzIb/m203fKj7Rw3z7UhU7WcPsszxhOUD32bsMO+Q9iowDclugf1/9vmGULM3iaoQ4MsuZBjdqQE2kPzLQ0c4+ECMiDbE3P4A8LP6hYdFP14dC8eVZlm1PVqDyZD6QPbKIF14puPsfm7+y0WHkT+gg5OSoFX2hkuLHiPr2cNSGZEHKDgoTE3tCtSYZJkqTK18OOGCveBRKa4OqMWpATzVNdSJR4KACt2I313BrTtH02QUpFrRkBGLOqkeqtjOqfZucC5mY5ryvjVy0wJMjrnmTSR2ZsK40O8/c5muNmxRr9LxRbVZXfjFY09sniXshAX5npwbIifMGn71+uITQOp95tRzIwQnOTy2Z1t09Boqw+XZR2trZuQfcu9XSBOgX3UFejcGEmEBDY6CzpK/iTiF/eAmZ1gs/JTBmAM6E//HEXxUG0Y9OBzgS8FEyst85eHWTDKl2FDwrJ3KGKFzbuowe/M/nT2RhG9s+u7wfQ6zZXqXL+YV1lZLWImxC8cw56pWjClbbbbABpQ1AdfgZiG3y0Lp023Qi20pTosc5mu7Jm086ObRuG1733U7TLF0jRhhFLpGczZNrhmMqj9YRQ6tVLIFsSwFergP6+flFhubsGUJsSkV3f2Yfh1Wx4p95auWqB287Q== 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)(71200400001)(8676002)(66556008)(64756008)(66476007)(66946007)(66446008)(4326008)(8936002)(316002)(107886003)(83380400001)(76116006)(5660300002)(26005)(4744005)(186003)(33656002)(86362001)(9686003)(52536014)(508600001)(122000001)(2906002)(55016003)(82960400001)(38100700002)(7696005)(38070700005)(110136005)(54906003)(6506007)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?B4fqVRoOwW7tskITvtu5OyVpvBdxw3JOldCWL6MI+TWJVDYaK/kaVXFCaRRA?= =?us-ascii?Q?STaWwbY5142V+k976V0EqSX9iZAv9xEKooN3cTOMzpZyOTIp38HZK57EbuKU?= =?us-ascii?Q?6do+9okwAWDCa2U0O9nvSBBVCkqC+fRzbK46zbkzRNZYB6zdnEtBDvzafe76?= =?us-ascii?Q?pNzKjNaJhSUJcfoQgdOCthyUm3tvtAYM4oLTIDVC+TCF95/7KM2zlGwujsDB?= =?us-ascii?Q?sejJqAsWtQQ407DxZoEryfeLlUFZ0y1XGkIVjnxU4xbazaIw2KCIctDnLCCv?= =?us-ascii?Q?9jURfe10/b7uPiifaXMpCsUcs/Bj2b6HMkv/IrILNnQVlh4h6x3RKEnJXx3v?= =?us-ascii?Q?z33K3+NPh1C6LjVXgAJ4uxXYUf0BRAxkoEa/usf1bKB3IwnGfFD4h9C2XfCL?= =?us-ascii?Q?FSBVQ/hKHTtaiu9CW6k6x2Qxcmo1IJsA/bjsxEmLO70WNG+Wy16cyrnMVwBg?= =?us-ascii?Q?VzE6gQXxM7ioRVWFGs5A4IWUszwgW2OkHTNl2B60PEATYeFvm77eNyfgrnuq?= =?us-ascii?Q?hIVMGqJ1At7NmZ7Opa85vCn5hFbccPVJybE9cxjwpxlUReK7AarbX3lg5Ozd?= =?us-ascii?Q?dfA84hI4JGXm5HgbcqHFwZJCgCLrGWD57MXlCmdGWzgBmsf7No/1rPwTXxBR?= =?us-ascii?Q?mXygXsn5ANW/yTWx0fyFXE0iQLHrKg+J70UEDfCn78Wy34+pKdLMu1JSGJaf?= =?us-ascii?Q?WSquDpgaA1ErLAhDloLqGqtGJjLlJJZmvPfAsmXe3KawWCadqSHEK/MGeePv?= =?us-ascii?Q?v0iRvah3lDm+U8mjU6BvcuXEbSFDhdIEWjxRK916ow2jZgmNoeS/00cO98v2?= =?us-ascii?Q?TBud8a687Uc7Kv0Tpj+rAorwOjrkkAhMS7rpVzHxQ7TO7iE8y6onC6biWNJC?= =?us-ascii?Q?I2rHNAL4zGED56aHnuG+P8tnonePGGD3eAeGuen+Y0FnNNp4o1P/w/wcorLN?= =?us-ascii?Q?mHUBD6nd2G2VzAgB3uz+SEdHVrXa2JsvBwEzGLKRXtrT5HkJ6gSy6fb092+6?= =?us-ascii?Q?MC67pQ5t0FaI9pj10d/FanIajkFbs2ycYnmKS+S6JxQjCxFVAej9RZXldm0W?= =?us-ascii?Q?tvCzO9CQOczTsU95FeEbylK+HJzublnQux8lBNtnOzBFqQTuSHx97uB8tXFs?= =?us-ascii?Q?uGXLp5eCkgH6lHbSAvMFyVvmeeJr1onmNatM+3PLT5ljCQsXbo9BYB6SGTBx?= =?us-ascii?Q?r+4VFSk43eL3cXd+kcEtA7dBvg0CZEVkW/GudUeNqE/kx2UC5KyH7SsZtrQf?= =?us-ascii?Q?jW/8UTNvRionqQgBqAUL7nMvtlMn0tezYgz50HjhGcbsomszQRdF0AXEb5cu?= =?us-ascii?Q?ehRocEXFB6lx9zqNUALCfh4j41kXDxnyL644Rui8stN4krVS1qcKUJmTsZoY?= =?us-ascii?Q?EZQ776r915DU3xuolWH9Orqpg/4hr6paBEbJVOldFlehxnO0begcKa1tkFhp?= =?us-ascii?Q?mS2YUkJhDFwaa6xHoWn9F1Yj+1VuIS0cZ64RctnjosC+w9xchwQiqrLcJxtA?= =?us-ascii?Q?3X9rqMpjSTy0YPf9pczygSaPUkugayXbJ6wOq0pJ9Q1D513KPc2g1uxorELp?= =?us-ascii?Q?qs0RmVFrgqJUmP/rIivGfZRXUC0UXFLgq4fiEy1ce8/YFFM0Yz5o3ztZNv1H?= =?us-ascii?Q?rmb42UkV0Wc+N7SIqlasnnTGOPMdB5mOC/lwjj00MOlqMR8a6OQ4qbOR4IgD?= =?us-ascii?Q?DV4tEZaKPABKsYDauZqF3LnffAlifoeq4Z95SUrTiQ0GnKE4X2KwoDiueLR3?= =?us-ascii?Q?blgylQoY9A=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: b2a522ca-f17b-4cdb-5758-08da3d3873f3 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2022 03:49:49.8668 (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: tcAcBo2Tqzya1cJR01PicccAF+7AJDCyCcdw+NdOKRHO9SO6hcb8FezNqgkPs4X/W1axKsXLtrHViv53uDquNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5437 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 03/13] vhost: add vhost msg support for get/set confi= g >=20 > Add support for VHOST_USER_GET_CONFIG and VHOST_USER_SET_CONFIG. > VHOST_USER_GET_CONFIG and VHOST_USER_SET_CONFIG message is only > supported by virtio blk VDPA device. >=20 > Signed-off-by: Andy Pei > --- > lib/vhost/vhost_user.c | 85 > ++++++++++++++++++++++++++++++++++++++++++++++++++ > lib/vhost/vhost_user.h | 13 ++++++++ > 2 files changed, 98 insertions(+) Reviewed-by: Chenbo Xia