Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp883931ybt; Tue, 7 Jul 2020 02:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxR2dDn/AEdqYV3oxJ3JUMEuQBHD4HOFt+2ry3V1rsJ65p8dhm5nU9MYouJrCwmeOE2bZr X-Received: by 2002:a17:907:724d:: with SMTP id ds13mr45708069ejc.73.1594114694235; Tue, 07 Jul 2020 02:38:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594114694; cv=pass; d=google.com; s=arc-20160816; b=Qp/d9wXJ8vk5DIIgDAJR/JqO3z+OJPyGf5V/mP5ITIdjASXPzXmSnJFeiZwxhEHetp FBDVpHyXCoxtQHJrF0oqzDJCgAfM1fXJ7hvBNj5EwSY6gRo/mwMtmsbTs+oC8J4F3Sls LF7r41DvsUP8d+GM6twvFOLHtLH2mDvalCyf1MBvHvH6Ml9lEB9jrGqKNhflPuhMpsCk uMonuTA0WOyWqPKwaR4yYOlwG94RZVelB9w6mSKfkaddOhvRvDCK72s4UGTBpkTGYOkh 82rrv+n70vQqEMBH9Lpy5Uoe3PNbxeHqO7oSv+PgfImUgXu4dVBcQVIx791paCzh9moF bCbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-product:dlp-version:dlp-reaction:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature:ironport-sdr :ironport-sdr; bh=M7hp26Ioh3NUFKQS4x0a6QfXV/CZxDCjs8kA8fjk3nY=; b=uOqBuXLdtBPYHgD+FHPMJwJq2332pTAtCRstAzSoal4xq/yKxY9RmO1H+Fp4vY77Iy 5qXA92q6R9G1aICjUthGop6ZV6pypW+pW7mO6DiN0kBvYQIS7Ya3JEiscT99NcmRSomr ThyimktakPGHUkaOoDkymi+5SOJT/PFgjUBIolIx35LJ3nH7i9RC/depHfs4jpWe9vSD 5IDTwPTWUQHn5w/wPL2cghaoTpQLXe3D7ZsXhPPUjIybj7onn1039z6dspcrWj3JfLXE CG2l/ViudfBca4Twt4I5n6CcWIcHvQYHygpibMJLRx6N4+jSlcA+yxCdNHBLAJTyKUja xnZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=ouaYrT9+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt5si19426977ejc.335.2020.07.07.02.37.49; Tue, 07 Jul 2020 02:38:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=ouaYrT9+; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727834AbgGGJex (ORCPT + 99 others); Tue, 7 Jul 2020 05:34:53 -0400 Received: from mga07.intel.com ([134.134.136.100]:15551 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGGJew (ORCPT ); Tue, 7 Jul 2020 05:34:52 -0400 IronPort-SDR: ABTMOwUhPn+BR78rx3UqDtOnfeaUwXqB+uw9f3BxF1H2oajcQEU1b9OVJBkBDapTpIZD8uQoXN gXiwQ7DoUW5g== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="212533378" X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="212533378" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2020 02:34:49 -0700 IronPort-SDR: mjwmhkMUNU0ooCQVOfgHcOZHwMKth5kmG+6t5eWXEYXagMDHUhRZNMtcmciU16rw1nABgvYQTT Prx2nilRVXkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,323,1589266800"; d="scan'208";a="305600119" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga004.fm.intel.com with ESMTP; 07 Jul 2020 02:34:48 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.1713.5; Tue, 7 Jul 2020 02:34:48 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 7 Jul 2020 02:34:47 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 7 Jul 2020 02:34:47 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.176) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 7 Jul 2020 02:34:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h1iaWz4cIHiMUfC73wBwLl5xc+8MV7Qt71YUBKE43tKMkUptvxLHNSF4XsB7eSEjiIHxn9HSakcEMDMaaXIPz8V6JPacErXQ+T9xREbsw43BOcrAJjQMeu2WLM1WEvrz6ZjaEaUQraHr6ECDkW07MP0E/DoZL2ePceDGxy2+7Msa/uSAsbCiw04KTGnzRM9wy+D/6Im4QawMmUPZ+T2ohzrEogcn3f6Hi1j50fNt3nZ8aWgpl8QvlhL6vA/9VmuxpiEl7E6znFmmg2vdg0s0IK4ndxI+qT+Y5BeYxdgCY501ELZgh+IOzf6dCDXuikVXwaGk3JfaLabDK0rhG75Nvg== 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=M7hp26Ioh3NUFKQS4x0a6QfXV/CZxDCjs8kA8fjk3nY=; b=UhSvXqu1yi+LJXyvrmHqInJkBDct/UH0NtDyGWtFQoE2PRDmHW9xhcNA9pOQW+aJ8CWAYanS3Ws0jnjlGQb0uOLqUmBdYWIqTAv8DeUJtj5oYZbai7BU3UdRPC3rTwl+bcYSxhRNTE0Y/DHYdBiXD3LIqkDZ52D/mLmwCXoz+BJQdAD9ip37oyDxUxJZpk+C5wrDVjKBhNcdwAv3mQR+MZchdyTVRYn0UlBr2XcNw++NwiW3oF8WR7cBzLga1lSHNAFyHaW1gNz9ZvHffpDBDrBj0O+y78GCXyyAEnuwRI5eyGOG/teCEU6wfLIaWaTRGmUXMH8J33LflIFEetVx7Q== 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=M7hp26Ioh3NUFKQS4x0a6QfXV/CZxDCjs8kA8fjk3nY=; b=ouaYrT9+X1jGOLQ2DoUb/t0BWz8nCB6S8SwM1NKjZC8JN08iidJXVdykU7oJjw8CwakBdfpxUt2KO76ZI394UI7BFQVTLHoTrkSvPI7NOHW9piP4Wu8l92pVipp7cYY3xpzXY19TRr1A2IxCu0LmbV9hHEAKeezO7jWqD2vqGdQ= Received: from DM5PR11MB1435.namprd11.prod.outlook.com (2603:10b6:4:7::18) by DM6PR11MB3692.namprd11.prod.outlook.com (2603:10b6:5:13e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.27; Tue, 7 Jul 2020 09:34:45 +0000 Received: from DM5PR11MB1435.namprd11.prod.outlook.com ([fe80::9002:97a2:d8c0:8364]) by DM5PR11MB1435.namprd11.prod.outlook.com ([fe80::9002:97a2:d8c0:8364%10]) with mapi id 15.20.3153.029; Tue, 7 Jul 2020 09:34:45 +0000 From: "Liu, Yi L" To: Auger Eric , "alex.williamson@redhat.com" , "baolu.lu@linux.intel.com" , "joro@8bytes.org" CC: "Tian, Kevin" , "jacob.jun.pan@linux.intel.com" , "Raj, Ashok" , "Tian, Jun J" , "Sun, Yi Y" , "jean-philippe@linaro.org" , "peterx@redhat.com" , "Wu, Hao" , "stefanha@gmail.com" , "iommu@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v4 04/15] vfio/type1: Report iommu nesting info to userspace Thread-Topic: [PATCH v4 04/15] vfio/type1: Report iommu nesting info to userspace Thread-Index: AQHWUfUbywl8Q+WBl0+9l/PlGyuXiKj6mYIAgAFGARA= Date: Tue, 7 Jul 2020 09:34:45 +0000 Message-ID: References: <1593861989-35920-1-git-send-email-yi.l.liu@intel.com> <1593861989-35920-5-git-send-email-yi.l.liu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows 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.214] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5f60253d-731e-4320-ee73-08d82258fbfb x-ms-traffictypediagnostic: DM6PR11MB3692: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:983; x-forefront-prvs: 0457F11EAF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8QHujbFCYAdixtGrXr2XPaY212WqRPtkFAE4JNNU8r7IkErgRqI2bpuMbf67VZRgcflBQqfFQ2vx7ICVFnErr9P1Lz5Gjo6OzQEIVsvpjaUyGtmKW3fVDn0JF7aZjREQxX+ZgaGT2I5jQbsdsMm5w5dVG53oygBMBKQWVjYcmcuBVvsQ1/I/IYe0bq91eqmbPlnan7+ZdTgrQUKlYJpiBQTwQSOB9AHO00/OSKwGRJXzpL82VPr2hnxjyqEbMC/o8xxX5TtwhkpXeIsNtCBAKTJD45Xbq4wwF0eHQfP7o2WboLWW/CEcWK23suB5Ip6WghYwOToOoSowmtggLRR2s4HSXkZu31AuYV2UHpTpHWkDf4GSR9/kZ/FJ7GFmg0aqujnXt9istdYuxdJn4Vo9fw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR11MB1435.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(396003)(39860400002)(366004)(376002)(346002)(110136005)(52536014)(5660300002)(54906003)(2906002)(316002)(83380400001)(8676002)(33656002)(4326008)(66946007)(66446008)(76116006)(66476007)(66556008)(64756008)(26005)(55016002)(71200400001)(966005)(478600001)(7696005)(186003)(8936002)(86362001)(6506007)(7416002)(53546011)(9686003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: AUOoGAddku1qUNXPuTjhwv1sgvJ/RdTt1Gn4W4xhPYHUfC5LTB6PrDaWQ32FHXdTMA4Fsb76FwTOLvdJ+4nQllj9aOmF9fTGC2Jq1pw7mR7xmdzl0Gr/m0qc9SWs60GZOAhImHHYzZ+shOLJNi0/bzKov2DEbz0Wg/Y9EJA/dqlDDcCNgFR/bkAftE/FVt9NyTNm1/cxX66+uJ8vFxV+yaXdTg9SdOGu9DCZ7hMbay1zsYrv0+K0mO3X1RifgGNrRYOE//Qj0uHsZzW2a5xUhvjCUNjEmto7cEiwnbM7gCzHixpjq1EzkAtL/w4+QX3Guxmk+ZzVsy+D5WKx3St0IwhqxK+AcBb7LrUpAWdY6ulNlyNcMTt1a7glV+Z0DZiH6Irv+Gq9rs6n8J7WqmeKPZ2w2ThbifN9VZtgi9EAQGfHPMaq+mMr1eda8aHmiRrhuj4GTDsLjNjW9nYMGXeI1JKHxJcDWQFMemidKiaPotpAxtj1gy6DgGvGBnEX1UtS 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: DM5PR11MB1435.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f60253d-731e-4320-ee73-08d82258fbfb X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2020 09:34:45.0984 (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: UHgvB47bLCgi3COKA2MEzKeNL+DuetDucpHgp2qe5xxlwRQTpW96+ipIGXJmHznH15BqRfotxQnqQ/8Hv4yFLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3692 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRXJpYywNCg0KPiBGcm9tOiBBdWdlciBFcmljIDxlcmljLmF1Z2VyQHJlZGhhdC5jb20+DQo+ IFNlbnQ6IE1vbmRheSwgSnVseSA2LCAyMDIwIDEwOjA3IFBNDQo+IA0KPiBIaSBZaSwNCj4gT24g Ny80LzIwIDE6MjYgUE0sIExpdSBZaSBMIHdyb3RlOg0KPiA+IFRoaXMgcGF0Y2ggZXhwb3J0cyBp b21tdSBuZXN0aW5nIGNhcGFiaWxpdHkgaW5mbyB0byB1c2VyIHNwYWNlIHRocm91Z2gNCj4gPiBW RklPLiBVc2VyIHNwYWNlIGlzIGV4cGVjdGVkIHRvIGNoZWNrIHRoaXMgaW5mbyBmb3Igc3VwcG9y dGVkIHVBUElzIChlLmcuDQo+ID4gUEFTSUQgYWxsb2MvZnJlZSwgYmluZCBwYWdlIHRhYmxlLCBh bmQgY2FjaGUgaW52YWxpZGF0aW9uKSBhbmQgdGhlIHZlbmRvcg0KPiA+IHNwZWNpZmljIGZvcm1h dCBpbmZvcm1hdGlvbiBmb3IgZmlyc3QgbGV2ZWwvc3RhZ2UgcGFnZSB0YWJsZSB0aGF0IHdpbGwg YmUNCj4gPiBib3VuZCB0by4NCj4gPg0KPiA+IFRoZSBuZXN0aW5nIGluZm8gaXMgYXZhaWxhYmxl IG9ubHkgYWZ0ZXIgdGhlIG5lc3RpbmcgaW9tbXUgdHlwZSBpcyBzZXQNCj4gPiBmb3IgYSBjb250 YWluZXIuIEN1cnJlbnQgaW1wbGVtZW50YXRpb24gaW1wb3NlcyBvbmUgbGltaXRhdGlvbiAtIG9u ZQ0KPiA+IG5lc3RpbmcgY29udGFpbmVyIH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