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 9ED16A04FD; Mon, 23 May 2022 10:38:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39A3E4014F; Mon, 23 May 2022 10:38:27 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id F41A240041 for ; Mon, 23 May 2022 10:38:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653295105; x=1684831105; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=1izBdY9HNw7JozKKZctrXJheQB8rUjd0VYM7t0aAXOc=; b=bGFCCmrzSxTQD4Lkelxh5mBWf7pOtP9aYATdSdEQgMmCReW3aJG8EQqu hrvydcb0MQ2WN8D1B+ekziGWqjD1ms4YIbtdW+Kecn027DHI/EHQGaDZQ HDEaXFcmOsKErhuIC2HJM7i8R5BZcmlfrl+M6V36kFwVY9PojeoS6V34q 1k7SPXrBWe+zSe5YlsleoJgOGJEGEX84AWCPIcCyB0C12JpPcVjCK55Ok qZBQKXGO4sO93hueb8E79NgKr9gv05fpd8kijapreYny+6QtrDYVYVp/p jIh/F7dc4mbY0TXgqt43WxQF+IAyCp0xYa1gT2FBg+2upAAapndvnCmLp g==; X-IronPort-AV: E=McAfee;i="6400,9594,10355"; a="273269888" X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="273269888" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 01:38:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,246,1647327600"; d="scan'208";a="819673461" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga006.fm.intel.com with ESMTP; 23 May 2022 01:38:23 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX601.amr.corp.intel.com (10.22.229.14) 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 01:38:23 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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 via Frontend Transport; Mon, 23 May 2022 01:38:23 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.175) by edgegateway.intel.com (134.134.137.103) 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 01:38:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mFL9ZkpQvcVukTOWwOfC2I00jhvU4lonSRTIp3XPThgo9/mU/AiQ6a057I58GmkCtYV4zzHoq3gP9W7bFGz2o8NgTRDLFKtTv8mtT2QlxvSNAX7PqaGail/Uv4xJJSO6J/nEQgYd/+NbRgJaw9U8lmkRknf9FwuU5ig9Ur/0icC32y+LDub8NThK0791OIZog8Rv1ADJ7Qe5FOT0SSeaQp917F34w84Urjwt2Znni8rZVnfRhhG/TQZSZ2HeVhKoFP6hoHbBPnRRfw2sAD/m4KO7jEqXQTen0SYpW+L7DTQI2ZKM451bJf2iU8mtTs/o8/5B5QS7kjhzLPC0g+W9xQ== 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=6CYFwIfjaN1iHfwRjN/wWAwYFLhFuBebv+EMwMATXqM=; b=nBke+qyomdFt4kDM81JEdrP4rKkHzAY6Da7yEOrb+ZMm1MmCFEZrOx/a6ZjRrJlGZlceNkEf/Np+UJC9coAGT2xiBUrSTG10xd6R6Siwf4w+JQwxNrj/o5ZUvSPsv/FrOLQ/cImSEG4uMBgbNOYSOnN7Zp0tFFEz0keuTBuqlyuqzFt2sRXLKmb6lgUxnlzzuNbUE8StB3teAgFCReMgjSi4ks7oWluU90khF7eKwS6OqQKFQ/i1VX/Qih6cAiQG4Lxlwt0gC+bUDFmjiK1Cfw9Cd2mcUJw90zdylK8w+28f9rNPQD01rZR2C8cwgxteq9bM+SHi/jbUttoFzwOZnw== 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 DM5PR11MB1739.namprd11.prod.outlook.com (2603:10b6:3:111::22) by PH0PR11MB5784.namprd11.prod.outlook.com (2603:10b6:510:129::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.22; Mon, 23 May 2022 08:38:21 +0000 Received: from DM5PR11MB1739.namprd11.prod.outlook.com ([fe80::8c3b:8a54:d186:b555]) by DM5PR11MB1739.namprd11.prod.outlook.com ([fe80::8c3b:8a54:d186:b555%11]) with mapi id 15.20.5273.022; Mon, 23 May 2022 08:38:21 +0000 From: "Pei, Andy" To: "Xia, Chenbo" , "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: AQHYardpu06PLAz8oU2IIrjbhP68jq0sGekggAAQzaA= Date: Mon, 23 May 2022 08:38:21 +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: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.401.20 dlp-reaction: no-action 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: 612b6c75-7950-4ec7-1e65-08da3c97981d x-ms-traffictypediagnostic: PH0PR11MB5784: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: /XCajsAgK8/k6q8+4xMbffCfaaOdr9iivpxpHLtVRpCUyfbMmJDMeLcQDPijKoESg0v8EMXoRXSxJldNc05H8f5mgtSqYQ9J9xzGnbeAIMCS6f5yrltmn2QVIKepsZDCtXoQAEYKwYTnYYZOrm6uFBG7J7tkOQShET37cQDeQnrDGIW5i7TkO21+7dKw/RqeDdBEKMxhVy/TuohGuPb7L6BORhTAXW3YJ9i3SeBI1l6R1lhWvmqiRuk0IaA3itO69Rlf1oVzmi3t/y3oJd9nMuEFWt8yVgQTUzVEmMWhimCmgn+RHsSDQMQ4xJk3zFczX3nSOrEfUrRUJx4ByaMGU+n9zmbT8BZyIl6s+W9Jpm4msiJCHlC3EhgYeBGieXytKnbx2CCRp9ktu5LzXiSS3zIqdOuGTs05vn7wu8sCKsu+pMdjr5IpBBQOPoFD0jGnwQH4JyedLU9w/sRwftz1dkK7kClnTznGqzGB6YQNd6NM0gVMI1juKxuUxkL0yhlPxC25wdGwxKVu4pzr0TAZett1g8vb4vR93YIbD4bwXEm81l1XX4Qy9lvETDK4a/wDmdKMnTT3DXoSxXwgfkxIMpR/7KyB1VVlplEk+ijGEoY0EyJRS5u6aaHsXe4yV2pLSxxUnQiGPstpcZN1tYvIEm9932+c6pdmDu0jVRDAD7QqmEgvFe3vhkQLAHsOmVH6Y1hR9aQwraeOAXhAJVTtcA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR11MB1739.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(66476007)(8676002)(66446008)(64756008)(66946007)(76116006)(66556008)(4326008)(86362001)(33656002)(316002)(38100700002)(38070700005)(71200400001)(54906003)(107886003)(508600001)(55016003)(110136005)(186003)(9686003)(8936002)(5660300002)(122000001)(52536014)(82960400001)(26005)(7696005)(53546011)(2906002)(6506007)(83380400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2t6fp5aDosPHC8PjT+j/qJYbg8H5kKiiJ4n1Gl3wIQtQDmAaZL3tRiNG0vG4?= =?us-ascii?Q?LD+DCpExi1PaVD+SF0q6s0N6NqtGowg/70lu0zQ/WcIOXTiNvkKMDIC3M2Qh?= =?us-ascii?Q?MFcG+huvg5WZeTYySPqMOQglb6MZp+cbwBr3UDBjdIkyWG28/w3ViJFfsJLY?= =?us-ascii?Q?mt+FgEjcY5VGK3K/daR2GniJXwFdJgaHsEPF5Mi8Jj0oSkljoPwMEqrzCqK+?= =?us-ascii?Q?hRlv1pohV62BGfIc85XfujZ6YqJVnQpqHerGQUwK6GuwEyZy++NEZHc8OOxL?= =?us-ascii?Q?eux7qG+QjZweKiONFjsm+3ORoVFuvm7iyxsRdmSFVnZYw4WqQ0FoOigsh9o/?= =?us-ascii?Q?lrJ9pXvdptG1sguL9dTIFJaxnZc/1EYFAdQOPc1uIidi2v8jGSdwKHMGalJy?= =?us-ascii?Q?xSGLUh3l5JH1A8jV5CPXOp8lVd3Q7ZmtsCaenrM9AmlDov1Vju+rL6CbYfvH?= =?us-ascii?Q?8uPi/HIxrvYMLZkBNiirYO1CqFHCgjCmL9Wac5PUHXrlxmJiOlz+phhw6zbL?= =?us-ascii?Q?7Bt8h/qonhECGuwtZxCCuZThzyy7PLzOYL4IVzvU2VFxqAu+XorZFzlIFWTo?= =?us-ascii?Q?qfqZe3oJXP7PtavnXIMgHoWMutl8IF/7S+rE1IXrfkVQeM+Py/ZIsuFyEFeF?= =?us-ascii?Q?F4YF7MnK0VKW2bNXUm7CiMbjkH0MeXvCvJbf4Zxqf7iIeaROM7D7bfDKFWmM?= =?us-ascii?Q?JwufqAkuYcnlw9KRmu5vU2ku5ePfy5jNDizuxQ2dlFxbuSyZBDmMicNLec9S?= =?us-ascii?Q?JyUvsY904mvO2dk1P1AGsQoplg1J2OuLkOhEZsdJsrsBXx0jTNa4WKFBvORN?= =?us-ascii?Q?AXpwutVck3s9qh9yuJmZa5Oxw5fhO3bREC1pj27Y0ndF1XfHLPYjRIHZuRdq?= =?us-ascii?Q?q/BLFJMlRetqY2kNxb0DFKuq2PgWYCUbiOc5LTZHlYUYM1vUPsL2xW/01QGg?= =?us-ascii?Q?UlI97xBPFb0C2ndTt6x8g+VWsexI79AlqDVb2kWN3QoowVz9un8HQ0Wj+rOz?= =?us-ascii?Q?OP//wQZzc+098eKkhaBMTTXxSmP+lhMJBISlcotLo0AtxydVncf/FEqWiZ9H?= =?us-ascii?Q?6hLIVTTAjiBjmt4eYLHTla+uHoaQTZ/fPn7dHyDuLkMAU0hy/LZX11hglu7i?= =?us-ascii?Q?0A4UWoC5QfuE0SsHHISmRrMlY34LMT7G93SFyXoqCmDots0C6SzaINQTGymx?= =?us-ascii?Q?H+oyznci+xDnbcs23DqoZ+n/yYgl14ynGGEc57gDX4hQ/nJaoit03AdRsfj/?= =?us-ascii?Q?wBHmNSAbV4H6fLoDKpQhQM2T1X9w38CdCkSKSPEqlrC0L2QEBOkJRR+zFaGQ?= =?us-ascii?Q?rEOY1vsoyzhMJyZkXKwKEfnc/2nETzOILzr+5i3aFuGax35wdIvWopo92hTV?= =?us-ascii?Q?fxkJ+H8STUBNBzqReOEdGnzyPef6aKYWDR5pj62HFa/Z23DKuARAKTJ7nizl?= =?us-ascii?Q?fI1A+cI+QkInUYc7kXC07POvZexUxAxzOib0isloV+KB9lTCVmAAa48nCFCY?= =?us-ascii?Q?eviaDhV4LMy69iKBrHRhbYjKuRga6Lrd5s96KE43AbeNT5+5bwa1Am7YcmLZ?= =?us-ascii?Q?8/O28o6He3q0aPaavUW5YWsvB5SWJ0b8bsoO1x8SrCYQamF/vTURWh5hFm2J?= =?us-ascii?Q?lgSKbfg7gzrFPKtMaPSYhkFDdNOGaLXvBu2KZe+OdkCgztbaw6J3nMOgkTRR?= =?us-ascii?Q?1JOHGfCNdwflobQyIDUcg8BiP5xa3Yt7wZDkJqkbg0gaEecLJOppHiPTewon?= =?us-ascii?Q?JUkuwR5KJg=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: DM5PR11MB1739.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 612b6c75-7950-4ec7-1e65-08da3c97981d X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2022 08:38:21.5963 (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: dM8FXa/QVtHRCBwLNzUKLmkvTZDOp2W60RfM5nELbFWzH5p5NGSgW78TPuTTrH/M+xFUaNWVh/eqMsFarHYXlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5784 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 Hi Chenbo, Thanks for your reply, my reply is inline. > -----Original Message----- > From: Xia, Chenbo > Sent: Monday, May 23, 2022 3:40 PM > 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 >=20 > > -----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 >=20 > Double add in the title >=20 I will fix this in next version. > > > > Add virtio blk device support to vDPA example. > > > > 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 > > > > 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" > > > > #define MAX_PATH_LEN 128 > > #define MAX_VDPA_SAMPLE_PORTS 1024 > > @@ -159,8 +160,53 @@ struct vdpa_port { }; > > > > 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; > > > > @@ -192,6 +238,16 @@ struct vdpa_port { > > "attach vdpa device failed: %s\n", > > socket_path); > > > > + 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 > > + */ >=20 > You describe the file with more details, or maybe just delete it. >=20 I will delete it in next version. > > + > > +#include > > + > > +/* Feature bits */ > > +#define VIRTIO_BLK_F_SIZE_MAX 1 /* Indicates maximum segment > size > > */ > > +#define VIRTIO_BLK_F_SEG_MAX 2 /* Indicates maximum # of > segments > > */ > > +#define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available *= / > > +#define VIRTIO_BLK_F_BLK_SIZE 6 /* Block size of disk is availa= ble > > */ > > +#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 >=20 > This is always true? Is it possible VIRTIO_BLK_NO_LEGACY get defined? >=20 The I will delete this condition. > Thanks, > Chenbo >=20 > > +#define VIRTIO_BLK_F_BARRIER 0 /* Does host support barriers? = */ > > +#define VIRTIO_BLK_F_SCSI 7 /* Supports scsi command passth= ru > > */ > > +#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