From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A4CAA09FF; Tue, 5 Jan 2021 02:26:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51D42160729; Tue, 5 Jan 2021 02:26:32 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 6BBAB160724 for ; Tue, 5 Jan 2021 02:26:29 +0100 (CET) IronPort-SDR: dPamheoNwHEubocWogyuPDoOIfW/AYdGSChnMeSaIe+RgKdSqqPXzxVCOyV5KpzTL0j2+X7f57 5W4/5FFmjfKw== X-IronPort-AV: E=McAfee;i="6000,8403,9854"; a="238585359" X-IronPort-AV: E=Sophos;i="5.78,475,1599548400"; d="scan'208";a="238585359" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2021 17:26:28 -0800 IronPort-SDR: yF4v3xuscOmd+56mGb0eViN7UktW54PLTCECFGt/GsRl8ERgNIowVFtIPJ0WJln2KUBEg2MC5H bdABxU8vh3Sg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,475,1599548400"; d="scan'208";a="360978215" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by orsmga002.jf.intel.com with ESMTP; 04 Jan 2021 17:26:28 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 4 Jan 2021 17:26:28 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 4 Jan 2021 17:26:27 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 4 Jan 2021 17:26:27 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) 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.1713.5; Mon, 4 Jan 2021 17:26:25 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dKKippFUS2/KROIgrutgD5CPDYHF6v3+ksJRSTcO8cyVd2sOMBI6ztPOBiFGR1U7C2VA8uxjQABP8b77OZnQIuNrYv2d5nDSWkvNE9DtPiCXOVKw/VV/FjZdtaczs634F39cCQ3GNwp7977Uat7NUqTMU0IhcUo6kAE8rP4lFZb3Wf62olV5sgRij3ixjYx9fTtm3EWE+C3GR75RrWBM+MpBlcNZJtM8gF89Ntz2jyV1FDxN7Wyewp1XaL829y958pXnIOe0n4RzIsbptOFDNYLmaB2jx270Lm8CAMa4uafRNmoB1aUZLD7uOBb+UTmvbRbKRiM/QWtoS/80rH9RlA== 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=zr95jVgU7PcXReJRaVJA9p/dH6jykkdD2s3vlCa1B3A=; b=gRUxTvC5c10L6PnzeFl/Cgn5Jv/HgcVl5+uBOfF5xvURad7qDdR6TR7nRhvgFkR0J60stUmDyYaHkAdF8WfDyBgNNOtJ8DZMK2UR6nlL9FPonU/iokoK5pvwi+iUGuWyVi9R/8NaC7BnO8DLNPKS5cE+MfH5bJWagF26TZKtyLuPv8Ky2o66BUUktWUQ8PAn8dVsyDHiHXv4Vgmbp805RyX9a5qafap4jVYnN8ME7hDPpOPf6UOSDD7rC3ARsPrzbYmlRfFz1++RfYD2imXgaB/rk9up1b1Okp9thXF1Zlkox12Tl63EPidWFWnwkzOopB0/JeYEV0biXeNxucZ26Q== 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=zr95jVgU7PcXReJRaVJA9p/dH6jykkdD2s3vlCa1B3A=; b=czTqfVofPh/ql0fw2ebAdToQjqT1nILirJuBYEBI/XJDqwCR0Hk/MbKtHPU+lYxj+1V7Wdf/LSxvainNuHCYZ/MmwFA5TF8OLln66tuZ6ijmCybXO/7bsK4RI7ZxJSWbZaQp/XU5TNmuxbtRPjynCRdxsLLUqomJe53e36aLILg= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3727.namprd11.prod.outlook.com (2603:10b6:208:f0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19; Tue, 5 Jan 2021 01:26:21 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::74f2:ba7f:cb22:5272%7]) with mapi id 15.20.3721.024; Tue, 5 Jan 2021 01:26:21 +0000 From: "Xia, Chenbo" To: "Wu, Jingjing" , "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" CC: "stephen@networkplumber.org" , "Liang, Cunming" , "Lu, Xiuchun" , "Li, Miao" Thread-Topic: [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister Thread-Index: AQHW4mUkXvubVm5HR0m0ZFjBcjl5PKoYPjfw Date: Tue, 5 Jan 2021 01:26:21 +0000 Message-ID: References: <20201218074736.93999-1-chenbo.xia@intel.com> <20201219062806.56477-1-chenbo.xia@intel.com> <20201219062806.56477-5-chenbo.xia@intel.com> In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.46] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 203a5fd8-be74-4109-2eff-08d8b118e8d4 x-ms-traffictypediagnostic: MN2PR11MB3727: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QWpNoIFAV/5FsEUa2qWBnBmyn5P2iObqXN4RHF2HymguRO2rkIYyM9Z6Oi4clRba7AnGm5dBEr1otOkaw+9rC0hzjXexs2LhfzY66uCIaJ9PwxbGJp8PUTXjmoedYP9597+AUgMDP1E6VawMfc+2XekHACGfDGIRo4fgVhgQ6Mm5H1Su9yzq2DpK/nINyXp7MPtTy7Ak0OUU/6UEmdBi2ZRb2ObR4Wmcz3RilbJFEFuo6/Z9AYvDmpwlyQpn/XYgN9QM8U4ViXzz+eMnCq664YRG8fwruTJyi7AeWAgfHHPT1uNQQqJQs/UpHMMLUfuTKzbPT3CyYJ8AArzFyE1SEHFOpgOLKlRuqvJ8Jfpw8KHOv/4MK5IyQW3FlmqjqHSITGJVJwk8RhG60nkUIj8dQg== 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)(376002)(396003)(346002)(39860400002)(136003)(366004)(52536014)(4326008)(26005)(7696005)(55016002)(66446008)(64756008)(66556008)(66476007)(186003)(86362001)(66946007)(9686003)(83380400001)(76116006)(5660300002)(8676002)(107886003)(71200400001)(478600001)(33656002)(2906002)(316002)(8936002)(110136005)(54906003)(6506007)(53546011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?UFhmNEROZWRVMWtWb3MwK21TVkFtZjRybjZnVFFlcVZ5b2E4RnBRZVU5OUx2?= =?utf-8?B?MXl2VWZoTnJYd3ZON1l5YWRaTFpScUtqaFp2NHdsM0h6WjFwa2sxUU9MMGVj?= =?utf-8?B?TEhoV29hS3RHOEgvRjczRXFxWU9nRnVTYVhINkNhY2t4aDYvYjhWUFMwTndT?= =?utf-8?B?UFljc2ZVc2d5azZKaWZwRTFEcy80TkxrMVFqeUExcEpGUkc0VWpWRzVBV0lP?= =?utf-8?B?TVY1eFh3TVJnQ1NLVk9UM2RBQjR2c1FYcnZxd1pzOHRyOVNwdTQrNllhUWlX?= =?utf-8?B?NUI5VEdzY1Ayb1AvaGdjdCtsR3pkNlRuaWV6R3dJNmFjd2ptaEFobXBvYnBz?= =?utf-8?B?ZzlDQ1ozMmV5d1JNTlYzelRHTlZNZHlQRFdkTENJbDErU3JYREYrcnpGY3NZ?= =?utf-8?B?SlFzdUlIOFVkL1dGeGhwUjBuY3ZhOU5TamEyZVVIUXRPQW5PTkluampxdW9X?= =?utf-8?B?b3lmRFhzbEN1MUlYR295bk5aazRxNFMrKzNnMVRVL1h0dnN1STVmbzlQRG1r?= =?utf-8?B?S0RjUk5RTnh4dWNjWVgrMmQ4UDMzWUFhNHg3QzBFTUtGS3VOaEZ1S1pxSG91?= =?utf-8?B?NWtuVGZiVnB5bkp1WW5abGw1UGFyR1NFRU1LOHVsaWRqL0QveEh3Y3JnWVJu?= =?utf-8?B?R3k0S281WUZZZHA4bElBVUxXTWRsbUJ2bFNjeUtyVFl2M1A3b004eEZHSXlo?= =?utf-8?B?RDAxMyszT3BZRjFHdXdwMkRNTFdHTnFWZit6eTBISW1qeEpSSDByWjd0ZzRZ?= =?utf-8?B?bkppYWNCb08zWU5uYWVBeHovYlYvR1hmM1VXblJQL0pqTEU0OURBZllSbkFX?= =?utf-8?B?YVNtMEN1VmdkY1Bxc3dZVTI1RnpqWTcvQU80UVVPRGhLUW1PSGxOdFdLRUVa?= =?utf-8?B?Z2NXaVlUWUlkdjFXQlArTW5vZTNIZkxjWUI4UDVyek1Ba0xDSHF1Z0s2WEU4?= =?utf-8?B?bFlZNnFWcUpEWUJ5bjh5cmxDUmdqWTdKT2w3NDkwMVBTekcxbENlVVRoMVFa?= =?utf-8?B?dFhHR3BrNzFURFdHZEJUZCtPdHZ3Y0M1eTJTYlVpQ1lQL3hoNjZXNG0xQzIx?= =?utf-8?B?UHVaTk5qRzFXd21tOC90S2JVZTFNRzAzc3hxTS93TnhNU3pUSWxDRDY2eWg3?= =?utf-8?B?enE5RFRhL0p4bHl1V0orVDRJUXByYkZjTFV3a2c4TGZlODNkV0tqSmlhc2Ux?= =?utf-8?B?RlNrdU8wNm5EUVoydk45d3lES0ZzQjZoem1uUVQ1TDNRTEVPK29UL2tnMHNW?= =?utf-8?B?bWc0Rm1FVzJwWjh2N3hsUmlXUWZSd0V6aGJ1bjZFKzZLWTBzY0YycjcvOXE2?= =?utf-8?Q?jUa4nFCPAnYaM=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: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 203a5fd8-be74-4109-2eff-08d8b118e8d4 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jan 2021 01:26:21.5496 (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: GIEKJRoQSxhihq5pR+q2/TW2Pp+MAOM4FP+CagOhWMEjdfQ8DS+sOvWtVlpRJj9Os33L5qDTtn875VdorNYtYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3727 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 4/8] emu/iavf: add vfio-user device register and unregister 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" SGkgSmluZ2ppbmcsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV3Us IEppbmdqaW5nIDxqaW5namluZy53dUBpbnRlbC5jb20+DQo+IFNlbnQ6IE1vbmRheSwgSmFudWFy eSA0LCAyMDIxIDI6NDUgUE0NCj4gVG86IFhpYSwgQ2hlbmJvIDxjaGVuYm8ueGlhQGludGVsLmNv bT47IGRldkBkcGRrLm9yZzsgdGhvbWFzQG1vbmphbG9uLm5ldDsNCj4gZGF2aWQubWFyY2hhbmRA cmVkaGF0LmNvbQ0KPiBDYzogc3RlcGhlbkBuZXR3b3JrcGx1bWJlci5vcmc7IExpYW5nLCBDdW5t aW5nIDxjdW5taW5nLmxpYW5nQGludGVsLmNvbT47IEx1LA0KPiBYaXVjaHVuIDx4aXVjaHVuLmx1 QGludGVsLmNvbT47IExpLCBNaWFvIDxtaWFvLmxpQGludGVsLmNvbT4NCj4gU3ViamVjdDogUkU6 IFtQQVRDSCB2MiA0LzhdIGVtdS9pYXZmOiBhZGQgdmZpby11c2VyIGRldmljZSByZWdpc3RlciBh bmQNCj4gdW5yZWdpc3Rlcg0KPiANCj4gPiArc3RhdGljIGlubGluZSBzdHJ1Y3QgaWF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