From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B732DA04E1; Tue, 22 Sep 2020 09:23:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 95CE51D684; Tue, 22 Sep 2020 09:23:07 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 0066F1C1FB for ; Tue, 22 Sep 2020 09:23:05 +0200 (CEST) IronPort-SDR: RbZuKY6zShJ42J5oA8DCPHtjziu+Aca/oQhU5Qzjm6tEjhpEuPULKF3dJBPHjUik2R3JsbvBg3 KniS2gsXZhGQ== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="178614050" X-IronPort-AV: E=Sophos;i="5.77,289,1596524400"; d="scan'208";a="178614050" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2020 00:23:05 -0700 IronPort-SDR: qQt2vCtZHmoLyy/bt6JJ0Dhsc3XUYLoJIvYteRwyb51eB/r5CnT+lMYskgd7m5zwH66fb9qjgH h2NS/Ihu3EQw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,289,1596524400"; d="scan'208";a="309408274" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga006.jf.intel.com with ESMTP; 22 Sep 2020 00:23:04 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) 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.1713.5; Tue, 22 Sep 2020 00:23:04 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) 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.1713.5; Tue, 22 Sep 2020 00:23:03 -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.1713.5 via Frontend Transport; Tue, 22 Sep 2020 00:23:03 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.170) 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.1713.5; Tue, 22 Sep 2020 00:23:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I+96rEujtnstvzlXBrcRw+RXlbo8PNT+2Mt6a7tfR/9gzVi6veqbE+2U1yg8vIzc3/q6eOntRlvVyJIkRdkdusCr1LyE1NDeWRcBjlm4RwjaPMKGCYuMqoet19bskKCNq9B4/2hSWY1Bf8ND+q+tdM/noCi2LmlcnvnyUTVZ3GTV9pcShGQj8irdbawN8JpB17/SDMEWk85uX+ZhzlRQeGnUhzGXd8dbwxLgEa4Qn8Ko2jkjLppHMFKwpKnViktNc/Hv542PxM5sPukPa5UTAbszFbJbwH4LN21kIRVMQe6J9ZkT3VG4N8ngJz32SO6IO/zzfKOlYQCnU5MzTBP4CA== 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-SenderADCheck; bh=rZjjb41lc+bg/TKJJCSQhWQlr/xHFZ63+mvvVwlBW30=; b=IOVqqbDa96tDdA972uGcXM31FzlqdQy9qkzTHOu78S1EOZ5MMc9v8z7CGKYMDyMlMGFLK5/7B+tUl4V7VdVwa6OnDAF4Lfz8Z+BE6irIy2yCnMkL6Go6H1DEjOmJic26WpFYsGgTXHao2nlyLhiYoO2n5yH5fWb77XeIfFZAGlgrwpmnRp7ES6Pja+UqJ7VFO6fjrIFnOnFvevWZEdB+kIWjLx7yCO/rPNcr2AFZDAbwGVI7mNwGst4n9SBEMOkGPa0AWD4DVYXE9YIDWqihaU/7QzYuaeZJZ2ENw+2+nQ/GAtRlgPs99sU9a/t5LrlRkACmj37FN8QlwGDxtFcHcw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rZjjb41lc+bg/TKJJCSQhWQlr/xHFZ63+mvvVwlBW30=; b=gZnXpj1STvb3FUl6aFCPgY8CZ24sPJJpzmuSNQ4nm+yalr19538a6xDKWlFlw7qlaUBZSBPNU0erNeNrsaPCHhACMhKV81R6aWFLWYyRA2BV6eHjLvUAUXxBmJcLbF1/em156i0FH9+rCBIrhKzK9CWo47goHUjQO6hxYfG37bo= Received: from BN7PR11MB2739.namprd11.prod.outlook.com (2603:10b6:406:a9::12) by BN8PR11MB3554.namprd11.prod.outlook.com (2603:10b6:408:88::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.14; Tue, 22 Sep 2020 07:22:57 +0000 Received: from BN7PR11MB2739.namprd11.prod.outlook.com ([fe80::2cc8:a95d:aa08:c552]) by BN7PR11MB2739.namprd11.prod.outlook.com ([fe80::2cc8:a95d:aa08:c552%5]) with mapi id 15.20.3391.011; Tue, 22 Sep 2020 07:22:57 +0000 From: "Liu, Changpeng" To: Maxime Coquelin , "dev@dpdk.org" CC: "matan@mellanox.com" , "Xia, Chenbo" , "Zawadzki, Tomasz" Thread-Topic: [PATCH] vhost: return ready when at least 1 vring is configured Thread-Index: AQHWgCl2jFYICMp/WEWJtA8bZ8pvjqluQtQAgARkE2CAAFo8gIABPCPg Date: Tue, 22 Sep 2020 07:22:57 +0000 Message-ID: References: <1598944057-32690-1-git-send-email-changpeng.liu@intel.com> <8e0e8343-4e85-71f3-8c85-07eb1cff6079@redhat.com> <06542643-cc20-5e3e-26ae-7100005dc97d@redhat.com> In-Reply-To: <06542643-cc20-5e3e-26ae-7100005dc97d@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.5.1.3 dlp-reaction: no-action authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.223] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d6794c81-b3be-4b39-5cc6-08d85ec8548b x-ms-traffictypediagnostic: BN8PR11MB3554: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7jQLaMz0p+cj5mpXiRMehGqQKm/RLhC9N6zAiIMgf+kRom4wjL88TgLzg6sIDUNDJ7oE4rXEhDkDWmjRqH3P9gNtyxqMv14hNmEzCCY2274bFDwggWHrc4vpZgxln6ZqpooKP8T9yGRvCrtLvcuYjsDYEqvklbHiILNw7pBtPck7Q5fU1cG8MxIcM1x4LNPx4WZEGhgO5pzyb5psfwzsyMLE0l/JDbacnRjYYIh7tbuTJJ4x70+FnwjU//xByYYwykYui8e9+OuedwgfTnT4p+taeqwOfxPkur5PvueX+iYjN/Ifem/Fx82P8Fu5XU1wRM/BrLjozXU+LsJD7bkqUA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR11MB2739.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(346002)(376002)(136003)(396003)(39860400002)(9686003)(71200400001)(478600001)(52536014)(8676002)(107886003)(8936002)(7696005)(53546011)(2906002)(26005)(316002)(186003)(86362001)(6506007)(66946007)(66476007)(66556008)(66446008)(33656002)(83380400001)(110136005)(54906003)(4326008)(64756008)(55016002)(76116006)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: tUibIUg9TSYJ7b1PSE2fa625bHOPL08I+iX1LkERnuvuHC8kZOiRGfWfD4Z+/Ps1s8IWESI7qqNld4yljDR2Z78dbiQnDDxd1Vwc8P2AYcBHp5gQjllN5T3zogNMrniJBzsTElQ6XLk0EDdMCMZc90Fwlu05nR0T+zIMtJOksU7UCVuBQnvbW6rUHbj+6V1gVUEK/pvg4EQuKdrl/GocvaacbbIi/m9hf/kDD1/91zUL8OgVipfc3qWheNIyzj7sS612Fcf+hfKACc7LqY2yJC3waZew74fpMjfKy1uqy/ExnLPjU+etXBOdvYDPM4H4s+XwtvWvlJGS5M7UvbEUjrF7GYbkvvwQ2ujauVwAmqz9i1qHwPvJRrmlY4o2fbhE/mTwWx5st8EH0Na7R3gCtYnjrNctLO/4rolUyALkXCwswMVPREjH0kTRbzxkoNRG050GzJ+uy6Xc7JQg6nJrO0k9Y7EE8Ij8ejyR74jUJzTjOVQ6D6wZb2I5mhE2wu6xzb/8uEOIMtzqKXHhAZH+/+cJw/KD4OWhEb84l56xwHh4Y0vm3o8AVC33Y0uXADxqUV7hI7GNHIsu/tTnYJpy2k8l3a13+OOv8v+gZZSYsUb7vTywum1PXrtNJrTHJkLjPhL/uZBOpu8FWpQ66FkG1Q== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN7PR11MB2739.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6794c81-b3be-4b39-5cc6-08d85ec8548b X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2020 07:22:57.5995 (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: L1qtAQZRizIhCsGNyrwvpBLz+9DhDGcw2RhrC1zBpJM9cxyd9zeRlZCf7m/ocN5yhduLgKp/PIgODpa3qERQRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3554 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] vhost: return ready when at least 1 vring is configured X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgTWF4aW1lLA0KDQpUaGUgY29kZSB5b3Ugd3JvdGUgc3RpbGwgbmVlZCB0byBjaGVjayBucl92 cmluZyBpcyAwIG9yIG5vdCwgc2VlIHRoZSBleHRyYSAyIGxpbmVzIGFkZGVkIGJlbG93LCB0aGVu IGl0IGNhbiB3b3JrIHdpdGggbXkgdGVzdHMgZm9yIG5vdywgY291bGQgeW91IHN1Ym1pdCBhIHBh dGNoIHRvIERQREsgdG8gYXBwbHkgdGhlIHBhdGNoPyBUaGFua3MuDQoNCkJUVywgZHBkayB2aG9z dCBsaWJyYXJ5IHN0aWxsIGhhcyBhbiBpc3N1ZSwgaXQncyBub3QgcmVsYXRlZCB3aXRoIGNvbW1p dCBkMGZjYzM4ZiwgdGhlIEd1ZXN0IGRyaXZlciBtYXkgb25seSBraWNrIDEgdnJpbmcgZXZlbiBp dCBzZW5kcyBOVU1fUVVFVUVTIHdpdGggYSBiaWdnZXIgdmFsdWUsDQp0aGlzIGlzIHF1aXRlI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ZighbnJfdnJpbmcpDQogICArICAgICAg ICAgICAgIHJldHVybiAwOw0KPiANCj4gLSAgICAgICBmb3IgKGkgPSAwOyBpIDwgVklSVElPX0RF Vl9OVU1fVlFTX1RPX0JFX1JFQURZOyBpKyspIHsNCj4gKyAgICAgICBmb3IgKGkgPSAwOyBpIDwg bnJfdnJpbmc7IGkrKykgew0KPiAgICAgICAgICAgICAgICAgdnEgPSBkZXYtPnZpcnRxdWV1ZVtp XTsNCj4gDQo+ICAgICAgICAgICAgICAgICBpZiAoIXZxX2lzX3JlYWR5KGRldiwgdnEpKQ0KDQo=