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 92B11A04FD; Mon, 23 May 2022 09:40:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3489A4014F; Mon, 23 May 2022 09:40:06 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 3769E40041 for ; Mon, 23 May 2022 09:40:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653291605; x=1684827605; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=BCe0pay8mU9Frj4F+1pnUFCYvV4QldxAk4y1EGzhQEQ=; b=DVYpBGdZ2Q9cE5+3nUXUAka3MHNpIQXD4rNmL5HsMLx1ZH2rMIhy+RBe +7197ODDjTXbRe7SUnr6LKODMdF6Wd+sZS/XCOaCVocEv7yBmp/uNQvX3 /3WdkuKCugvU+B8q7WhoNj8bq+LTbp3NuUY5tn9dXUgqeLrOAk8nGEkVm Q2jWwC/TE4qH/TvXO3V4OLwXMhVJIdgKPpFVGgEdCZwXW+9oQYGllz1tV lvMiWu97qH9DskwUIXw8K2qIH56h/AtrhfFK6cVCWP8OvW3WrpPHLB4YC vZeBD+nWmK7+OgakggK+o1kIoTska0c2XN7zOeqMhw66ebSUAkx3X7NI5 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10355"; a="273257040" X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="273257040" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 00:40:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="702869896" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga004.jf.intel.com with ESMTP; 23 May 2022 00:40:03 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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; Mon, 23 May 2022 00:40:03 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) 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 00:40:03 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.106) 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.2308.27; Mon, 23 May 2022 00:40:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BJ5C0RBxHZKp+fW91jMtY5cPq0kiabjU7V+noFmZMI7Gj6ZuGjnNyBhHgLYtLF/5YqAh5iM9/PO2fbSZG5y2opSSiiZB18zhVIwY2XO0TZ9Hvoq1pWgCa23AC2itUPMeFaL1Vi1LoLVXkjZABY4cUmSMqs4vlhKrH1JAeVMrJ7fViW8ZO3Q09yUfx0W/Ewc8Pr8cn555J98EZfSK9GNngUea8fHsWrF6gRGrZiqHnQKXwAdBBNJG8XRmPlqfvEI/95mRd56mktUr05rC0HCkbmrGnuFQgVFUrGv+V1K33+4FFrFboGMzP0YJ0pSJnNcbdh6XVXydFUykZNaKkLZjmw== 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=jCY056Y994wx1kMalTfZ7iVedoMTjMmJDDwCNW7VTaY=; b=mhGQoOgfTEisQCNfaPhIxPNdCngIoffdT+I76qu+X1Impwx0WQ3dUjI8P9xkUVR4GSlCIq9HQkRoao8gIAKDWSQ9sGHEI8np2tFBHN5cRJZidVpbvl8kFxPdt/RAJpzGBOtLpjGGzyPfarNEyhhfKu6/r5KUAA8H8rTmLS2uJGbmFtd3ds5krdBTIZ/H/6kRxcHef+O24XvyjJVA7PUWxkChxXJG7+qT5fPRvYw1RBxPBFG0osakJUjh2QT+aeAUG9GLyCkt4b01j77UQn6djBoWVnqFUjz0PhJ1pUkRKKUbMsnQffjcp7Y5lDr9v0Vg2d8F3+cAWuZV3lM2BihUJw== 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 BY5PR11MB4039.namprd11.prod.outlook.com (2603:10b6:a03:18b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.17; Mon, 23 May 2022 07:40:01 +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; Mon, 23 May 2022 07:40:01 +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 v8 09/13] examples/vdpa: add add virtio blk support Thread-Topic: [PATCH v8 09/13] examples/vdpa: add add virtio blk support Thread-Index: AQHYardpu06PLAz8oU2IIrjbhP68jq0sGekg Date: Mon, 23 May 2022 07:40:01 +0000 Message-ID: References: <1643093258-47258-2-git-send-email-andy.pei@intel.com> <1652876035-70513-1-git-send-email-andy.pei@intel.com> <1652876035-70513-10-git-send-email-andy.pei@intel.com> In-Reply-To: <1652876035-70513-10-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: b7555c44-4ac2-4d14-2c38-08da3c8f71ac x-ms-traffictypediagnostic: BY5PR11MB4039: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: U5NAqcxEVjCTJ7BtaK36j9avT8GuUqjHtZhlFR3dh6aXjUfiT8H0adlzU18FrHBJgSNa7Tenw0Z1qWeyNCpIHMzaGXfommT4UKX4Qlp9op7KB/JAvJCDrX4beVDfXqaj8wnPYIRSs4o0tT/y5CuMQjEZl/e5loXQHUsT8zsEbBJPJdO6x6zKhfSsG0oeHhFfn6xOrBAj2CNKz0H0/nVbxUxgMHnX93m161pTAiQGR+2I6y3vo35QygtYdyI9svnwjdCzOuHVcSAw5BsQfg47IPudHhjKQBRX6XDgP0yzKnIDgwK6454IWYqA0x0J9iJV+kxiws1bffpACUW6UiZwWUo/C+80bl8nDp3D/VW82TTAjYzpK3f1OLjR6gKZ1D7n5xYwig1MzBZokZGDO7AEQfg1JRzZfPQs18ZizQJefugGYAfHDEROg5DDjnoSfVCl2igSc4secx5/Q4AkH4TaAsbSQCaIZYyxNLO7ukh8yEZfO+roHAxcKJn8wpfMUd3ZUi8ersjwqVt5SwECjeEeAT+G9cZD7qKzjOXI4wM+ZfNT9m6QnnIPf3KCjEuraBqemeIDK+b2wQaMJAAkoPSC7Thf3zsW8JP5Zsn546iLcm3LWSFJnXP9iFAkGhvYjdvpsP3o+Kk8GXFfit+ThnsN9jpzBeKmhcS+hRJAKxmr+41D7p8aUx6oxvoLsSOl7BoztF5l4zjmsxBqhAHxknMIvg== 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)(83380400001)(38070700005)(38100700002)(122000001)(186003)(82960400001)(107886003)(86362001)(9686003)(76116006)(110136005)(2906002)(54906003)(316002)(8936002)(66476007)(66556008)(66946007)(52536014)(5660300002)(64756008)(66446008)(8676002)(4326008)(33656002)(508600001)(53546011)(55016003)(6506007)(7696005)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?AoQO2QD0GIIzLmwXQyYzFkHh5Merw8OKgx4859me9VKmlpKCIxbFx0AvpWbz?= =?us-ascii?Q?UHhhw4cn6zbz69pbooHyizH7y9slrVxHj88m0ZpFbeQCD/trmpkDGETdIz3z?= =?us-ascii?Q?z6UG16t5FjvEEIdbGQI5AkjgK8K4lRkXKV+AuDWZ3QpaBwOz3VV4EQ9S1Ax+?= =?us-ascii?Q?ezaToxcDKTqnJ24ISK+eS24iZGuX+Jcw8mgUAd89eaqyNy67dnWZA+lHWIGz?= =?us-ascii?Q?plNEC6sXz9JEA3aSPZuOhyBnbMqAvw3ipX+fEvs+3ASBQRky2UhNMckFe8Ol?= =?us-ascii?Q?Tk9EIaKvn40hwDl2OiRw9smmEdDl1sN+s/lFsOQbT7XjiNxFXW7UAd1ZsD9x?= =?us-ascii?Q?/3F8aIkKXYs+Fc3jjtsypaBwvaDZ80WJ3kxtL76ioKt/VtJnbTODnXLTxosS?= =?us-ascii?Q?jcR+vdCooPJd9JhuPTnkJI5TdVq7lBU3NjL+gIsHzjDJenk9yMkRn8aUkfg3?= =?us-ascii?Q?xVmx801y8PRsOt9vuhlpzGMnHFVBXBYrbpj+CFrh/+OIi3NfgoQvrorylcHe?= =?us-ascii?Q?mk4MkZwZglW/QbNyxAK4VbisI06fIV7zBn6U4vklYXbb6dCVm8W3h1fHXpWp?= =?us-ascii?Q?RBqGy7iLXOtdxxuFBddFsSyYoTSho9y5c+RGw2hctwm8q6iyuq7HUe0erWjC?= =?us-ascii?Q?N/RaqKpxwGGcsGiYS3v3AJfr/aECIrlglprwAbCUtJeNr2mJPZmUE9gsqgj2?= =?us-ascii?Q?G9890HtEe4JfIX1MWX8E296mfA/WeYTogBw+ztQ9Y6+KaHBqwqh6WGWtqqfK?= =?us-ascii?Q?0jbtIjBu5nwWwkftbIW3fZcvT6ahxqQSi6zStX7YUKVJhQsw7vU2CzozwMIG?= =?us-ascii?Q?IALHAIQxn3qc/m2cMoW81Yh7thsVgORzT5B4eZ1+B/HrWoZ7C5oD7QP2tefo?= =?us-ascii?Q?gBOo8an1Eb3c8I9oodaLGyJKQKgWi7X1q7Eib6MNlUnjRBHcf1BVxrQOZD2E?= =?us-ascii?Q?V0NbQ1vwxP4sXqdcewoQxCgE2A754VtYg3yLwHgtuRSdXArAuGui1CN2r94E?= =?us-ascii?Q?JxjYLrvopYDcE7FddCAVYXQpTn/uWcfpzAkWSm+4XahO4eHiv5Aq+Kae50Zm?= =?us-ascii?Q?73cE5d7dRp2/WDneGGSxB9s6AJxGcEgWexdd1HLWCkmsbuPEAWaH1SgYrsjI?= =?us-ascii?Q?/MPOUwE0eGl7lV8VTmbBo0OF204h5lv+25Npw29PyKqzHgoJakHb9DUlSAQV?= =?us-ascii?Q?eGngDxw/IHSO//YkB5V+v5+PZKsoffIs+vLMgyw/+LuXrLon2afLKFC3PQuF?= =?us-ascii?Q?PY+Xm7p+J5IDEuVeSPAJWNj8sB1GcLk4J3Xpiw+syTSqHqc1byZ2JHIlRgc7?= =?us-ascii?Q?fqP196stRFR6m1Y6GDor+UHUBVcNywp+CVswKyYk2L5InU6cEOLM/mRGRiKR?= =?us-ascii?Q?gSpBhe8N4WrAk+uwpjgc2rVJMsKhsK4dsGutgTEq8JxmkIC6o2mc2cD27+7X?= =?us-ascii?Q?c9ymZr9c4Wwch6K25mVFWhWceiSNdBLF1wJPrriNne5yTsIZH2Nb47MPu9U/?= =?us-ascii?Q?haGKG1AouW9fXtONo+EAH9tm0zKVCI2Rtwy8OY5qtD+ry7+dXXbJ4Wn5OZNx?= =?us-ascii?Q?R6RQPjbXr6jtNzq1InXcEBLsJBE/LUj2ivk5aUMvIFl6MAAyPb6boPUPRcQb?= =?us-ascii?Q?PqUBJGF6rynz3nvZZwa8tm0iQFM9S1thwxfJO1nc+NgUSvm+wtkx34yn6Rln?= =?us-ascii?Q?3XAgA1kCyPWIdx8LYA5tsWNIUzw5cZ3rDgLuKdM8xLo6FRJs/nSDVrZuvYF0?= =?us-ascii?Q?iTIsPURNxA=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: b7555c44-4ac2-4d14-2c38-08da3c8f71ac X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2022 07:40:01.1132 (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: wA/oEvlN1aIVHo+2ic0egm0yxoFn4uKeeeiBa6p9Idy0YANnBjP75a4Etb1w9ajxgQkajz+RxsvuDQEnciMmgA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4039 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, May 18, 2022 8:14 PM > To: dev@dpdk.org > Cc: Xia, Chenbo ; maxime.coquelin@redhat.com; Cao, > Gang ; Liu, Changpeng ; Xu, > Rosen ; Xiao, QimaiX > Subject: [PATCH v8 09/13] examples/vdpa: add add virtio blk support Double add in the title >=20 > Add virtio blk device support to vDPA example. >=20 > Signed-off-by: Andy Pei > --- > examples/vdpa/main.c | 56 > ++++++++++++++++++++++++++++++++++++++ > examples/vdpa/vdpa_blk_compact.h | 58 > ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 114 insertions(+) > create mode 100644 examples/vdpa/vdpa_blk_compact.h >=20 > diff --git a/examples/vdpa/main.c b/examples/vdpa/main.c > index 5ab0765..62b6660 100644 > --- a/examples/vdpa/main.c > +++ b/examples/vdpa/main.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include "vdpa_blk_compact.h" >=20 > #define MAX_PATH_LEN 128 > #define MAX_VDPA_SAMPLE_PORTS 1024 > @@ -159,8 +160,53 @@ struct vdpa_port { > }; >=20 > static int > +vdpa_blk_device_set_features_and_protocol(const char *path) > +{ > + uint64_t protocol_features =3D 0; > + int ret; > + > + ret =3D rte_vhost_driver_set_features(path, VHOST_BLK_FEATURES); > + if (ret !=3D 0) { > + RTE_LOG(ERR, VDPA, > + "rte_vhost_driver_set_features for %s failed.\n", > + path); > + goto out; > + } > + > + ret =3D rte_vhost_driver_disable_features(path, > + VHOST_BLK_DISABLED_FEATURES); > + if (ret !=3D 0) { > + RTE_LOG(ERR, VDPA, > + "rte_vhost_driver_disable_features for %s failed.\n", > + path); > + goto out; > + } > + > + ret =3D rte_vhost_driver_get_protocol_features(path, > &protocol_features); > + if (ret !=3D 0) { > + RTE_LOG(ERR, VDPA, > + "rte_vhost_driver_get_protocol_features for %s > failed.\n", > + path); > + goto out; > + } > + > + protocol_features |=3D VHOST_BLK_PROTOCOL_FEATURES; > + > + ret =3D rte_vhost_driver_set_protocol_features(path, > protocol_features); > + if (ret !=3D 0) { > + RTE_LOG(ERR, VDPA, > + "rte_vhost_driver_set_protocol_features for %s > failed.\n", > + path); > + } > + > +out: > + return ret; > +} > + > +static int > start_vdpa(struct vdpa_port *vport) > { > + uint32_t device_type =3D 0; > int ret; > char *socket_path =3D vport->ifname; >=20 > @@ -192,6 +238,16 @@ struct vdpa_port { > "attach vdpa device failed: %s\n", > socket_path); >=20 > + ret =3D rte_vhost_driver_get_vdpa_dev_type(socket_path, &device_type); > + if (ret =3D=3D 0 && device_type =3D=3D VDPA_DEVICE_TYPE_BLK) { > + RTE_LOG(NOTICE, VDPA, "%s is a blk device\n", socket_path); > + ret =3D vdpa_blk_device_set_features_and_protocol(socket_path); > + if (ret !=3D 0) > + rte_exit(EXIT_FAILURE, > + "set vhost blk driver features and protocol > features failed: %s\n", > + socket_path); > + } > + > if (rte_vhost_driver_start(socket_path) < 0) > rte_exit(EXIT_FAILURE, > "start vhost driver failed: %s\n", > diff --git a/examples/vdpa/vdpa_blk_compact.h > b/examples/vdpa/vdpa_blk_compact.h > new file mode 100644 > index 0000000..4193561 > --- /dev/null > +++ b/examples/vdpa/vdpa_blk_compact.h > @@ -0,0 +1,58 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2022 Intel Corporation > + */ > + > +#ifndef _VDPA_BLK_COMPACT_H_ > +#define _VDPA_BLK_COMPACT_H_ > + > +/** > + * @file > + * > + * Device specific vhost lib > + */ You describe the file with more details, or maybe just delete it. > + > +#include > + > +/* Feature bits */ > +#define VIRTIO_BLK_F_SIZE_MAX 1 /* Indicates maximum segment size > */ > +#define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of segment= s > */ > +#define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */ > +#define VIRTIO_BLK_F_BLK_SIZE 6 /* Block size of disk is availabl= e > */ > +#define VIRTIO_BLK_F_TOPOLOGY 10 /* Topology information is > available */ > +#define VIRTIO_BLK_F_MQ 12 /* support more than one vq */ > + > +/* Legacy feature bits */ > +#ifndef VIRTIO_BLK_NO_LEGACY This is always true? Is it possible VIRTIO_BLK_NO_LEGACY get defined? Thanks, Chenbo > +#define VIRTIO_BLK_F_BARRIER 0 /* Does host support barriers? */ > +#define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passthru > */ > +#define VIRTIO_BLK_F_CONFIG_WCE 11 /* Writeback mode available in > config */ > +#endif /* !VIRTIO_BLK_NO_LEGACY */ > + > +#define VHOST_BLK_FEATURES_BASE ((1ULL << VHOST_F_LOG_ALL) | \ > + (1ULL << VIRTIO_F_NOTIFY_ON_EMPTY) | \ > + (1ULL << VIRTIO_RING_F_INDIRECT_DESC) | \ > + (1ULL << VIRTIO_RING_F_EVENT_IDX) | \ > + (1ULL << VHOST_USER_F_PROTOCOL_FEATURES) | \ > + (1ULL << VIRTIO_F_VERSION_1)) > + > +#define VHOST_BLK_DISABLED_FEATURES_BASE ((1ULL << > VIRTIO_F_NOTIFY_ON_EMPTY) | \ > + (1ULL << VIRTIO_RING_F_EVENT_IDX)) > + > +#define VHOST_BLK_FEATURES (VHOST_BLK_FEATURES_BASE | \ > + (1ULL << VIRTIO_BLK_F_SIZE_MAX) | (1ULL << VIRTIO_BLK_F_SEG_MAX) | \ > + (1ULL << VIRTIO_BLK_F_GEOMETRY) | (1ULL << VIRTIO_BLK_F_BLK_SIZE) | > \ > + (1ULL << VIRTIO_BLK_F_TOPOLOGY) | (1ULL << VIRTIO_BLK_F_BARRIER) | > \ > + (1ULL << VIRTIO_BLK_F_SCSI) | (1ULL << VIRTIO_BLK_F_CONFIG_WCE) > | \ > + (1ULL << VIRTIO_BLK_F_MQ)) > + > +/* Not supported features */ > +#define VHOST_BLK_DISABLED_FEATURES (VHOST_BLK_DISABLED_FEATURES_BASE | = \ > + (1ULL << VIRTIO_BLK_F_GEOMETRY) | (1ULL << VIRTIO_BLK_F_BARRIER) | \ > + (1ULL << VIRTIO_BLK_F_SCSI) | (1ULL << VIRTIO_BLK_F_CONFIG_WCE)) > + > +/* Vhost-blk support protocol features */ > +#define VHOST_BLK_PROTOCOL_FEATURES \ > + ((1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) | \ > + (1ULL << VHOST_USER_PROTOCOL_F_CONFIG)) > + > +#endif /* _VDPA_BLK_COMPACT_H_ */ > -- > 1.8.3.1