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 6D761A0C4D; Mon, 6 Sep 2021 05:24:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED68A40E32; Mon, 6 Sep 2021 05:24:24 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3A18A40C35 for ; Mon, 6 Sep 2021 05:24:23 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10098"; a="200080102" X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="200080102" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 20:24:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="522854737" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga004.fm.intel.com with ESMTP; 05 Sep 2021 20:24:22 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.2242.12; Sun, 5 Sep 2021 20:24:21 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Sun, 5 Sep 2021 20:24:21 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.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.2242.10; Sun, 5 Sep 2021 20:24:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cSNiMOsNMe94kSddKeqtgWYztE6Dqar83kdLXZbditR7NApi+Sgik8vMGtv7fzvwRF45vuNa91I2rNfuvYCm2Cnc/vF5NQulYjPu8zoqJHZJxqWiokTGyX/hjiREhPBebjeT2Y6i1l/gGnjeK8YY+NXvk/GiCoesfpcyO5SZhmcJgPxjUaLcQv0VQXe0g1RKtdMNeaU5hnCjzNyMNrJ1H8HaM0zbiFiX2qG95Bzc5a+yQxngmRZXSjmHVdALpkG3KHHdKiThBGAZMKwBDPn8d4Mbi1Fb7/OmxFLOTdIvQgVlGayK68/7Lz/U4yBm9YoMw4laJJfrekj8es1UBLX+vQ== 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; bh=LcQEJlcafqSXjlW4DfURF7FdKjmTZvdODN1wSK/AomI=; b=TQq6euiIn2grKHvyViZiRRMzAnP6f+VMjoOxNtBfKCjvJ+FRdc1eHOaNMSWsQAH6Uk/87cDdwX/IIiS49JSN+WIOorxcahMyN3dgiYRnfaO3xi6j6W5xFPJ84xO8mFM4ly7BkN7yjJ5FMcZZNqPF5PmNDCK9MBWJ1uC0XcMDQ8Y54+VcUiCTdDZwcxbd4vW5Z5LILl1+ZZjs2RsaWg6wL5lU3YCM4ZuKcnJTwnLHGQRVfRFTedn9IBaMsTINxFx++Ur4xZRVvIhRLlceH8W+Iu0+ADkWl6TpHUupgrQy4n5eDV3q/wjWIJ3Kfx1Y4cG+2h9QkmO1WKVnkcjegZbBhg== 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=LcQEJlcafqSXjlW4DfURF7FdKjmTZvdODN1wSK/AomI=; b=lMrjhJ60rK1qeH5o3hI4VUtq+K1ucNjslTKYevA+B9ZaVgF5Ypgsj1E5dhRmK9405wBsLOEv8GLFxvJd4mfl6dl1NzXqiUpOE1j50xdPC9Yo+88cWKp84xEttUJJHEvJJzu5jSYWg4PsexykXHZMd8UUlscxncNvL8Kue8VcBjE= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3997.namprd11.prod.outlook.com (2603:10b6:208:13b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Mon, 6 Sep 2021 03:24:19 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801%3]) with mapi id 15.20.4478.025; Mon, 6 Sep 2021 03:24:19 +0000 From: "Xia, Chenbo" To: Gaoxiang Liu , "maxime.coquelin@redhat.com" CC: "dev@dpdk.org" , "liugaoxiang@huawei.com" Thread-Topic: [PATCH v7] vhost: fix crash on port deletion Thread-Index: AQHXoBHBjZrplK99O0WewIHeDrzds6uWW8+g Date: Mon, 6 Sep 2021 03:24:19 +0000 Message-ID: References: <20210827141925.1500-1-gaoxiangliu0@163.com> <20210902154553.249-1-gaoxiangliu0@163.com> In-Reply-To: <20210902154553.249-1-gaoxiangliu0@163.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 163.com; dkim=none (message not signed) header.d=none;163.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a7109255-20aa-4c17-4418-08d970e5d085 x-ms-traffictypediagnostic: MN2PR11MB3997: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uugY7undR0quZQLZT7NXWNnALpgS8sgZgidjLqiT3b8AMzIqrOpfFtdT0Oscx5FUYnaRG2L98ydYBoXVYaw04FmWrrXorRelrTRvxYDFAPB3ZRWjIe2RplaRw7yGiYVkMzW41q/mh4I1BrFwOmBdlq2UCXawO3Obg/Pu07GNaRXnegyGib+PYDx3F6exyyZ98MONgKpfLA8vvrJXleqea5f0P3kZ27t3dQR3AsZEm/c1tvQotNuR7qhM5L1/z5cdjantT1d/bJfjeYynqHDg82aYhyLPekC8WKY4zuxKapix359iRWVfbukm/MZuBzAGYlCpgSKOPaJxIsBNrveTmcQEJofq4wLgbVE82OhSzxmj8KBGxRLYplu0ODtj2a4FIICb73bfnw5d1T5IeRM1TpRyINB3FvHaBVWMV+Y+reXrjR5VMuSbmSlcW1axmxpRO59OpKuLPbJDyd9wjSEdaJDVMYg/cvH1TF5AsMIx2xJQ9du5SIMZSXrQbHKqVAkibvQJeEARBwnutDntf925i3XLB2ouYhE0c+mcqMRAMMHLUTFk5+3jgc9bp/bZcS/NgkUyHVAnMXOU1XRZy8K81qHDXUksKCrp3ytKZiQP/Ra3dpLNHpXXOC/2sDGqzZX3XFP6AT/Y6AXsbMZy6SD++qkAaTdT9WX4YRm90+mgeNLvjqqaSvA+5cACAmFJJix2JzfYnzerd/xBnOcX+98ZGQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(53546011)(6506007)(7696005)(33656002)(54906003)(83380400001)(52536014)(8936002)(186003)(38070700005)(26005)(8676002)(38100700002)(2906002)(71200400001)(4326008)(316002)(76116006)(5660300002)(122000001)(86362001)(9686003)(66556008)(66476007)(66446008)(64756008)(66946007)(110136005)(508600001)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?S0ZURDcycmZRSEJTVXZmMnJQK3RYSHJTVXUzdmUyd1hkdDRiaTBKSFdNZDAv?= =?utf-8?B?cVRsak5lcStic3ZFZmt0NXNjVFJVd000SSt4Nk5rWUU2Y0FQbVAwV3NOZS9x?= =?utf-8?B?MXlnNHV1OHVYbGVpUkcrb2M4clZHN2g4M1F4YVNwenAwN0NQYUtkN3UrZ0pl?= =?utf-8?B?ZVg4Wm1YTmp1elJmZFJPUDcvMUZ4c0ZlK1FpQk93ZlBsRmxWSjQwdndlWXJi?= =?utf-8?B?SklLNjNzSk1EZGpLSW5VQU85bXk0dnJiYmZaVm9UcC9ObDFXanl2WGJpZEdr?= =?utf-8?B?aVROSCt2V0J6MXpWSVB2ZVRUem56RGJwSlNYRjRVZzI4eVBqSDNJWUU4MUth?= =?utf-8?B?S3pFT2ZFZmtwRVBSTWc4RE13VnpPUVFYWlVuZkptZUhMY1JPcTZ2cGd2bWFp?= =?utf-8?B?VG51Mi9BU25jUzJnNTZnczZGNGpuUldGN0V4NC9NT3RhcURnK3ZvUTNTdXRL?= =?utf-8?B?QWIxbktoMnhIc1grakJ5TWNnOXlucHM2ZTBFR2Z4SFNCWG9DY29OcXhSRGZV?= =?utf-8?B?UHhuOFBsazNaallYUUo5S2E1R1FSaEFBY2FEaExnaDR6RFFxQ1g4Y21uZHNT?= =?utf-8?B?U0NlOFFpR3RGbVBFOU56ckFQK24vQnRLS3gxdXhuUUhzMGZIZ21kL1A4cklJ?= =?utf-8?B?Wk1DWUpKVk9PeWxIY3pjUXlUY0pyM2pDdjRmQkI5bUlZZTB5V2EzNXFnZ2dO?= =?utf-8?B?M2hCRy9HZ3NJZjc4S2U1dlFPODFxQzFJWVdGeDJSb1A1anFBQ3o3WlBsR0Q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mo2UW5HRitZdjdwQXhiSUc1?= =?utf-8?B?LzJLR0U1cTdwbFRoWWtqcEJFTHJKUlY0dkR0bU8rbWpSU0xWY1hWUUxEY0wr?= =?utf-8?Q?QcHV3Ds+Lsgb45+5sc=3D?= x-ms-exchange-transport-forked: True 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: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7109255-20aa-4c17-4418-08d970e5d085 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Sep 2021 03:24:19.6133 (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: 3ymRzeIG1F7ARH9mOl2M7aZ9/VR5+VWmJgidYfh410LpMu58mB2tG/qyvNi2AmbCkZXcQoK0RhjvWjPL1TUVBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3997 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v7] vhost: fix crash on port deletion 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 Sender: "dev" SGksDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogR2FveGlhbmcgTGl1 IDxnYW94aWFuZ2xpdTBAMTYzLmNvbT4NCj4gU2VudDogVGh1cnNkYXksIFNlcHRlbWJlciAyLCAy MDIxIDExOjQ2IFBNDQo+IFRvOiBtYXhpbWUuY29xdWVsaW5AcmVkaGF0LmNvbTsgWGlhLCBDaGVu Ym8gPGNoZW5iby54aWF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