Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp355395ybt; Wed, 8 Jul 2020 01:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/GHiqh3QuD5R7rSG0jxQeiyOlFhQryI69i2ZF2TsGsPVKmOiT/waXpPQ2cRdBRZGmEHNh X-Received: by 2002:a17:906:3c10:: with SMTP id h16mr50534939ejg.87.1594196816449; Wed, 08 Jul 2020 01:26:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594196816; cv=pass; d=google.com; s=arc-20160816; b=AGNxoUkTD4fHcyl+uPylw0oI+0/G1uzgp55BcGLGKK7Abp7YiPu1bytZTjEfyT2vQ4 n0CgU7WhaYUo+2jKWVi6UyKwXS6kQausqt/uOE3Y0e9s+bov+IkkeZIbhAQbwIgbc+WK 8/22H2tcxxI3P7oaRq7a+f8ktDnjBv4Fj+m+HF2lakxDE8O6DGTSd5/kdw/U36INoDhX E5VDXbdEHjo3/+3Zyuiv5JINWCFnhIq3R02IKcMQymYzJrgFv2WwR0DuZuQMsgPEfEqg jqN4YFpTRIIgBJsqHQ2jr+gkYLbTV63PgHeTqbCXSfwsAOoYW2ipRWo9VkpP68/clqEl AjoQ== 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=a2EwgJFRYruhtOGqjRBGUFgbcUCZvP39L4zSBk5l6co=; b=T32bJkH1vzsOjpzJRbNRBHwnqJ7brNbAq/5IZiVhFzlF2jC2+hHWEat1Hf/iJ1AQpg RhoYUToyEYXjPqbpyJjJqgd8GpzqCVwq4kiJmreMPNw7cOFBwj3XikDAIIdEPCgf/7zY vyUWcZTTqED2F1/W0cSh93Q3xyGmJruSJINiul47gpMZAC/0r2nZweJP5cYITZVO1hrB nfTModjna05M6T3qQNRU6nnDXJcmP8+G1383Y2owONkqzQg9Z/gPUpy//NSSpGX/f0UJ xDvo6Wlqjz2EyK/k5JutjBI7+ZOYYFU/RyaTGpaQ/JyZH5RHD6EdOh8UtVh9G+o6l7FV i0ng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=hXHnik2V; 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 dh14si16474063edb.591.2020.07.08.01.26.33; Wed, 08 Jul 2020 01:26:56 -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=hXHnik2V; 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 S1726795AbgGHII4 (ORCPT + 99 others); Wed, 8 Jul 2020 04:08:56 -0400 Received: from mga07.intel.com ([134.134.136.100]:11277 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbgGHIIz (ORCPT ); Wed, 8 Jul 2020 04:08:55 -0400 IronPort-SDR: d9rdTGCJkiDBhdJSC7csAkzMx0+Hnju9H283gCFuXo47S1b636VHM2lMw1xI0xcHUO4tOv9HfX 2c6S4/Xv5vZg== X-IronPort-AV: E=McAfee;i="6000,8403,9675"; a="212700021" X-IronPort-AV: E=Sophos;i="5.75,327,1589266800"; d="scan'208";a="212700021" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2020 01:08:51 -0700 IronPort-SDR: HqExt5Ydq/O2JVGcZl8NU9tduvZ3s/5NI5qHf6mALfhXEQdxZ4Zdzd0qtnjtPctqlY3tvLCzZX N1ZN5G/+xNeA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,327,1589266800"; d="scan'208";a="297647597" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga002.jf.intel.com with ESMTP; 08 Jul 2020 01:08:50 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 8 Jul 2020 01:08:50 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 8 Jul 2020 01:08:42 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 8 Jul 2020 01:08:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LzL/GSpR3NS4nC6bU0OYsiHOW4cZem33Y2s98HBshKqK1JK800BozaRlvAvU1Kkx8kXSr8FACsfp8qUmBf0ixyo7446pDe931i87PuDfIhSJB+C9VQY+1hbscslBLWYW1t67shJq1ctsKMrTQpBrE5uaq+2cyk9FHBl4UxYF3n0NXSAdiikxoWSCZNCEv7b8AT7Mo0skhPBAlrNa+BA4UgyvTyhmC94zl/9qczm9RsAALVI5adb/WwRi3ZD3PZUmYNoYl2TGFZCoCXUyi9TpbCaMeBBhCNvc58Q4sWtP39G8M7sgqBniXcF13kGdcyZs0s/Q6vToIIN3VLfp7KLfHw== 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=a2EwgJFRYruhtOGqjRBGUFgbcUCZvP39L4zSBk5l6co=; b=HF3X7SUJxaK3VmExW3cYJ2v8pk/sBqVyZZIlYNmlnZfxSJMlsUIor/4MaWm/jOJpkdnYUscvtBG0Fs1p19/PSN0GK+6/Is+SeOdMNSfhogy/ProX7aIc+Qpg+GlRNdxL2dn3NVQjT+ndhuVTcfFXwL7URon+9upclcbhkHjvS8J7CIeSaF7rrSMIHB3ZU7c5mheSnW4NOApB9QIFBahvNKORlLDe5qu8B0XQ157+NavL492PAM3bhHb0Or7JpLBrQ0SocYRDNQUgyso04TfcYxsvubrx1dRxW19GZVRXevzEu+sVXxhMHJw27057Hg4JmiKDIuZM3uj0UdiVjpQ/fA== 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=a2EwgJFRYruhtOGqjRBGUFgbcUCZvP39L4zSBk5l6co=; b=hXHnik2VNN2zcGj3+/PsFU4UtGcTYnJ+7/zmw520QpYPLKfim7OWhToli65JP25kn3d1qBY0YDD5rMlWteuVBr4iucsMKQ9617sg3ftSJ6YWWMyslnpYyxav7eTtp38J+Yj6VHy0ivkxmo1CJBT1ZJxqUy2CGJ1xwztnFnp9soA= Received: from DM5PR11MB1435.namprd11.prod.outlook.com (2603:10b6:4:7::18) by DM6PR11MB4530.namprd11.prod.outlook.com (2603:10b6:5:2a4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.22; Wed, 8 Jul 2020 08:08:40 +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.3174.021; Wed, 8 Jul 2020 08:08:40 +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/PlGyuXiKj6XuYAgAAkWACAABBDgIABSlsAgAF6DCA= Date: Wed, 8 Jul 2020 08:08:40 +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> <94b4e5d3-8d24-9a55-6bee-ed86f3846996@redhat.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: [117.169.230.114] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e54e2b05-dd4f-4980-2b5e-08d823161ffd x-ms-traffictypediagnostic: DM6PR11MB4530: 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:8882; x-forefront-prvs: 04583CED1A x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jICB7Yt7OF4AoPe8jBNCHe5nWMCRPjg4zDP4LZgSz4IAK5VG0x6DDi6Up5oCCa7xbCZCWo031R8I45jn44zREMQwKCPXv++qeaeOGb2/61yeeXtX2KMpMaKCJx6KRl74+yWhnmGZNzjXym7W0Iw0peiFSnw9TH04HjIFwnrAcTCp3m6DTXQaxda3WlcNPLZQAWyJW8PlT+6iVW4MKiMI0MEsAnxM6w7/Q/XVU4Ru7Vv5Q16QTIxMy0OPLnI5bZb6x53aEK/1RIAcW9Opi9nDjiupPsrrhDTUf9wA9yNXlyym0Rh525UP6vYTZUvRvD/Fi5JoKEojtTkzsYwhrz/TIRTYIZ5nIM9qSJL4guudTVg= 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)(39860400002)(396003)(376002)(136003)(346002)(366004)(54906003)(5660300002)(33656002)(71200400001)(478600001)(8676002)(966005)(8936002)(316002)(4326008)(110136005)(45080400002)(2906002)(64756008)(66946007)(76116006)(7416002)(52536014)(66556008)(66476007)(9686003)(66446008)(55016002)(26005)(186003)(7696005)(6506007)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: n5gIFVGpJXTrVpW7Z3F6R9qQkS0X69H0WLTATRaF5L6P4sGLQc4VjewVzx3rFF5/1yZX7+rYYRqLg3H2bStMf3L9jR6gysBOT1ZYPxRYCMD8HvkqKyiWkNOr2iNXmt/ESy1NSa9g/X3/AyocQUWYc3yn0NQcnbOgKRJaCFNwxiNK6RS8+/gmO2MboOXAP8ebAiN6fCjRGXu+fUn4Pmnm8dfd27SJdybERO8bW3LW8IWU3JTLvdlq8MIaLCFA/oWtnxgOlYYsVVfa/gGelKEnhWxC54pRwAKD52hkd64X+EVJABfM5BH/hM29RtSrChYiuAOR0284+f7FaNlcNBPQDdyuoJM+0lOxqQW8atQne2ShKfwSKtgKNLf+/MFfpxcK3/7BoaG/pIVupot+BH/DdEBYri0woZTv9Z/Y5fVZq95BqoL4CGlKfRSrUa+uHruiR1MNKaxFGT184tH0pkdME1a7ngMUdLdhwdD2dqjqDjMvsdGzcoJCyAkfTJGZ+YyO 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: e54e2b05-dd4f-4980-2b5e-08d823161ffd X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2020 08:08:40.4473 (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: SzRW2T3KIwwXNxKeRj1mgOO3AjLBwAGqM4TNVqY+Pa9atRZMEms8VfEbmar1E3lfO6I/ear1FiuzGneu+GoZGQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4530 X-OriginatorOrg: intel.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQWxleCwNCg0KRXJpYyBhc2tlZCBpZiB3ZSB3aWxsIHRvIGhhdmUgZGF0YSBzdHJjdXQgb3Ro ZXIgdGhhbiBz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