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 2E085A09FF; Wed, 30 Dec 2020 03:31:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A20282B8E; Wed, 30 Dec 2020 03:31:20 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 314342B8C for ; Wed, 30 Dec 2020 03:31:19 +0100 (CET) IronPort-SDR: wtfhg7dc2KNpuzESQNnUJDf+Lur1qIwhcT1XxqxU+upsSWYE7En8epbZeh6hVAI8EGIvPN8JGn h9fvMGYSl0Mg== X-IronPort-AV: E=McAfee;i="6000,8403,9849"; a="173983640" X-IronPort-AV: E=Sophos;i="5.78,459,1599548400"; d="scan'208";a="173983640" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2020 18:31:16 -0800 IronPort-SDR: 7AFlIK7xsc1aSLXkN7LTZmnud+oS1Tlmiy/DE8qI0WikEeWyE+U35KvNKz01akSclWACDtczz3 eJ9lWd4/di2g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,459,1599548400"; d="scan'208";a="563324818" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga005.jf.intel.com with ESMTP; 29 Dec 2020 18:31:15 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 29 Dec 2020 18:31:15 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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; Tue, 29 Dec 2020 18:31:15 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) 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, 29 Dec 2020 18:31:15 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) 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; Tue, 29 Dec 2020 18:31:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YElkTuPb42GspoSfMqHtGh23zJa6rEqd3x2ydqAWcubr00Xovoulyz1cesnouV9eN2gRbWG3+oZI4SJ8emU7b8xKFu556VMQKBm85cBuawoyA+vJ6Lc6ybfbOv/qKNq5d0x1ORTuZc+OPdrFGiXboBcLxI1FO+z94S5NZ5byyJqcLvefY+YLWilTANv7XTmGYQ0kffAQxXTqsRSvaqd9xpyn9Vpd6v8QxH4W0NFqgMJFEADuXmsbH+F7ZpnqFVIiHsgPSs9wqzXrk4F7HocpEg0+UXS+44wcNHo4TAYOQ7DyWYWuw17Koov0cQJHMrghg8LER4KlXEPwoAx+IIf+8A== 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=8m6SjaWSiiNiPPpZa/wanygb1di1c1Zbg6bI0x6punI=; b=hom6qaxO9fEI5OS5MgptLMqlcNWFNvvyNCO0i8WU7l0KgjvQzzx/HdtpPsT4Cbw9tdcGLg8QotIFNMmbNxLR/Hxt/h3Hy3HdvKDKBSHVkQNUMkKZ+LqhwFf1QGqcLYXxAdxzDDJ0NAs13uwaTezMlGt9McHqZ/zE7MB+MMUdlStp6zEL4IAS4pctm9trNnwO0xJHjd817lRRcjvRgoFYsFYgTwqNWWSa7CnXRQSU5/KPo52nIExxkBp/8JU8eu452UqJ1+B3UoI2me4pLLnHiWpN0570C9n+kL5QwlcvAK7s2len5KrXhtw7JC+sHhDTB8/3ulpe/6/ukLkUGNbljg== 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=8m6SjaWSiiNiPPpZa/wanygb1di1c1Zbg6bI0x6punI=; b=U25192MNkFe4P5aOex9asBewPV9WLVwuhH5+AOBcSs33N+Z7nSVFLfJOgR27sUn8MOJ7trMvswEEMX/4JK4JYfBVOA1eO4zuUFSXS5ilOJl27x0CriC3jkiHOkMqMKvWjNOZ+3PmwV1Y+ZwF5egP3H73aREGmHiXwacmb9hp2BI= 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.3700.27; Wed, 30 Dec 2020 02:31:11 +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.3700.031; Wed, 30 Dec 2020 02:31:11 +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 5/9] vfio_user: implement interrupt related APIs Thread-Index: AQHW3kfMkui9pD7abky2+hDSMhXT1aoO5FzA Date: Wed, 30 Dec 2020 02:31:11 +0000 Message-ID: References: <20201218073851.93609-1-chenbo.xia@intel.com> <20201218073851.93609-6-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.198.147.218] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bc9efc92-be3e-4932-6737-08d8ac6af8eb x-ms-traffictypediagnostic: MN2PR11MB3727: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mnCA5mneLwOXkN3pjAAWpkQ61QXBb21+6gxAcOIhGAhCg70oKIGipDCm10XqgsIswksgRHwTrlClrRzczo34bpVzFEj2pfpxGPE/pouEAJnmxuycT2HYpiOddi3aeOyrEL//Iqryq0bIGUybLaGT8/s5M3/wZ0Ns/1OlqbCCmZphZUTV7COhdVdSIOEqXS6AFAtNut5ZowY5LwJPusvB1MfCDZJgVIyM0WCnBCMfgCk/8Gzh5Cg8i296sdwxAcNe+aSi2pkpbj1cepBXwZ4wJhanljqgVouoT7GmRTM1sjC8Q8sfEUbAlf7MHIB4adep4MbIsk2JjsOOFV6mrFVGNFuS8LNTYA94YPF+uAv8G/r574Hl3S3jwDADYMRZoPjH8HYITgUevLwdER7PTbUk5A== 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)(136003)(376002)(346002)(366004)(396003)(39860400002)(2906002)(7696005)(26005)(316002)(8676002)(71200400001)(66946007)(33656002)(9686003)(5660300002)(52536014)(55016002)(54906003)(186003)(4326008)(66476007)(53546011)(66446008)(83380400001)(76116006)(66556008)(64756008)(6506007)(478600001)(86362001)(110136005)(8936002)(107886003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?YXd0SzdHS0I0MkNKSytQc214bTd0SjkxaWN1Z1ZlZHRndGlvbTRpMXBiU0Vl?= =?utf-8?B?M3pWMy9wcWVTdkJoaHFmdDVHNGYrR2w3MEF0UkRrTkVEK3VHVEtTWmdZVkZH?= =?utf-8?B?SUcxOHlPUWozamc4cHFxbHFGcm5rVDExazQ5UVoxR1RjS25JOTlwVkl4bkpI?= =?utf-8?B?TWpTSzROb1orbGJPNnZvZUk0NlFkSGFWa3BjWDV2OWw3cG1aNHA0enk2M04v?= =?utf-8?B?c2dWZHhuWmQ1OWhuZGZGYnkreEJMa0g4QzdNYUlhbjJPbUlzYWJUUjhKQVhu?= =?utf-8?B?eUhZQWRCbzlWVklKTWtYYnl0amJVOGFWcDV4M0laM1VSdFBuaUEzQUtiT09L?= =?utf-8?B?L0VKS21XaEcyVmJmYSsvSTRyeDNVTmp0V2FBODJESGRkUDFSbUpoZFhJZ0c1?= =?utf-8?B?aTJ2UDFLWG95c0tFdjJQQm1tREg4dEFSUERZT2daL2taU2hDdHN0MUk4d2N1?= =?utf-8?B?cnR4YVlDdXQ3bmJ5T0xEaDhyQk9QSXdPM0NPODM4WTN6bjM1TGJ0aGU1UDYz?= =?utf-8?B?bjZ0NDg0RW0vaUQzWlhPZnlrZ25adHA3SkdON05BbE5vZU5aYWFuZmFQMmxz?= =?utf-8?B?MFNlWTI2b0RORzI1WHRYTEJwWGdFOCtNT3JTY2JTZHErd3FWMDV2RzlidUVG?= =?utf-8?B?TFdFV0kzYW1YQ1lJOWZkNTZwRzBEMHErT0RLeE03Ymx0UERIRzVQZFg4d3dD?= =?utf-8?B?a0g1dzNJeExpSkdqWU5LTVg1TDVHQTJac0VKak9KdnJsTHhOWFpMdWM4YllD?= =?utf-8?B?cVpZT0xYMEN2TG1KWlIzWmtqVHF6NWtKMWlXbkpzRGFwVHNaVVBmdy8vUm5l?= =?utf-8?B?QVV3QnROZVdhNGJMTEpzVEhLNjl0TTM0U2JTRncrcHd0N3ViZ2ZtUE5EeXda?= =?utf-8?B?aGFGUkVxRGo3MHVoa3N3U1ZsSllmcFg4VU9DbHJDMFpBM1VpYVRnbUFZUFEz?= =?utf-8?B?SlZSYXNlQVZxdGdPVGlKTklQZDdYcDRmVkNZOTdQcmxpbzd5QzBLVEdYNjZu?= =?utf-8?B?aXVRb256VnQ3TFNHVWpDVngrUWE5SHNtY1NuZ1NUd1FiZWNaWWsyZ05XSnRq?= =?utf-8?B?dGUxam9TMmo2ZmJMWCtnMnZoMk1ubDFsR1JHNGFDajFtSVIwTTNVOUE3WkVW?= =?utf-8?B?NWcrNElydFhPdkp3NzBWWmhpek1sWmJ6Q2o1TnlseWRhNmhGa3hUN3dEMFdl?= =?utf-8?B?OFdzQVVPeEFoUUd3NnBTSjAxYVhsaW5STkhxQXZkK3FvVkxHNktKVXgyVm9K?= =?utf-8?B?T1o3RFYwV0VuQlFGRTJ0WFFPV2ZDYldRV20wa1hFc29zZGlXMlk1R2UvQmxR?= =?utf-8?Q?hMnHAYEGhGQiE=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: bc9efc92-be3e-4932-6737-08d8ac6af8eb X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 02:31:11.3404 (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: //y7eKm5+Ht4zsTbdXCFk1+gYqibF4LkLH2/u01hEz3NEK9LJaJIXrq3iGF5kCERWz7nRfnsX3iJjRYdDvXFjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3727 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 5/9] vfio_user: implement interrupt related APIs 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" SGkgSmluZ2ppbmcsDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogV3Us IEppbmdqaW5nIDxqaW5namluZy53dUBpbnRlbC5jb20+DQo+IFNlbnQ6IFdlZG5lc2RheSwgRGVj ZW1iZXIgMzAsIDIwMjAgOTowNSBBTQ0KPiBUbzogWGlhLCBDaGVuYm8gPGNoZW5iby54aWFAaW50 ZWwuY29tPjsgZGV2QGRwZGsub3JnOyB0aG9tYXNAbW9uamFsb24ubmV0Ow0KPiBkYXZpZC5tYXJj aGFuZEByZWRoYXQuY29tDQo+IENjOiBzdGVwaGVuQG5ldHdvcmtwbHVtYmVyLm9yZzsgTGlhbmcs IEN1bm1pbmcgPGN1bm1pbmcubGlhbmdAaW50ZWwuY29tPjsgTHUsDQo+IFhpdWNodW4gPHhpdWNo dW4ubHVAaW50ZWwuY29tPjsgTGksIE1pYW8gPG1pYW8ubGlAaW50ZWwuY29tPg0KPiBTdWJqZWN0 OiBSRTogW1BBVENIIDUvOV0gdmZpb191c2VyOiBpbXBsZW1lbnQgaW50ZXJydXB0IHJlbGF0ZWQg QVBJcw0KPiANCj4gPiAgCWlmICgoY21kID09IFZGSU9fVVNFUl9ETUFfTUFQIHx8IGNtZCA9PSBW RklPX1VTRVJfRE1BX1VOTUFQDQo+ID4gfHwNCj4gPiArCQljbWQgPT0gVkZJ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