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 D5B0AA0032; Fri, 14 Jan 2022 08:48:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93D0442764; Fri, 14 Jan 2022 08:48:42 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 2557A40DDD for ; Fri, 14 Jan 2022 08:48:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642146521; x=1673682521; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=drW9MC9DQ9BBAbYbDS9p+n3WtwClM3mlnv78r7OCkd0=; b=NJznRcihYE7I9rKAJbiQSV8b5MysgBTpyVDsn73GtwjNQw1mLtzxbCTJ 3/v8bbj6ZQFNRNxrbU0ayqiQ5y8Jwgy0qanISCKVSuFgYgxU0ilojnaHM ow9w8W0hgkFE8vghuyfEWE0J50s1ZhFaV14/0uNo//pob1ZJEEoQYUd77 NItK0YB7w8q9jztXc1dLGOcWNr6EijOX94Xm++d3bHI2Hzc3kTGVwh6Jy FlCUOuZl+7K9LNoUV+fQrMGIRE9fwn5P03oKRueA6d1ZMP0tIge96MfPI 81QJpa3fuHk/SIKsojascwvN5WdlL3EfD1XHa8N4Tjl+bapdZRc2+iB8U Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10226"; a="307544742" X-IronPort-AV: E=Sophos;i="5.88,287,1635231600"; d="scan'208";a="307544742" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2022 23:48:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,287,1635231600"; d="scan'208";a="530112175" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga008.jf.intel.com with ESMTP; 13 Jan 2022 23:48:40 -0800 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.20; Thu, 13 Jan 2022 23:48:39 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.20 via Frontend Transport; Thu, 13 Jan 2022 23:48:39 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.174) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Thu, 13 Jan 2022 23:48:35 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9kCss3kQLYNVrWZeuQESARTSWOn0z1Gncqh9ztMxGP9K9nPJilUTzhQidLbztU/XO0ZUq7FzfuIelzBhIFUbimAIn7BpL9kSp2IITJP9/R6nvmp/0h+Jds+EETOFJHf+yFe4mdk4Ji1ekF/HCZkOv8ASD7anFfDlXsPNdDJHNgxcrIkofclf3GkMBD9lLTk0r3DVIBwUT+3IsIUz00axIWS2P1UumqbbnGSrJ3SeP5CDjsqcKr0wrsvGp4fUoq4YJUG5EM9tzp1eM3Idg4d7dVc4z9e59JjcmrUqnV2QY6w/LQsIU8RmqNmGkO4NkbIqOP7KLuu8COABw6NCglzfQ== 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=drW9MC9DQ9BBAbYbDS9p+n3WtwClM3mlnv78r7OCkd0=; b=JT/MUQtBQMGa0BbPCPIWlg9TGXmECk1z/V2kXBvPQLIp9R7BgPQ8K02c13ex5+/LGcF4s4HTfcIQcfvpwZm8TlTlbLrq2wHpIU1GjFGVFnib/WLjW5E9aG24T7w2fLlQo8fK7ZaeNmv802SqkNN1GR7c+bA9pKshR+aMz/eKk+1V0YU+p+1PX9byTbVY4R2nkEnhypXhjSH6TtOslpaZ98DYZs91JniLvYnAFAutE7lBKt4gvkkSQmIOLxOS4WrN5fnjyD/3KdD7+2Rq6mR9Vlmk9r0R2rJ+KCp0vkBfVMW2a6ygeLcF8GUAPUFvzsiAW60mc/1mMH+ZnRvoQ7KfsQ== 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 SN6PR11MB3328.namprd11.prod.outlook.com (2603:10b6:805:c1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.10; Fri, 14 Jan 2022 07:48:28 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::40a4:d129:6047:5515]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::40a4:d129:6047:5515%5]) with mapi id 15.20.4888.011; Fri, 14 Jan 2022 07:48:28 +0000 From: "Xia, Chenbo" To: Harold Huang , "dev@dpdk.org" CC: Maxime Coquelin Subject: RE: [PATCH] net/virtio: fix unreleased resource when creating virtio user dev is failed Thread-Topic: [PATCH] net/virtio: fix unreleased resource when creating virtio user dev is failed Thread-Index: AQHX97emBfHuICGe10eyNBc8e9pw8qxiRsCQ Date: Fri, 14 Jan 2022 07:48:28 +0000 Message-ID: References: <20211220124100.1307675-1-baymaxhuang@gmail.com> <20211223044237.52037-1-baymaxhuang@gmail.com> In-Reply-To: <20211223044237.52037-1-baymaxhuang@gmail.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: fbd7d6df-5f34-417e-205c-08d9d73240a8 x-ms-traffictypediagnostic: SN6PR11MB3328:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KaWvLfZiko0to/LiNu4qrHkZDEGYEyqVKGlD5ubz6QyRkQBuw4Lf9Ry6g11368+/0xQwsH//6oSTVWjPnFuXis+wE/R5Ib8Hd6pQh4OJUo3zWuH/kHtabEp0B4jA6s9bTVO3pFrJswBrw3EJYm7FsZz19DbLTeJgbOgyOAgv4530DhXZQNn3jA+NwPHYiJOpmNU9/eT6IJl+sliKDdCZ6n3U1mKbFBwRCl+rzjN14j2Q2DxVsjaZDBDsqRF/1DEz1XpnrYl9ejL2S838+2ZT3ahHPARb7LN0s4BzFfii1am203kMiLBh3GEzSn3+0ZIMmH+SeKyZq6qzLdeu7Nb06HomguNiv9MEEE+YeSXNSaML9SzJEfAnej/qrxp4HcbplJ/83hk149uzO/aSM8V7nxxvZskwZ7eYhqCK7GTldv45s9DgJ4juXeEFTSUXQZeHSNTt8yVoZV5Nwnu3Sk5mmjwN9GWPShydL4RhCsaVbufmEiE96tFsXA1v4JxwHqnRT6132ojDxrTLKr96eNi251RetDVkgeJZ6BznsjljStTmYKEB2abXM9ZBhzWZsT4sP2CTM+nuQixtv9XuN9Yyc4xr6PSl1IR92hu/CVXUl0EyeXNoyQqmZEuBRLJTSlitige6F7puCFGgNYFvOibzocR1VueFH0haSUxaT7Q8QXybn4Khvf+9sMyFYZi8NJ+uRxOu3cxSuVz6YyGd1cInBA== 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:(366004)(66476007)(64756008)(9686003)(2906002)(66556008)(26005)(38070700005)(66446008)(38100700002)(110136005)(86362001)(53546011)(6506007)(5660300002)(76116006)(33656002)(66946007)(7696005)(8676002)(186003)(122000001)(82960400001)(55016003)(83380400001)(316002)(508600001)(8936002)(71200400001)(52536014)(4326008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?emc5R3hFaFFZcHloQVNKTE8xSnM2VUNNRlJRWUQycjNVU05EZThwN3hsSzJs?= =?utf-8?B?WnRBZnVlZW5hWGFiQVlVZ1VMdXdWMit0NTIzdHJtWDlnNTZxNjFJYURnRFFC?= =?utf-8?B?SlAwRWNmZTNrQmlxVU55YUlQSHlHRC83bzJIVmpiTHhCZDljRkxHUFRFc1RD?= =?utf-8?B?UmwvNkVQN2hnRmt5aVhvNTlRd1gvSHdYdzlzQVJGVWQ3M0R1WmhpSVhMOGZM?= =?utf-8?B?KzZXRGxVVHBKcTVEN0xtSXdxNjAzejRVWGZVR0xnYW90TkNTRmVqL2hVTmFB?= =?utf-8?B?MzFRcEZxV3lHWVROK1Jvdkx0WGM1NjNCYWtMbTZrS3NnNVBQVTY3WkpNMm45?= =?utf-8?B?Q1c5anhCVktrOHQwTUQ3SUMvWVBHbEJ6RlB6MC93OHduY21wMldqZjJXZUpq?= =?utf-8?B?UnJPTG9ZS3E4a1RUOGdKdGlrUzZTN080K0o0RWI5aldSM3pqSXUvSWkxRVI5?= =?utf-8?B?UXE0NDBYamI1Z3RkWDdBcXh2bDNObmpLcGNaQk1uL1ZMVk96ckxUbjFLVm1I?= =?utf-8?B?N0FjM0J2RlIwVm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BuVmRBRDFSQ3BIMXpEWm1qS1YxR2FuUGZYR0RIQi80TFpRNTdtSFU0eEVY?= =?utf-8?B?bGZLV3FqdHByUnRJRGNhZU1Zb2Q5VTRSa2NtV3ptZzhDSU5IT0MrSi9wdS9i?= =?utf-8?B?endwM3k2SERHK2JaK1NHRko2SmJoRm5uOWFYaHY4WWRRa3NSZ1ovSTFMYlJj?= =?utf-8?B?Z25tVDI3RUNaSVYyZVVMVlc1aDBaZE5GL3ZyVWE0akh2bFNGK1NDdzlwRmIv?= =?utf-8?B?V0pMUURXU29NTTRzbjlHVWN0U25wSWZhd09wTlM5d2ZHLys5WUViRWVXclB6?= =?utf-8?B?eGdWZlNRaGtOK2lSQlErbUVQOHU0OHFRcnVoejFhUEwyYzRIVGd6dWM3NmdM?= =?utf-8?B?TW9ZMlhLS1J5b2E1bTJzWWpuWERxVmVEU3BwNms5d3k3R3QzT08wODdjV280?= =?utf-8?B?c0FLNDJFcTFSQzFUWmJPamJHRk9yeTgwN2VVWC9PQy92SUtLSGxWNHloUEt2?= =?utf-8?B?eVJuMmFSVFJmT2lzbUMzWDd6ZFQycktya2w4RldXa1dHRnlJaXFpOFgrWGZH?= =?utf-8?B?ZnJPWXd1Q1pXVWZ2aGlTNElBUWNaRTN3VHhXN2o3U05BS3hCN0lkREI3Szk1?= =?utf-8?B?Y0pVYmJQRW1KVTNpbWpvZWN6eE45TU9MMTExS0h4dW5FVUhwdmRkZndtTkdL?= =?utf-8?B?UzFvK2VmL2lQS1pkU3A5Ym4zL3ViaEl3eTA2c29oT3ZPMVl3cEJ1SXEvdlQ4?= =?utf-8?Q?8xYBfTNpr44RZUOIgwpYuFc=3D?= 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: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbd7d6df-5f34-417e-205c-08d9d73240a8 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2022 07:48:28.1463 (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: 7D3XB8qNJGJ8nrKTlf0+1D09WdEvKGf2QLqMoYY73XilOC580Cvz0h/WBjk13jugi6kTU7xfz2PCYk60Pl9O8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3328 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 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBIYXJvbGQgSHVhbmcgPGJheW1h eGh1YW5nQGdtYWlsLmNvbT4NCj4gU2VudDogVGh1cnNkYXksIERlY2VtYmVyIDIzLCAyMDIxIDEy OjQzIFBNDQo+IFRvOiBkZXZAZHBkay5vcmcNCj4gQ2M6IE1heGltZSBDb3F1ZWxpbiA8bWF4aW1l LmNvcXVlbGluQHJlZGhhdC5jb20+OyBYaWEsIENoZW5ibw0KPiA8Y2hlbmJvLnhpYUBpbnRlbC5j b20+DQo+IFN1YmplY3Q6IFtQQVRDSF0gbmV0L3ZpcnRpbzogZml4IHVucmVsZWFzZWQgcmVzb3Vy Y2Ugd2hlbiBjcmVhdGluZyB2aXJ0aW8gdXNlcg0KPiBkZXYgaXMgZmFpbGVkDQo+IA0KPiBXaGVu IGV0aF92aXJ0aW9fZGV2X2luaXQgaXMgZmFpbGVkLCB0aGUgcmVnaXN0ZXJlZCB2aXJ0aW8gdXNl ciBtZW1vcnkgZXZlbnQNCj4gY2IgaXMgbm90IHJlbGVhc2VkIGFuZCB0aGUgYmFja2VuZ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