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 9B9C4A0032; Wed, 11 May 2022 16:24:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8A5F640DDD; Wed, 11 May 2022 16:24:22 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 7C60A406B4 for ; Wed, 11 May 2022 16:24:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652279061; x=1683815061; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=vhP+JDKjAyXaUTLd1eVg3GSZINvULbdcSrYGOHqRiYQ=; b=MCFvILD3Wc8xuOfP7COleYTgX358/LQS/Wij79NttvBmUbJjTklzcsmR 7GVJeUnlUc0rP1ywhvVVyqStXVGWBtJmZ2MDwwKbdKNt5cmM22Dq7GTPw zn+NkJzJMoMRUDVK1iKYX/SbdrH9PbAAJqtg/W4vlc2BJLXwf9BYpndo3 jwNYR9fYqHVdz2QdQf38HiF7vL1w6+JBUHW8mjDCr0nC466cvBbybjZYq kGLksnN1HF+TtwLGeGgBICBUQfRK+P4xHDqlLkHwIiRLqPS88LoxK9J2P z0SIXARGFsdLsZs1fg40nlJZnaMVvNIC436bUFB8YzBve39wG0sBA5oNt g==; X-IronPort-AV: E=McAfee;i="6400,9594,10343"; a="269381551" X-IronPort-AV: E=Sophos;i="5.91,217,1647327600"; d="scan'208";a="269381551" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2022 07:24:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,217,1647327600"; d="scan'208";a="623968088" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga008.fm.intel.com with ESMTP; 11 May 2022 07:24:19 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 11 May 2022 07:24:19 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 11 May 2022 07:24:19 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 11 May 2022 07:24:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WUYmwtiD2XkIkR7QZwg2o/2LGPDo0n7fDs+9n+l0RpU2qtRw5dMozuYG70ewtNwxjfAtyXwlR+h78NsNKtdn4caaMjv97MsevT9BtLOt4ZoMTV2YFd+VleGjDt+zl7vE6NrMwecCIFOhVvtvB4eySDUKg1vLEbUSBxqBDUA7FiRQ3eXZ1uFERXxMS4NCdFomnPHbRCw8Y9DIH69Lh6yOMndv8w1XJLEr9dc7Zsh05mPkdhCGJGi9n0BP28bB7Uq+rVbiNo1i8Myos2ctPDsgCvSvwTG3DFOaDsVRMcVCFoH1sszE+gyvd471JTu3dfaEck5W72rpcHx8nIsa36FGpg== 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=D9EbKcpTybiLn4V4i1JlmV1u0PZSV2egpior1hi5ALg=; b=UG4hb69kTnij9oOq4Mx7x5AzkYTSLhbrhaXVIt1T3KlVY14z4g7Fgh+AxuGQnRqzyBo4vDGlhHKha8i8vEAs8T9XSQWSLolImoSQ/t5Nh9FKCIz+sTocCzl1shdQw8gNdJtBC/3HnBbPawzYNvlFJAi/Ia5jvSvyDCYrpfFKrMmHA5U/QsWQyeSZ+/X+Twwq2pomxZZJ7735Dw8eeQ4CmzsrWU77QIAzp4TSn+GOnGEBU+1QV3shkufFd3aFb151n0eCvucyI5gLDUwAslTy6padhmFErIHbI+/f6nPEW3tX2Rdjkz5GYCApUQ6H4O7an5mmxFyDY7WFAzVvXJ1Kfg== 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 CY5PR11MB6485.namprd11.prod.outlook.com (2603:10b6:930:33::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13; Wed, 11 May 2022 14:24:18 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::2c8f:42df:ed85:99e5]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::2c8f:42df:ed85:99e5%4]) with mapi id 15.20.5227.023; Wed, 11 May 2022 14:24:17 +0000 From: "Xia, Chenbo" To: "Pei, Andy" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Cao, Gang" , "Liu, Changpeng" Subject: RE: [PATCH v7 03/18] vhost: add vhost msg support Thread-Topic: [PATCH v7 03/18] vhost: add vhost msg support Thread-Index: AQHYWhd+zqLnkL0xmEqLVNBnH+IJJq0Z0Esw Date: Wed, 11 May 2022 14:24:17 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1651048206-282372-1-git-send-email-andy.pei@intel.com> <1651048206-282372-4-git-send-email-andy.pei@intel.com> In-Reply-To: <1651048206-282372-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: 12519916-4d59-4c59-c98a-08da3359eecd x-ms-traffictypediagnostic: CY5PR11MB6485:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr 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: l48TPMtbY1PezUBkVPq20s7bU2gxhFpyDB6MnGsWuq9zPO/1t/ClQPG1aRBqRrd7Lt6Bj5qsEYbV8WT2+ZewuwWYZk11NDNshL6W65kkhy1l8QbhT26dvJ6S+StglegB4DnYE3rHL0kyO1bnXGQBUC43VzrQ+6ekiCZxK5izgcEr/fC3Q9/vEL4oKXYvnmuv5GI1sUzZwJn0UcXebdwWbYgd1cxBUUzaJ2U0yIX9n5Wq9DaeWeFg3pfsZcSQXr9y/MiSf5d3Kp7XSMN2V74dS2r1JDS4W+Bj97td2oeOGsgY6w9/z8qDa070IS1b2yxGZOoXD1U86PIWD2YwX85QlKRwgeFHggcW7RQ7wneFjnVuFwDPuPr1DYxYf/exH2FTPzfscV2okypd1N1K93Mgwzt6WmuJv6ooJcSbK4aWPqr6nnHCx8BWo0BSB8noln1cTTiz0kwHLffM6JD9WiJ8E583dz/4LF1fb7afXZn0iBDYgYmx4lDdP0NFQ2xBF3r6NX0EtX3UkU4EAsmJGp9rmJjM2BZPmI7zv59YMRSllBsqJmkrUuYOHVds8R27TdUFtlHVsy+0VvIshEQej240WUnruo+kNaEFh3zD6GRsEiGd3XDO8Czq7tBP8OM9mOLvTw7rAQ2oOAzIKTG2+oMkyPgGtA204YDYokE5guGvtOfkSBUNzjHyegOG+G6im3zq2N5OQdd1nUrNx+n31VLk8w== 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)(8676002)(2906002)(66556008)(186003)(82960400001)(4326008)(107886003)(5660300002)(66476007)(76116006)(122000001)(66446008)(64756008)(52536014)(38100700002)(38070700005)(8936002)(86362001)(53546011)(66946007)(110136005)(71200400001)(83380400001)(54906003)(6506007)(7696005)(33656002)(55016003)(508600001)(316002)(26005)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?BUfMLa+nR+Ve+7MAHJoLQv9vwKL4M3+Zg32/ubJ3E91EC2WrDx5QcHQtlOO5?= =?us-ascii?Q?4u/3+Jo1eCpVm1H0pDPzN/e2AN1NTsVgH7TfaYooVPK4SgekUZmMtyLx99Q6?= =?us-ascii?Q?iE+0jUMz1VCZyzXjQg3KbDdN9cPA1R/9zzVtL0ydbnx1X41NfqIYlPaScvMN?= =?us-ascii?Q?UZGePFcasg6MGicqHAd9oPEDxL55LrfbkIhfbY3ISdu31apen5bx8AjepVms?= =?us-ascii?Q?cUiMFWHYJNyoh2j7JBGDhlhAcC52gWH93MfvnYjYuvDyNkEZmkTW/rZ0W3Zw?= =?us-ascii?Q?WJFJXr+GQ3f1JBwTgrz+no7q0pSApkfKoxsrGOL7c+h+/UX8/E5vEzvS3nLC?= =?us-ascii?Q?gevicpKg87Kamy1GZym2GxZ7kP5p9B0fdzg1VCPPGMRcbLfnXtUX+rOpJb83?= =?us-ascii?Q?W8HE+FHgciruSNuCnR/f+zzWhV3AK0+0TaKdEad63i1NLeSWZYl1XIQfDOTk?= =?us-ascii?Q?mhq41Dnvf3jIsr8uQz7wPYkoR73Ic4yZJAu9L9jmVTYa+GflCOvEbMANzEt/?= =?us-ascii?Q?ndzXDOXlU07RVWMLhtNuIcbx+optEsrl2kPh1VNrmsErRuxEyEesmxFFoaqv?= =?us-ascii?Q?Up/Xqyss8CAk8aWnnQ5nGk1qEmYkRif/9v/K7ktkWmTEZEP2XzeCDXLG0aQu?= =?us-ascii?Q?Gib5A/gCMX3SeNnS49kfN36U2K0z1n0hlgAthgVVbAzjpe0Ykd4VRlHZZEBO?= =?us-ascii?Q?L5JFDbPZDw2yoo8nLfnuetPX2bJdKVmWwcsQMGTnAL7nMPDBqEWL0HQhlcuI?= =?us-ascii?Q?6GlI3BxEYmv9+TuPH2JJBaEizedKwObc6JDM+EqVJtYGN8eREE6Xd5aaS3hr?= =?us-ascii?Q?RA9q7rgL7ve9IAdBdbs95bBKSMLH6L62mNSGkfgi4uYMvLkV0V/thZPvhio0?= =?us-ascii?Q?8dQuyjfT5Gq7ARLNalK/W7W/jXmAarAdUINhXfOU39HLzbgJrOk0Y3/RKHZw?= =?us-ascii?Q?Iul5XwK+CSdVjpau94bsXR70biUP6KIBl5Mx17Jsir2kkHN3QOXWzjlDe9im?= =?us-ascii?Q?TiQMwxzorimIz3n7heL37Fssqw5dDHQZ2nLhs4tpCSMdslN4bTwrwGJkN8fp?= =?us-ascii?Q?ogXiSAG8+GAAKDgDn+0JYuOrNeHvz0l0MFMPcR6LIS/MHrHLpxEyoKEbDpzj?= =?us-ascii?Q?XcSlYrX25Fw3LGj0k/jfPogwEqKC8tMqtvkkECi283EVAN7SjoRma0DKQsOM?= =?us-ascii?Q?8yvkR14CJtEa6PHDY5/NXVahuXIJTzG1lJa1tlYuftJ5xSTZFrAUI9sxaIQ7?= =?us-ascii?Q?xHtPP6625y25/ZuIfwT2qY4NwdaMCYnK6c0UWFd4D7dwIUaIeYLc4sSQGQwL?= =?us-ascii?Q?f7mxA4bgUhHq7op0BMAMS8ydhGiqeI6AWbXIFCdKertcXXcRO4uY4yFwH7Ll?= =?us-ascii?Q?nW+jtnmQvxfdD+y/dNFgpRxAQDj2n8wb0sh4iYK2TpY1CxLby/W04xCxsc+e?= =?us-ascii?Q?/FUgQrBqBjo/ADcpyN7rmcdGJxhXpzNf0qAiFvb3zBwiyL8ggQpvl548qpvl?= =?us-ascii?Q?ewHH5ioz+KkGyKuIvvQPzo8dPQrw0AuNd9iHKO072Wco2ICPAxvvvLxQpLiT?= =?us-ascii?Q?/XEJrEHhrFMowdg5p9hhqAUGELihou8WqjJqGKtfXjUroXwa6iR1yjLW6QcS?= =?us-ascii?Q?39XsTh72Jl5TyX7jefsYW6hWYgc+/QX5pkImFBxQ5XEeJQqgeK/eqArhV215?= =?us-ascii?Q?3udtA2BAzVPROuBPT38UoK0tfyEjUVAcixULoFA9cnLoODidONyRYCQ0AvTh?= =?us-ascii?Q?cpCKkiA30w=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: 12519916-4d59-4c59-c98a-08da3359eecd X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2022 14:24:17.7447 (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: IsR1RICDak8+oQ50OtkSpsmtrXgjAbGuHCeQo+53dv6lRQQTgVKbM84cdIW4SwsgGTFEVlepoGQW2YVEkTSlXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6485 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: Wednesday, April 27, 2022 4:30 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; Cao, > Gang ; Liu, Changpeng > Subject: [PATCH v7 03/18] vhost: add vhost msg support Title better be: vhost: add vhost msg support for get/set config >=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 | 83 > ++++++++++++++++++++++++++++++++++++++++++++++++++ > lib/vhost/vhost_user.h | 13 ++++++++ > 2 files changed, 96 insertions(+) >=20 > diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c > index 1d39067..e925428 100644 > --- a/lib/vhost/vhost_user.c > +++ b/lib/vhost/vhost_user.c > @@ -80,6 +80,8 @@ > [VHOST_USER_NET_SET_MTU] =3D "VHOST_USER_NET_SET_MTU", > [VHOST_USER_SET_SLAVE_REQ_FD] =3D "VHOST_USER_SET_SLAVE_REQ_FD", > [VHOST_USER_IOTLB_MSG] =3D "VHOST_USER_IOTLB_MSG", > + [VHOST_USER_GET_CONFIG] =3D "VHOST_USER_GET_CONFIG", > + [VHOST_USER_SET_CONFIG] =3D "VHOST_USER_SET_CONFIG", > [VHOST_USER_CRYPTO_CREATE_SESS] =3D "VHOST_USER_CRYPTO_CREATE_SESS", > [VHOST_USER_CRYPTO_CLOSE_SESS] =3D "VHOST_USER_CRYPTO_CLOSE_SESS", > [VHOST_USER_POSTCOPY_ADVISE] =3D "VHOST_USER_POSTCOPY_ADVISE", > @@ -2542,6 +2544,85 @@ static int is_vring_iotlb(struct virtio_net *dev, > } >=20 > static int > +vhost_user_get_config(struct virtio_net **pdev, > + struct vhu_msg_context *ctx, > + int main_fd __rte_unused) > +{ > + struct virtio_net *dev =3D *pdev; > + struct rte_vdpa_device *vdpa_dev =3D dev->vdpa_dev; > + int ret =3D 0; > + > + if (validate_msg_fds(dev, ctx, 0) !=3D 0) > + return RTE_VHOST_MSG_RESULT_ERR; > + > + if (vdpa_dev->ops->get_config) { > + ret =3D vdpa_dev->ops->get_config(dev->vid, > + ctx->msg.payload.cfg.region, > + ctx->msg.payload.cfg.size); > + if (ret !=3D 0) { > + ctx->msg.size =3D 0; > + VHOST_LOG_CONFIG(ERR, > + "(%s) get_config() return error!\n", > + dev->ifname); > + } > + } else { > + VHOST_LOG_CONFIG(ERR, "(%s) get_config() not supported!\n", > + dev->ifname); > + } > + > + return RTE_VHOST_MSG_RESULT_REPLY; > +} > + > +static int > +vhost_user_set_config(struct virtio_net **pdev, > + struct vhu_msg_context *ctx, > + int main_fd __rte_unused) > +{ > + struct virtio_net *dev =3D *pdev; > + struct rte_vdpa_device *vdpa_dev =3D dev->vdpa_dev; > + int ret =3D 0; > + > + if (validate_msg_fds(dev, ctx, 0) !=3D 0) > + return RTE_VHOST_MSG_RESULT_ERR; > + > + if (ctx->msg.size !=3D sizeof(struct vhost_user_config)) { > + VHOST_LOG_CONFIG(ERR, > + "(%s) invalid set config msg size: %"PRIu32" !=3D %d\n", > + dev->ifname, ctx->msg.size, > + (int)sizeof(struct vhost_user_config)); > + goto out; > + } Sorry, I was wrong in v6, after double check, the size can be checked in re= ad_vhost_message (although not that accurate check). So we can remove above. (btw, even we c= heck, the logic should Be size <=3D sizeof(config)) Rest of the patch seems good, thanks. Chenbo > + > + if (ctx->msg.payload.cfg.size > VHOST_USER_MAX_CONFIG_SIZE) { > + VHOST_LOG_CONFIG(ERR, > + "(%s) vhost_user_config size: %"PRIu32", should not be > larger than %d\n", > + dev->ifname, ctx->msg.payload.cfg.size, > + VHOST_USER_MAX_CONFIG_SIZE); > + goto out; > + } > + > + if (vdpa_dev->ops->set_config) { > + ret =3D vdpa_dev->ops->set_config(dev->vid, > + ctx->msg.payload.cfg.region, > + ctx->msg.payload.cfg.offset, > + ctx->msg.payload.cfg.size, > + ctx->msg.payload.cfg.flags); > + if (ret) > + VHOST_LOG_CONFIG(ERR, > + "(%s) set_config() return error!\n", > + dev->ifname); > + } else { > + VHOST_LOG_CONFIG(ERR, "(%s) set_config() not supported!\n", > + dev->ifname); > + } > + > + return RTE_VHOST_MSG_RESULT_OK; > + > +out: > + return RTE_VHOST_MSG_RESULT_ERR; > +} > + > +static int > vhost_user_iotlb_msg(struct virtio_net **pdev, > struct vhu_msg_context *ctx, > int main_fd __rte_unused) > @@ -2782,6 +2863,8 @@ typedef int (*vhost_message_handler_t)(struct > virtio_net **pdev, > [VHOST_USER_NET_SET_MTU] =3D vhost_user_net_set_mtu, > [VHOST_USER_SET_SLAVE_REQ_FD] =3D vhost_user_set_req_fd, > [VHOST_USER_IOTLB_MSG] =3D vhost_user_iotlb_msg, > + [VHOST_USER_GET_CONFIG] =3D vhost_user_get_config, > + [VHOST_USER_SET_CONFIG] =3D vhost_user_set_config, > [VHOST_USER_POSTCOPY_ADVISE] =3D vhost_user_set_postcopy_advise, > [VHOST_USER_POSTCOPY_LISTEN] =3D vhost_user_set_postcopy_listen, > [VHOST_USER_POSTCOPY_END] =3D vhost_user_postcopy_end, > diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h > index c946cc2..97cfb2f 100644 > --- a/lib/vhost/vhost_user.h > +++ b/lib/vhost/vhost_user.h > @@ -50,6 +50,8 @@ > VHOST_USER_NET_SET_MTU =3D 20, > VHOST_USER_SET_SLAVE_REQ_FD =3D 21, > VHOST_USER_IOTLB_MSG =3D 22, > + VHOST_USER_GET_CONFIG =3D 24, > + VHOST_USER_SET_CONFIG =3D 25, > VHOST_USER_CRYPTO_CREATE_SESS =3D 26, > VHOST_USER_CRYPTO_CLOSE_SESS =3D 27, > VHOST_USER_POSTCOPY_ADVISE =3D 28, > @@ -125,6 +127,16 @@ > uint16_t queue_size; > } VhostUserInflight; >=20 > +#define VHOST_USER_MAX_CONFIG_SIZE 256 > + > +/** Get/set config msg payload */ > +struct vhost_user_config { > + uint32_t offset; > + uint32_t size; > + uint32_t flags; > + uint8_t region[VHOST_USER_MAX_CONFIG_SIZE]; > +}; > + > typedef struct VhostUserMsg { > union { > uint32_t master; /* a VhostUserRequest value */ > @@ -148,6 +160,7 @@ > VhostUserCryptoSessionParam crypto_session; > VhostUserVringArea area; > VhostUserInflight inflight; > + struct vhost_user_config cfg; > } payload; > /* Nothing should be added after the payload */ > } __rte_packed VhostUserMsg; > -- > 1.8.3.1