From patchwork Fri Jul 7 13:39:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9830327 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 204D460352 for ; Fri, 7 Jul 2017 13:41:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1839F28564 for ; Fri, 7 Jul 2017 13:41:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C8892868B; Fri, 7 Jul 2017 13:41:44 +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 9380A28564 for ; Fri, 7 Jul 2017 13:41:42 +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 1dTTTx-0002fH-79; Fri, 07 Jul 2017 13:39:41 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTTTv-0002eJ-FG for xen-devel@lists.xen.org; Fri, 07 Jul 2017 13:39:39 +0000 Received: from [85.158.143.35] by server-9.bemta-6.messagelabs.com id 10/8A-03406-A1F8F595; Fri, 07 Jul 2017 13:39:38 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjk+JIrShJLcpLzFFi42LJ0FeN0JXsj48 0eHJD0WLJx8UsDoweR3f/ZgpgjGLNzEvKr0hgzVj/cAl7wR6eik/tJ1gaGPdxdTFycbAItDBL PP38kRnEYRSYzCix9vokIIeTQ0ighUni1HJWEJtNQEfi2tsvTCC2sICXxJGnb8HiIgILmCQeT RMAaWYWeMsmse/cGTaQBJOAjMSCRUvBBrEIqEq0X+kHa+YV8JBYO+UeC4jNCWTvWfOJHWKZu8 TP44vAekUF5CRWXm5hhagXlDg58wlQPQfQAk2J9bv0QcLMAvIS29/OARsvIaAgsf37dzaQGyQ E2hgl7r/azwgxU0Vi1ucL7BBFshJHz85hgbB9JX7uamIEmSkhoCxxqsUPovcgk8Trbx0sEM5Z Nok3T3ZBNWhJ/H75ggki8YhdYumfbVCJR6wSax7oQ9jbWCR6DmRD2DkS0+bugTrPU2LlrMnME M23WSUWrn8JNemtgMTbxe9ZJzDqzkLy6iyEV2cheXUBI/MqRo3i1KKy1CJdIwu9pKLM9IyS3M TMHF1DAzO93NTi4sT01JzEpGK95PzcTYzARMEABDsYz68NPMQoycGkJMr7xic+UogvKT+lMiO xOCO+qDQntfgQozoHh8Cio03BUix5+XmpShK8mn1AZYJFqempFWmZOcBEBlMpwcGjJMLr3gGU 5i0uSMwtzkyHSJ1iVJQS533dC5QQAElklObBtcGS5yVGWSlhXkagm4R4ClKLcjNLUOVfMYpzM CoJ83b0AE3hycwrgZv+CmgxE9BixcYYkMUliQgpqQbGnvjORcunbq7u2FnuVnt/1fLaRU73e7 fL5n9R485/PZUhpCZ9/plFPrwyYbeU/H+dZm8J1Nh6m/HW6owfvC7GPysU339r1Li92+Gl+Jk CnZec070XHojqWZn8SyW65/wl1ZM9VyI+mWh9PJ1uY7NZ8U/E3ev3pUuj6v8ZTxI/YTQjuF+c kSVYiaU4I9FQi7moOBEAViOgEJkDAAA= X-Env-Sender: Thomas.Lendacky@amd.com X-Msg-Ref: server-5.tower-21.messagelabs.com!1499434776!64200424!1 X-Originating-IP: [104.47.37.88] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26849 invoked from network); 7 Jul 2017 13:39:37 -0000 Received: from mail-cys01nam02on0088.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) (104.47.37.88) by server-5.tower-21.messagelabs.com with AES256-SHA256 encrypted SMTP; 7 Jul 2017 13:39:37 -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=eesWm0hKxzLyGeO+PKeAG26EpdZKjMpWryXJFWtYaZyrVUEqwge0l9Wi2ubAxXOfUBy7RZYLT2Jwj+uIphsKHJqf2MIPV2yOtgXSmZap7pAmjBLT64WQeLJcKWy73uOLbI2Kgy9kFMJXtQL5/Lsg2b1eehuYSRijvJr2UINtlv8= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by MWHPR12MB1151.namprd12.prod.outlook.com (10.169.204.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Fri, 7 Jul 2017 13:39: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: Fri, 07 Jul 2017 08:39:26 -0500 Message-ID: <20170707133925.29711.39301.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170707133804.29711.1616.stgit@tlendack-t1.amdoffice.net> References: <20170707133804.29711.1616.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: DM5PR12CA0055.namprd12.prod.outlook.com (10.175.83.145) To MWHPR12MB1151.namprd12.prod.outlook.com (10.169.204.15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 851a9e7a-b241-46a3-4640-08d4c53d98a9 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)(300000506095)(300135500095); SRVR:MWHPR12MB1151; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1151; 3:8VFmy1XIg2tZUGE9pQConTFJAJ75kx2N7+Hk8+SOi8nGnxrucsS6btLxFN90oQ9hSbBFPHUvHFZOQZqbSpcOg+auiroxeWEheMV2ovy91JTRoBE55aeA+NPkySNzb4xDPnG6om69vdqChDIuvNo3ytuAGXxcQ6yrg3I0fltmSKoEc5npRywVIX4+LSEAAPU3OKJKulkvirUi+0WChshIdSzHMDJSwogPjtK9u4iGGRb61Mc1f4NEyfANNlS7dM4qYtEB9OMSJ2/36NCvVOK4iv7qw8gcG8UlDt2/5ae2/YznXctvUYZMlbcUIJp+RoX+UmWEYmO5DrZM6SYTb46/I6C9VX7YUsi7O9XYJGqLjhbby65r4if32KIVDKy+UYw0fqO+21f1UNmJ4Ki6u7IU6OcNpfrHbMrVG2VXKVH+FhdrmUCfufvLe5cUzE5lcGoGfZuJLX8XDZuSaUFSDRbDz4vKNVuIJPVtIejSEQZm9Aj2wZPPIoa28P5UflstCdlOpgEx5iJbq98wJg6vCvGy42ocD9o5RsPKTT4LtBsQ8cpyvUialBukPGXKp0VtQfiJK8RZHG9PDAXjbwPbuKq67qFjWvh56lr33aaqcJEw+kCLISoijSSRTTbL0pGPKd5q0TcW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YQXfCxyEHV51Euxevfp5tYbHiRgqSZDjMO8nC8LC4ekpiTnkLuFzDisBOgV7l67CdJnNH453QsxtNDgsI4AxkE+NYm0Ep7SXyGCOhOy1fMdL4YdEkP0ZSS+UcIo09DbDCGj1r20oLJOn61R6kzDidoRYloeA3z4o1kS9F8TNCCpARbdtPfz5Qu/x41joYu0aeV8HAYrVfpW+NKxdGRL8BMojUNEyppULK27nAfd1o5gylqxiOEWveukeu0F3xvxq9GyAr7trovV2JHxbQyPUefH 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)(8121501046)(2017060910064)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR12MB1151; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR12MB1151; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjEyTUIxMTUxOzQ6TVNBdnl0VWVLMkpiR1JUWHVOZ2FWMzIzS283?= =?utf-8?B?UTJTUXJLZkRnRzE5bFVleml1WDBCc0ROd2U0UDZUTkpOV2xmUE9RSjZwd1pW?= =?utf-8?B?ZEpSeWVkelJwWjlqQWt4ZW5Lamt6TmhRRXd4UXl6RmVuRkl1aDRJVXdXZThk?= =?utf-8?B?K3ROR05FRFFPQzdzZ0w2Y0lBY0ZjYkZZQVd5aGRBSDZRelVJUVZjTzdLVy9z?= =?utf-8?B?a3ord3dZci8vOWRvZWk2S3M2UGtUaldHTGxldG5lM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vV0MrZnZ6WVZmY2hJN2pDQ0dHdFFqUnVWR2x6S1ZX?= =?utf-8?B?NWxwQzRBL0hVUG5zVlpGNUoxanBHSkVLS1l4aGRwM0ZiYzRWTUJxd1RNdWNr?= =?utf-8?B?b3pXbDlxR05HNk9EakFWQTh2YXNZUFFuZ0FOdEpqMmhkUGl5WHNPOVowZTZG?= =?utf-8?B?VzlITm5XM0NKbmg5aFFxaFU0V0RtZDkrcW1QMmxscVQyMm1CUE5MUVBkREt2?= =?utf-8?B?RnZvSFJzSzB3WlV5WnF6YXp6NFNGOGZZZHJBTko4c095NkNHZVZmMHdzTXJk?= =?utf-8?B?ZkxQUEg4N05oMGFKNWx1VEU4TnNRcUtUUEFhWFFNN2JHR251Z0lnUExReEti?= =?utf-8?B?bDRCaGhaeDUyMlZidTJzRTVkOHI3UTAraVRrM3M5T2tRSnpDcGpuekQ1cUc0?= =?utf-8?B?YWdLYVllK1FyNy9QS0xzRHcxZ0lnenFEZ29rTURITHVHS1h3YUNrZGZaMmpX?= =?utf-8?B?dVpCWHhzdFBsdWo2QWVWUXZHV0VaWFRkVUd3MHhRRFh1dFI3Kzg0dWMrY2F5?= =?utf-8?Q?EW6UBHMFji/HdP1DwqF/N2E9X9G287iJPEHVlL?= X-Forefront-PRVS: 0361212EA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39860400002)(39850400002)(39400400002)(39410400002)(39450400003)(2950100002)(6666003)(50986999)(76176999)(103116003)(54356999)(189998001)(23676002)(54906002)(2906002)(33646002)(7736002)(81166006)(55016002)(9686003)(6506006)(8676002)(83506001)(50466002)(7416002)(25786009)(7406005)(53936002)(3846002)(1076002)(66066001)(38730400002)(47776003)(110136004)(305945005)(230700001)(72206003)(86362001)(4326008)(6116002)(5660300001)(53416004)(97746001)(478600001)(42186005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1151; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; M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PcWGKGMoSOoHK0JS74Zo3zq2HLarGCeUS0PlI113e7O/cKsjg+; 24:AWXCje9xk9W002yga/C+IZD6/0/2LTqkiAazFbOyO0I7MVmXzj0Eid0EZMw6K0woDZg1P934tDxIRd1+0owZK8JR6T3W68MR0QffyzZ01MU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1151; 7:vY2gHZWvnBj8gkWhu2iGMtAYqrdpojPRmr5GvhhMD7anTdzQMvpvLjS8tjIu/8f9uYRfEsL89nGAVX7tGjRKy76nfeedKESQcZd0KU9xxA/Ap25eI4bD4r14RYZ2pSulwwak7BJ3ywoyToVkDmMRMuC1GZpf2IHiB52GBdgy4YCF+cyLTRadkax7QNWo225ZnGN1f9h4Cb52uzMLzamkJCj7uIzmaSCqCvxfCW062SiqKNRg+bDIl328xQ5idKICXljuvhensWCjDY9tBm9QOYRONR8h5byqbGq7VvdOx0AO8FKxcKvMENp/+7orEPD6ZdUrqny7I6Kc4m5PBSTsrnYpp7BbU8y3ehS3koYT1ik/QSOUlb7XgvnX//D9cYtrX5G1JZI0Kgk9JBKTkT2GFktLLD2tPPEBRG7pQ6Igch4cR5yHJpbqfDp/tRg59eDpHU7aM2EEYh5XBonzoJ24aYq5UEe9Tx9Bbe9ejaA4NY1qFxgbh1+hJQuO1kfcnjb+72nNqyJa52BBs2MAqWQnGJccX2ND7H2mu9Gpe+QfuJuncBnYUR0MiN9gy6PnlbazYT3TOk+QcV+QI/RcLdGVt64c5aO+eCV9UxPkCurL2U54aQr3bvyBXmnWa1UeuFLb0U8M+DZfndYxz6QE78swRq2DbHmY9qpEE63iR+uOP9FiZXNXmCldeuQNdslXP3Od/fYuSNHzrGq36dNqPZGqWmByKiA212N7/jl4ZP5/0g8IezGbXBB+HnKzoqtoP1ccDKZoS9ar3oyXI/qYW6Iscekga+Nm2kqYGJm3xt7t17M= X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1151; 20:9zCN4XDNSFeihM0dCdJU4PUcamXH5R/msM11S2IFodUwiEM4eVOYxiQVdrmyJyVDuTRT4RzpHikWTly0LKyjc2pn323bY7CiEovMSUzsapsKb9JplmluV4bvheCUxODgrkOF50Kv+3xNTfrC30mbnNj1MIcIj03RhHo9C7l/fCTWz1fLalyLgndCpewdWAS1VWApiP66WjPmqWdJuEnuUFwLAPAIDmwGaI9V4fIhk3Tvm1ZHUtVeZp/uiJTbsWWV X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2017 13:39:29.0052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1151 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 v9 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;