From patchwork Tue Jun 27 14:57:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3E885603D7 for ; Tue, 27 Jun 2017 14:59:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31A4827F97 for ; Tue, 27 Jun 2017 14:59:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2619D286AE; Tue, 27 Jun 2017 14:59:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 74BA828645 for ; Tue, 27 Jun 2017 14:59:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPrvy-0002vg-U2; Tue, 27 Jun 2017 14:57:42 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPrvx-0002ur-Cv for xen-devel@lists.xen.org; Tue, 27 Jun 2017 14:57:41 +0000 Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id 2D/42-02177-46272595; Tue, 27 Jun 2017 14:57:40 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSa2xLYRjud249lh6+tWSvYqwjLtGyiUVEEIv EdZZJ3P7Y6Rzrkd6cU1JBXDIaYza2CM0iu4nMTJP9QBC3ZItVyYy41WUaJMiITTPL/HA+p27/ nvd9bt+bfDxtDnFWXgoGJMUrum1cGuOaMWm+vUQpWj/zZH/WnKavjcxCtKT96hBViDawstfpC xazrsibJqP/minYF7rD7EXX08pRGs/gMhoSibcUGRCuRtD65DhNBjM+SEG8/IaxHA3jOTwdHv d+owi24GVw7PR3huCRuI6CxAlMDDTu5eD6/RhHCAqPhbqGM1oSr3VMgp76PLIW8BJIdhxABA/ DS+Ho+5s0wWZtX3Gr/1fXKJwJzQ/LWF2fDp2n3jIkhsZTIXJlBlnTeDxc6q39ZQU8AS4NDHDk CYBDCK507OP0zIkQ7u8y6qJx0H6vltHxSohFTnIkE3A2RMsKdO8ZCr7EIrQ+VHBQduE1pYumQ eWRxfo+YYT4jziVGlhoHAinHBcZSNZEOb3CDU2hbkrHS6E5XJ0SxVg41NqZsscxxJ7d5aqQPf zPreG/t4b/ubUO0efQFFVStkuKPTfP4VTkUlfAI8pue87M2Q6PpKpiqeQWnaqjxOdpQ9qv2GM woMsoXl1wG43mKdsooQWK1puHO32bdrhE1bVR2eaW1NtoMs/jhvb9q62M1+eVbCBc82uydEUq lYKbZbf2y34rgTfZRgqPCS2oftGjyqU6FUVZ1gwhSQhMCNc27x/b7//ZjcZZLQIyGAxmk19SP HLgf/4jyuCRzSJwPi3FJHsDf9I/asWUVsycLiTFAfEvZd2LfPNMh9PH7H7w6kMfMtjuHhuq2L x2t8By2S+GPj9/kTzfJn96Obz47M7KzkjDsirfrvpgc33W58bookd5XR3FmW0HJlOmFT9e5x4 dXN5kCPc0P124xwl4U93L/FBNDds1u2UWO6Jg3Z2tPSUXJ66am71g3/ON77rhiMUy6NgymM+u sTGqS8yZRiuq+BOuDMqrmgMAAA== X-Env-Sender: Thomas.Lendacky@amd.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1498575457!101726917!1 X-Originating-IP: [104.47.37.62] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19232 invoked from network); 27 Jun 2017 14:57:39 -0000 Received: from mail-cys01nam02on0062.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) (104.47.37.62) by server-3.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 14:57:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Bt5N2vY0DxMVJCDCr9ry6VpUDMzdRKpVPb0N3V7H1OY=; b=aP+0nFL0AoNd0feEeQgWBZJrPSOaGBA41NShFglBXdhHB0xKYtvhDTfgHTPKbLELJgsGChqMex9mxFJGwU646H5BdAG6t18ESt1tOtNRPwy3mtQtxwBgyc2phUSqtCsfK5APwFddW1vwqyn/BX0FyBVTT/YUetRM/RhyrEpcyyg= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by BN6PR12MB1139.namprd12.prod.outlook.com (10.168.226.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 14:57:29 +0000 From: Tom Lendacky To: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, xen-devel@lists.xen.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org Date: Tue, 27 Jun 2017 09:57:25 -0500 Message-ID: <20170627145725.15908.24612.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627145607.15908.26571.stgit@tlendack-t1.amdoffice.net> References: <20170627145607.15908.26571.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0063.namprd22.prod.outlook.com (10.171.142.25) To BN6PR12MB1139.namprd12.prod.outlook.com (10.168.226.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8013c49e-c7fe-454d-3a5d-08d4bd6cd77e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:BN6PR12MB1139; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1139; 3:63VoQmkk+HX5Z//v53gnPjm12TIRuFLhfLbHKHAskk2/rxBdM0/AQVGYowx7Sytibch2EVLnXL3kNhhWcWj3QYwI4l1/gsb9IbpFWl5J8fDuUcgzUO3YzV2Mga3SoJ5bGE0cHLWerCsTTKIX/EgRNlWuyvg4hUdFDKFCF+3jSmMP3lj9So1V1Ykq715IgyfiGX2m0pXYGWRoJXlxPWML3Tz7DvNptu5+L/et5NwlyOakBqPSqlhNctkHnw30db8MLtDoERf0nmu75PnAsqXH5A8VAh+1N5FVEKOOa6WKdEDZRYq4JyKkd7jgHkKAd68SIQGft/mu9vUcueoOcl8n8mk2YIgL20D5BsOw/oaEB02F/kWRmyvqsPSiSkSONlFLur/1UFvTgFTS4CFov4wZIkkYioibMYS4355Ko/voDi039CrotFK4oamDWp0OYnWgzqrentOt2E5DS/sLGYx4/H0TyvDi/nj3uBpwyFXlMIZpWKWvZryzDicNpSF3Wtls0L7pyQKuBSshL3bHbiIegK9ObYAqNSAgs2evFXhKvX85zNagi0UdZLIRTqTyxULa29sCUr8jM46ohkU1Cif8Z/FDnfdd/w8GQ03C7XTSVxUrAsFkTYCmSn5AnZgkwRa26hZG8YBmnxrK8XNcIMAa34mKK/t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kEWVQC4twt3sIo+qFfYSJa/Xy8zL5MWExCHYeCSnl+wISVYA+ZD3qKAUOPxarBKHIJJhHoeh+MJN5PMy4cGzMnVCwV+Md3CEJ5QhdT+AT3MVVJUl5peROj/M/NU+KTToyZFgesQW9+5FpOiqHJybzlQLY4x0UDXr8twXMDCu1gBMx2Sik4XllQLNtTOnq6kCSF2zremj8bvBebvqX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1139; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1139; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM5OzQ6aHRFNlhUNFIwV0FzQ3ZaNnlHazZnVnRnampa?= =?utf-8?B?NGdhVm9SUUJhSE1ZQjFYOTBNTElvUHl5a1FPY0t2NTNUSDhvTE5uaDdPL3Jt?= =?utf-8?B?WXVPbXJFZHk0L05FcFFYNXp0SVZCakpCK0VWempRL282WGQ1dXRxYUtpRDdF?= =?utf-8?B?SCtVS2V4N2t6NHpwUG5uQy9uUVBEL0dzakZkTDR6SGc0Y0EvT2pqV3AyeGRB?= =?utf-8?B?YlZWcXArV3JNZ2UvS054Vi9ZWWMwSkhySFFsU1FBdHp2cEdGS1dDdmU2WURp?= =?utf-8?B?QXZ0WHhxY0FWU29aSzJGNWlwSlY4RWNBbEZiR2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CemRJbzA2TnRwYjJsUjg2amxYRXF3WDNnR1AzaGQy?= =?utf-8?B?QURRa0VQMjZ1QVFDeEdUcjB3NHZoZlh0Ym8xcGRKNUdNdDcxdzdUdWNxR0lI?= =?utf-8?B?ODN4L01RTHRTMFBwY1dsZk81aGREcUZ4cDlENTVFblc4aVJseFJCQ25xSng5?= =?utf-8?B?UnJEUS96RXNmcldiWk16KzBydWxXejNTVXNoRHNyZmQyK1Q2YTdpbDVCK05G?= =?utf-8?B?bFBWUzhWaHp0alNwV0dQb29IM1ZFYnRPcUNuMTBnRXZjRGF5eDJRdExJL1B4?= =?utf-8?B?QW81V2MzcHJQbi9tUjVaNFR2Y2RUZmtaVzJiVmtsT2VxenFlWjhUN2ZabTZP?= =?utf-8?B?VWFzTDRuU1RMOTM0ZDBKNThWY0xSbWJLcWRLOXFEWVd3N0hjWXM5V1ViZkJk?= =?utf-8?B?MUxYbGE1RUlhcTlPdVUrNGR2KzBqdFFtclovVWhGVTM4bzR3YWZHS0tRWHFF?= =?utf-8?Q?Xl0L/w57A8OMIWqMQ=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39860400002)(39410400002)(39840400002)(39400400002)(39850400002)(39450400003)(2950100002)(6666003)(4326008)(81166006)(7416002)(7406005)(6506006)(1076002)(25786009)(6116002)(2906002)(3846002)(55016002)(54906002)(9686003)(53936002)(5660300001)(86362001)(76176999)(53416004)(72206003)(54356999)(230700001)(47776003)(189998001)(50986999)(110136004)(50466002)(7736002)(66066001)(103116003)(83506001)(8676002)(23676002)(4001350100001)(478600001)(42186005)(33646002)(38730400002)(97746001)(305945005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1139; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM5OzIzOjFra1g0UTZWNFVzW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VfQL+Ths3; 24:Y28SfysgfnhHGiBikocHNWZqZis9Z4huJb98jZikq8CGop4jwime/26MQu7gLTE3B2M4IZ5rwXuKryK4Jdlr0YmPHraz4t+LqM8msC/gKgs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1139; 7:5g7g4de+XCaHwH55pHJDEkKTO20VOd9m258gYb9qh2EqzlIM62WDC/4LwxYCQcO81aYMBlqp1DYvBMDdvdFmkP8ikSxFM2FdTtasIqf2mzsa+6a/HNwCzX7Ci5Q625zjM24N4uzaMpDiUwMxgUAUbeHmi9Zn+fcGh6x3jo/kT+BqPystbJUKjYQmIGji8BJGVdSI1/Wc0qB1IInn/0Z/BEEkosZhuR3D9xEeN7CUlzISmWVuHnZ2tQs5O+3AG5Jluv6+W7otXgkNnwO0xDusGUhrjef/a/tJHyB3R4ZSjwiR1NnjduyE4pPtyk5kL1riP20P1e+xQnRdXNATgtyU+uPQZtuFg6rxkq4ySgqNfZDVv2QTPtbhENF0ZUMs41Q966RsgetGe6HC2ZF8Ytv2RECqjbt8YO4c7WC64wP9Sj55Co0CljLa99XFQMugTey7l6sv5Fdi9BbbM2LtZfwna2X7IRiIDnVPZPpeIYZ3G4fkN3AaljZzeZEMZrM0d4jS22pf8c7ASMcLaeMsfb7mkJyjkaMv8JCco5AAO3DmEh77rull14U9/r1eXaeFg2elR6WjOCcffeUzqnbI9TdfKSN9NyQ/H5oH2a86i9RkOpLQ5oaWhetH33qxk0TDufv6QESsogT9S9D/UEBllL4E2hX7QQHjRYKo//6tnTft3LS6kX1C1ZNbc+wMF3DUYKJ9s3nugssMtwziGxjx98zUfq32Rnr1lAAJ0dT+pXgXTEluAilcIwY618OqkdSzf/uKG8FDl83p+pCNyYQKObY4RONTXtuLBCrhSPkOkwfM06I= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1139; 20:za3emgTiwqs5sw3+8ps9LjNHpk4pb7+sGa1n2z8Ok6T+bdpi4CDWYiopxYmAaLkyZaJgbEFRLrI4SgDQl3FogAf51B6sbG2oxkWowHNw/gMRTnrzhjeiK1ux8nw2GROqoFvLXLyFdOJrTtyKQBegwtxSPr2aC71Y20WPFg1HZJYDWVeL8CUmlSDSRmEiLn2qV/yx8oqduRLeLUpPAycXn2eP5z3xvuTw2/TjJXiR99AFTDYK8D1sfC26Mrifgpjf X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 14:57:29.0417 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1139 Cc: Brijesh Singh , Toshimitsu Kani , "Michael S. Tsirkin" , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Boris Ostrovsky , Jonathan Corbet , Joerg Roedel , Radim =?utf-8?b?S3LEjW3DocWZ?= , Larry Woodman , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Dmitry Vyukov , Juergen Gross , Paolo Bonzini Subject: [Xen-devel] [PATCH v8 07/38] x86/mm: Remove phys_to_virt() usage in ioremap() X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Currently there is a check if the address being mapped is in the ISA range (is_ISA_range()), and if it is, then phys_to_virt() is used to perform the mapping. When SME is active, the default is to add pagetable mappings with the encryption bit set unless specifically overridden. The resulting pagetable mapping from phys_to_virt() will result in a mapping that has the encryption bit set. With SME, the use of ioremap() is intended to generate pagetable mappings that do not have the encryption bit set through the use of the PAGE_KERNEL_IO protection value. Rather than special case the SME scenario, remove the ISA range check and usage of phys_to_virt() and have ISA range mappings continue through the remaining ioremap() path. Signed-off-by: Tom Lendacky --- arch/x86/mm/ioremap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 4c1b5fd..bfc3e2d 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -106,12 +107,6 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr, } /* - * Don't remap the low PCI/ISA area, it's always mapped.. - */ - if (is_ISA_range(phys_addr, last_addr)) - return (__force void __iomem *)phys_to_virt(phys_addr); - - /* * Don't allow anybody to remap normal RAM that we're using.. */ pfn = phys_addr >> PAGE_SHIFT;