From patchwork Tue Jun 27 15:08:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812379 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 7309560351 for ; Tue, 27 Jun 2017 15:10:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66ACC28591 for ; Tue, 27 Jun 2017 15:10:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AA9128589; Tue, 27 Jun 2017 15:10: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 CD93228589 for ; Tue, 27 Jun 2017 15:10: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 1dPs6e-0007gM-DN; Tue, 27 Jun 2017 15:08:44 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs6c-0007fU-OV for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:08:42 +0000 Received: from [85.158.139.211] by server-4.bemta-5.messagelabs.com id A0/79-02184-9F472595; Tue, 27 Jun 2017 15:08:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAA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.com!1498576119!105291128!1 X-Originating-IP: [104.47.41.87] 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 38929 invoked from network); 27 Jun 2017 15:08:40 -0000 Received: from mail-dm3nam03on0087.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.87) by server-4.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:08:40 -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=cqJk7ubnz5Wk45KvAZ96Cgabxh5Mi7JHKz/l10y4aIMi0migVMzmtoHPPt/eib+rciT5c0zY/DaVzWURqt9mLjD/IBeIX991YuS0soU+AERWWT+tlGNmTDyDlcDK0Uiphb/i9fHZLdyxcHC7JhG77Zxhc2R9KzAF4Dar8codsWQ= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) 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 15:08:37 +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 10:08:35 -0500 Message-ID: <20170627150835.17428.60833.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627150718.17428.81813.stgit@tlendack-t1.amdoffice.net> References: <20170627150718.17428.81813.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: DM3PR12CA0047.namprd12.prod.outlook.com (10.161.151.15) To CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8172b404-d326-46b7-2f21-08d4bd6e63e8 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:CY4PR12MB1141; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 3:YCFVMisiDZiHKsRpg+nLdufGKbMMxmb0mdUyeihXXPARLAJKU4d7/qhq2pU0NEVLCaxmjrT5olX0X2+E43fB91wK6RQAhfHlxHhxUx1LqqVHNcbu1Y4VVpgbAqK4LXGr0zxJWQuxAUtGFl/gxd2UJg2lSVxYUBYw/YAU62o2RbMCl6i7CBwo9Xeqjjo1ecvH+AHSyYJDVSsAjvx+7hc0aOr6c64SeIbNPirArJLystGIpBIkyul/+Q8wW3S1FqMvuVtPWhBeE234bGOcA5iY/cOeVS0i+f23FV4khsT3ADsCm+5Kud/fRHUVcpYVzVZZA+cIpBwR2Xz0LiVh5X6m1zlKkc6U+HuLnjtYJHYrBH9m22yDDMiaWYkUUlA4kkY3aFDAdAdf7Xxdt1gbLNlId/8ot3VQyg25BK/lIa/Q9VFFa6lyZ5qilzSRUnlvwL/UqMrAAQ/hUyulCZvCl8QdVSikmGgEvkBSKi2nAEqbYOrwpdajrlxOu5DMHcITlMBWCIuH65bg64u9s4AEe/DEHt3M+37/XW5hr6R8q84mlvf6c66TI2J+NHS86TlxOyhboCBF9TP+6c/2iyNmJycPEttwh6U+lJOP3N8XYIgrPumUjjMpC687jdOY2Pfyz4+LW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hXYLYFECE4JOaAEoz+ADK8= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 31:vvdJRYSGcAkTc9BiBgI4fWF8wLOnHm6dQ9vSsp7z9idNNWIYG6zM1z6x4N/x3YgFqfkVGj4ycsCY7ggYjR4vLYNyZQP2yHryQpXBeE2il7AqANdsY80HVnxuFT5cu5PcV98aHtTep/0RuyDIJHBxpxCj3T4txYF6DM6bztaAQPTOF5IU0yDoPWCxZJThHoSpIpN+hQu26HxHo3l8yfe+MyeBT3e853PWAAi9ZVHEz9tqcshxphdZ0mOvM7WJ0P5lpv0tkvlHuU7h6Hdq/e670xoZdQoOKnqyo9Evyjvs38mF/2fZm0MLiCCxhnucYmwckGKmZlWG8UGjClG/GhHJdVw/HPWOdj8oWWxhYh/uw4ASZs/0MzGTVwXTow7PEKVwozvjTr6ugXBP0+/gR9b4wjL8PjLDchmWBDmkxK+kJ17cjVS79cc+QBeat2uPHvJwDInrqkH1Oay4fOO+WnTkSbkA3VaQniBSgxwBqnkicNjWb/1bD2vTv/A/lFNnf4ElWbsY/wHP+HU9C+6CCQUOVaYQvcA+gqWu6CSM2+n5ekCwkjoq702xV9mTX+CtImmIMPTIDvpGFn94hsJcJiWtQwbgQldwzJ49wpoYutW6x27UrsTvoyt+qx/R3kWWLerEmBngsqdfkighOrxl5ezpjidG3BrUvoG3/X6l3xz+orE= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:83FZgN0Z/msaTsYZ4hzdjhVXrEMXXdmS605h51rPbgCNnKzcEUwoUFS/FFql51KXKc73Ob28T9Y1CQ6L31iRfY5cLttCH0fN0p5F/68i/btrrRPh2NW7e9MEz5RzWsK3YkXavtmpLErLTApYp7RsFcGdgTxxYkHB53QRksKp39frfNgn9N8+Y9rJ8sudGCYSknm9IPOtpZQujVa+UopYvjZefEbkhXY64av4Dt5srvM+KWMM4wb3J2v6HNm6zsER7br0cCnmcKXI4vVROCG87y1GDbd57mN1+7m/kuJOTFEfghET5fhbHAD/5uB/4ieWUwi1hl22ItLnuXuhRizZegMKlwo/7M0Yo9NdUfuX4TAXPfrm9l4bOmAeqo9FMdDmF4UARuNoXLx71aVTIFe4Or1VuMIlDsRAcw3VI/WnBvbU9rAy2T027suPGjPThxRHgoCLh7zJ6grNIlmMZrj3bhoUETWuHZyXOF6WhfA0kOsy0GE2OXz3kfVqRGMQpTyx 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)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1141; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1141; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQxOzQ6VDJEZDNMZ1NWNFNWNytpOFBLa0xKWjJFOHY3?= =?utf-8?B?dGg4ZHJZVFZ2RmFEYmhsbnVycGdWKzBoalBPVnFYSXRmZ3ZpZk11QzVRWWV1?= =?utf-8?B?eTRkdFZNY1A0cVFKSjJsWENrK25Vc08yY2Z5VHlaMXRSTEVyQ3pQQVlwanVR?= =?utf-8?B?S21tY2x0UmZ4eHQwYWpUUTlWbjg2RzN4UzFwNXB6ZGFFL3hFTUt5MC9XdGl5?= =?utf-8?B?cWNXQU9nUjc0b05VRXBWQkdpOFhyY24rSUN1aVJzS2ZzVEFyZlBkRHN5UVEv?= =?utf-8?B?TFVsUVJJMTNIZnY2aWxkYVpyeGhjSm1jaE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ejhzQXRxR2l3dThSMDU3enJBL05uRVVZMVhGTmt2d3FoMysv?= =?utf-8?B?ZGl4SDVCdzJTZjE0WitDVlhzNm9JanFlR2RnV1lXR05aTVU4WDFiS09WRmcx?= =?utf-8?B?eVpzZ3JRVHlhbFRyUDhDWHJHdHpHdkRGNEZvT0hJN040NVlETENGWHZYeUx1?= =?utf-8?B?cFp0YzBxUHorTDE5a3pRWUdXOXUxWUJIL1ZHVzRFS2hseVlIQ3R4Nm1QUlZY?= =?utf-8?B?ZGpqNGJ3ZzhObWhibmd2U3FqbW5pS3pMcnpWdWd1Tlo2dEp3TlRGaHc5YWph?= =?utf-8?B?Vk00VWQvTk9tZnNYcUh1ZG9rVkVUQnBkV0FCdk9Qd3RXVjIyRE41K25pRXZu?= =?utf-8?B?ME0rY0JJWkx0MCtzVno1OXQ0SE9IN3Z3TC9GamxHZ0tTakI2eXAwcUJROW9h?= =?utf-8?B?ekVveitVNUs2RlJvWnVXeDNJa2NtY29SSU9XSEtobkF2UndhaTZsQnRjZE5N?= =?utf-8?Q?n9h58Fsw/UpAlQqoo=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39400400002)(39450400003)(39410400002)(39850400002)(39860400002)(103116003)(53416004)(97746001)(47776003)(42186005)(66066001)(50466002)(72206003)(81166006)(33646002)(7736002)(86362001)(7416002)(7406005)(6506006)(5660300001)(305945005)(23676002)(8676002)(53936002)(9686003)(55016002)(2950100002)(6116002)(54906002)(110136004)(38730400002)(76176999)(2906002)(54356999)(83506001)(3846002)(50986999)(4326008)(1076002)(25786009)(189998001)(230700001)(4001350100001)(478600001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1141; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQxOzIzOnRnYkR3dnMzN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vCUDlUC9B2QHR6OjRkFT5o9n6; 24:Pag31AewH1qjrlhpLUQoMkmB9IeoJtnrA6CZu/QkERgTQGm7zgus0ywVmSmiF2F3k11Ztc8IFYBB2REDSzKZK+pS1HlFSEd4bV50O1ToGK8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 7:m7+DP8H4T8wIZuNTVjjc16FwSBkU108tJyDx1fDj60XNh17w8rdy5hfejhyeB5VTExGclhdeTHJTd7FG13e4v9F7IngxYTTzmKmzyYQaMoecSK4QdI3CqHYlw6ML54n6C3POejA+typ7Ci96w7m0u4BcQtjw8W01b2ETzgidzXFUpaKi4OD2Gf0cCHR+Me56AqvPtiEfyHPXn4hIgD26KDUHXz/CbqdhCyH5ncO0wJgp3Tx6oPh67RHoGyWv6aH34STvzr1v1cCJD8yUG8osPaucx5IqI+rkzmA2+DJVUeVITMQQJng5wSIUoFmEVzSRPa9lwAgjvdnoLi4+MJhqfbYsm54/KWOcW7GyYyesODwOz4npzUzq2rBUewKyuS6cSJZho/3cED6QcYFWSIAHZCNtvNLu4/QaaBKCZgM2sm6EltSlL+XJJmUW0AL7uqrc9VBi+Y18ftTies6Z6K1DG+XYOhVuXjfQ3JGaX48aOzZWfAu5YDlFii2MCHrS6rskkLue09dj9AFA0pAjZv97x/+Upm+zzj5n0MNESWSD595+3vA6cSwnx7PtSgh0ss5W88B2TPrun1o78UaV7lEraVfAxI+skWpnLG/Hhf2MysYDaaMqOYO+rj5SeGOBRozgcOUDn2I9SD8Lu266GpeGln284smY7rdYXmT3fbuXprKfmLqnDa4dvaA8Wyz/69bMrvajtEiI4MtRBEKQw4aNfpF8og+0+lRcZV/kOeM5RTXYyiUNv/wbs9Hhee7bEtP+B8j5A57rBdazJ5mClNgdu6BrsQyGvDx0fSyeIiKcv/4= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:/joQExBBSmonfiQfb8bew5dtgd6ry7zbHiw99nQM7WQAwwZpbnVa3CUddo+6nliBw7ao2+S4UHEcjG6hNmItwf2r9qSaOu6+pxk6ZPJF3QmcsUgw3t6uIGAZzcCvqbe6sDzpZ2QCYgKil5fQ+GOR7JvfMGcb1hjInNxWl9w7kylyjrD2ikPvy3cpXn/GdjUV3zjhau8AN+iLKS8wYprP6wBUmFhfrxWQu2oYaMS96P/6qezzRWJaOBx4KeDSToTv X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:08:37.3014 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1141 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 RESEND 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;