Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4578972ybl; Tue, 20 Aug 2019 14:21:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdMfRlNYxqyBSl7kBXKPckR34VWWFAMRKgGRlSG/8T+1XZbcolmAyBnSapUi63XbGFAjJ3 X-Received: by 2002:a62:ed10:: with SMTP id u16mr31959667pfh.179.1566336107970; Tue, 20 Aug 2019 14:21:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566336107; cv=pass; d=google.com; s=arc-20160816; b=kuzJWtlNEtscb2amVfHjyHlt003WMMpML+Wg89z3NGZhwMHl6Z9CZZ74pF4466ukBk p0xrsCc+Y2bqsfQ22FmNogVQkBlN7BR3vFuI+rtsEfk1+nsa0eWDziz5JeiKd5BrbF/T iikf7L1WtnZVDP1MCRuTPrIxpDiNEOg1qHmFEykOfVhYhGsSb0KjQNsc2ZtGBBgUgzfr vAsgotugp5Mw5GrJKPXOl8ylWPLyWx2l3dGNWsq5vpdahM4uHFfnNp7dM+aiEbCvYniI ddmtG2b+7gpdRLj0NOApWxtmpfK7QElJLd2ONJ1erD9iCsacA/zviy+36WZTlH2EfiDS vkFw== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=9pOeAZzvXzUvvfRo+vaIGMMWB2tK4f2bDWbGMZAkbj4=; b=BEMqD662UQBF3tE3dpMB0Ahd95zdf439Z8hfnhr1MGeQznh8u5tGuGEeGf4sR9wSnT a1NXveI9svA3c6cZU6jXEMFdmLp1tU+G9g705R0muSYA3vJ81dkHmM1Ybxx3mh9ZoI4Y 8IC1JxVppRMHh4lQH6eb42oEF529xkqb4LvQB82JFb76OG51vwgTc73vvW3ov9j4kAJw pDPwU5bahrA0zNWQeUaFBnnUq2iwBhhoTuWiS9BjqNS01eLy3NJ5SjYt089v0tTJQTPw 5irTFKQSuO1ymOCGYrceqM6tsMasxMpmQjFA4k+S1rvHs1LSu0IgZkRgneiHDvOfvyVE OClg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=gsb4hviy; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si12719650pgr.196.2019.08.20.14.21.31; Tue, 20 Aug 2019 14:21:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=gsb4hviy; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730906AbfHTVSw (ORCPT + 99 others); Tue, 20 Aug 2019 17:18:52 -0400 Received: from mail-eopbgr680046.outbound.protection.outlook.com ([40.107.68.46]:65409 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729900AbfHTVSt (ORCPT ); Tue, 20 Aug 2019 17:18:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AkGlmK6//3dQwCuMSJE7Jq/y/75l2Vr67NlKB0RmuVwiXyRmWc84v7/HdFN/2KqE3odHCDJYnTu4upJ85cVqXY4tpREZtzBlk+C+EiQHOB9Gq8nYE1hBwhOQKpOnOlYE2NrmFCZy6GTB9Zx/JNDo1QsSp9wAw/9OCCz2iunQG/5Cfwj7xmpkGTOD0a3/xH2DZRHnZWC5PQxj2tNoDFe6iDcMinx2nXSQyfnKkt+/2eP1ps61z8dVBP0OrBEDn0UjDDDwzv1JJUJ0s/06b9VpXxOAOLPfkmocvTjSUnX0tf97nX/EtpeTigzYiUBrvX8axUHRgWSXeqMM+8Yp/xrY7g== 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=9pOeAZzvXzUvvfRo+vaIGMMWB2tK4f2bDWbGMZAkbj4=; b=GHKE1Vq0FNiFfuLqZ0xCgLLanjwL2glxGoX4KQNp5CToWbLshvLbRI9Q3irABfHxLYvMaFuNbtisHDbrAMdXUxmY+dhvlgd1K+sPnHfbBFMaILPsespGl6W6ls8oO9uO46KzMUxn3ag628sP4kwXC1tmTmm7St44SrFbADYCG8tQ13LW32sxJA6rdSKs7BgGaQC8cERhc/hT/RpiOIc/5coPXe6FE8/parViwdBMqEvB1lcJXE2Ok1vYsoDKnzxhKUTGMmim+mVlYoiwLjYr9ENfih66v9vWtCkhbcXJqboc2zuiBN1/W8ygbTfJ07941pm6UJx60u7UZ0CzQqkZqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9pOeAZzvXzUvvfRo+vaIGMMWB2tK4f2bDWbGMZAkbj4=; b=gsb4hviy8akl6MaZ4G2T/ZE5wYMnzl3rwwUf3bBcLRUzJUE61pZb4QVvP8IjaOzBbtwg1EqcXPchgV3p3StiEAXc3fTOmnnc3CSETXRq4n3KWq3hLBYfFaN3jYwnBWT3fUHOjezRS18TLg7/FY62+mgrdcfJ4T8Cjo1YH/3WP5g= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3771.namprd12.prod.outlook.com (10.255.172.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Tue, 20 Aug 2019 21:18:04 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::585:2d27:6e06:f9b0]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::585:2d27:6e06:f9b0%7]) with mapi id 15.20.2178.018; Tue, 20 Aug 2019 21:18:04 +0000 From: "Lendacky, Thomas" To: Joerg Roedel CC: "corbet@lwn.net" , "tony.luck@intel.com" , "fenghua.yu@intel.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "x86@kernel.org" , "linux-doc@vger.kernel.org" , "linux-ia64@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "Suthikulpanit, Suravee" , Joerg Roedel Subject: Re: [PATCH 10/11] iommu: Disable passthrough mode when SME is active Thread-Topic: [PATCH 10/11] iommu: Disable passthrough mode when SME is active Thread-Index: AQHVVpE+vHJ4RbcyHUW5UFtccLiK3KcEjFuA Date: Tue, 20 Aug 2019 21:18:03 +0000 Message-ID: <82e00ce5-df71-5b71-cf5d-3de86aa0a1e8@amd.com> References: <20190819132256.14436-1-joro@8bytes.org> <20190819132256.14436-11-joro@8bytes.org> In-Reply-To: <20190819132256.14436-11-joro@8bytes.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0501CA0080.namprd05.prod.outlook.com (2603:10b6:803:22::18) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f004d402-54d1-4de3-4fd3-08d725b3e304 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3771; x-ms-traffictypediagnostic: DM6PR12MB3771: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:473; x-forefront-prvs: 013568035E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(376002)(136003)(396003)(366004)(346002)(199004)(189003)(6116002)(81166006)(66946007)(3846002)(66556008)(76176011)(7736002)(66066001)(64756008)(66476007)(8936002)(66446008)(36756003)(7416002)(305945005)(5660300002)(99286004)(52116002)(53936002)(446003)(186003)(6506007)(2906002)(6246003)(6512007)(386003)(26005)(478600001)(53546011)(102836004)(31696002)(81156014)(54906003)(11346002)(316002)(25786009)(86362001)(31686004)(14454004)(4326008)(8676002)(6436002)(6486002)(229853002)(14444005)(486006)(256004)(71200400001)(71190400001)(476003)(2616005)(6916009);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3771;H:DM6PR12MB3163.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BqXmetQpD5TrsV0PaAmUt4sBpkamhQA3hpnriw6uymaEVDmezxzfhc5FXUI4JENjffMqQrscRtnHjWlegc+M75Uw5jT8cYm6fr7iyeyLD3Xjvrm8qpw4ly4Hf/X7z93xl0uj9RdkwRgqALjnr/VRcrvSGJClIQczEOqzoKX8hVnu/zWAHLvQ637XlWhX3TCEIKcWv5VITZ8dL8AHZzPFrZRLS3AHN1NC8paRdw5OPHLFSvbRgLFgXTPTUUqSwPrriE8vDfsVDUtxNl17Q6es1c7Yu5NLM2rmT1UgSC5Ob9Gcv6OIqDcONgYpQLO83Uj9ADoJyiQMOW4I4MEPVoRHIm2/DZQe4OFz2eJYLnP18gzfFatVgEioXctXTZPeEjKeMJU8/RkrtOx4uu3Zlw0c6YscXGq1qTah9oQontizPdg= Content-Type: text/plain; charset="utf-8" Content-ID: <4AEFA134D88B2241B30C6ADF7C3A41A9@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f004d402-54d1-4de3-4fd3-08d725b3e304 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Aug 2019 21:18:04.0925 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Zl1PfZd5sWvw/Mq3OO1LgJuZOR//jvS2hWc9z/Y6GYFGvLoDOhA1IFC/UIAXYVWB8+SrSJEkSNQoqyMk+Ci1TQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3771 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gOC8xOS8xOSA4OjIyIEFNLCBKb2VyZyBSb2VkZWwgd3JvdGU6DQo+IEZyb206IEpvZXJnIFJv ZWRlbCA8anJvZWRlbEBzdXNlLmRlPg0KPiANCj4gVXNpbmcgUGFzc3Rocm91Z2ggbW9kZSB3aGVu IFNNRSBpcyBhY3R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