From patchwork Fri Jun 16 18:51:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9793227 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 3B5E160325 for ; Fri, 16 Jun 2017 18:53:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F28E2865B for ; Fri, 16 Jun 2017 18:53:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2292128670; Fri, 16 Jun 2017 18:53:30 +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 0C1442865B for ; Fri, 16 Jun 2017 18:53:29 +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 1dLwKy-0001Tx-9F; Fri, 16 Jun 2017 18:51:16 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwKw-0001T1-Dl for xen-devel@lists.xen.org; Fri, 16 Jun 2017 18:51:14 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id FF/B0-03920-1A824495; Fri, 16 Jun 2017 18:51:13 +0000 X-Brightmail-Tracker: H4sIAAAA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server-14.tower-27.messagelabs.com!1497639071!95649095!1 X-Originating-IP: [104.47.42.80] 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 46697 invoked from network); 16 Jun 2017 18:51:12 -0000 Received: from mail-by2nam03on0080.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) (104.47.42.80) by server-14.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 16 Jun 2017 18:51:12 -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=cda9BLWh35yZ7ZN7jT/8zjy4yLcJgfh7w5D3NeW//ik=; b=uuVbiYQnEtjq5DFXQgwGWuRbnOEFUm+AMEIKkrOK/WtHFDcPHqY1EM8Gwz9+Hh46MZX858PXF54m/i6eSJoNWmN+lVlTYmFvdRJYIKnSsw3lmC0FLXPnwjzZAPOeuKMvR2LSlNSwiDfLJZ5qeXtpwhrUnqMYXL4RiMI6OHNO0xo= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by DM5PR12MB1145.namprd12.prod.outlook.com (10.168.236.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 16 Jun 2017 18:51:07 +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, 16 Jun 2017 13:51:04 -0500 Message-ID: <20170616185104.18967.7867.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170616184947.18967.84890.stgit@tlendack-t1.amdoffice.net> References: <20170616184947.18967.84890.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: BN6PR1701CA0001.namprd17.prod.outlook.com (10.172.26.139) To DM5PR12MB1145.namprd12.prod.outlook.com (10.168.236.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR12MB1145: X-MS-Office365-Filtering-Correlation-Id: 05b3e376-baa6-468e-e579-08d4b4e8a74c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:DM5PR12MB1145; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1145; 3:IZgmuigtvMDri3FA0cHbC3yShTlHd7/PaqfT1bgzGsQ6G1vzERZYVWfKeCw2RKgOtFsmRF1cHWyx3YqA4YgzB8fxS+qJ4XyOBr55weWxtpaOcGjXUFkvk8XgRUwNhCoh6BrBru1txtTxTI3uwbcYe/7bq3fS/Icuq3icH7mTPM1MbRDOcW3XnlnTP5EZtSg4vUBgpU78O9sXdKmv82PJNXAKPnJsN5m2cJtNJucWLzq+X38pV0zGvxvQM2mnDcFk9hvqtK8IBBkqvsOM8JytkWtPQwttioSZwjyAGG99FA8oLlFflfNHHqy4n6JOwV4R+Ui1NDQnHofIacpqHA6jG2WLx/P8igm5bkEou+UZxow=; 25:YruntENrLDyOIX+n5KUgvNSvm5MPYwJjfDiWcjlQG3j+uzaCqEUkh7bQTOgVELJigVgarGh/0X/2g23jPFsg6BrUiAK9O/psM4e4M9rJObpHnfbIPXj1h5sWhgXSmFcIS/lFRFFQjf7S6KtItI7sXcuLddXKPieFVbhD6mhNXFkAvw8CUmJzoyCPTeULOFUa6D1NtsE3NKDQzXH92PpatYAmasiPUTGyV0qnbg0ASFg91iZY7HfpM5Qi882XC/BWdg3GUQBLqX/dhEP/tT80DC1od7ia9Y+BaJHoUh+xXifZDC5AeUphvm7VV8Ic4RGwj3ZClCMuGxHjx1AI72aLZLK1LlAu18+puomPOoTTREN5uUv4GM57cbp4Rwb6dt7iASvl+B3GBz12iv8wTDZSRAg0DbZbJ50s9GUYt7DUYRjTtahCHEts7WNFDf/jjux8jnf8FYCX601CHTdCKyLe9VF0ndtvilCUe1fduYdVCu4= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1145; 31:ZLu10TDg2XOqH49rdT3Ck7USVIr0Bcx98LX4y+RdyYWs/s04isXFbWOqcx2TTO17ccVxDXWGAro8l6il8xgoCmrTakPOQwNC0ZR4MmUiQc0CPs+VUkiYtbBwGuKIfWZB8EgiksfXhupURuupxZHmrB5Jle/fTMloyriyrqZwciWuT2LC46sMKSY06CJ9V54FSMbX05FbAkirZg2JUoanRLbmMGTxDfQKw/gnr7NrR08=; 20:u+d50gd/zkGU7DVrGfbwoW4BQLpu+c+AQi7f3PD/mSC9xGgPbEWGB8Pzjf2KC16OwJNsIGwqKfCLZyBVYhDJ0VTSyBrhVJmzpOKCMqMeeN8AmyoO6trZiKXsuQnBlcrHQp+0q8MMWv7WTLhUkw0S0uFOj7Wa72s2UjM28UhrwkVBENSgTNYAgA3G9/Dv8/wC4DqoZ4BBaS834BJuoDkShbNVc8EclvEurD+mUmVVRnv9xv/8+gIBoTDris2woxEbzTXlgxyt0+GSRxK/OE+RucCAq3mkYxgFviYDicZOQWcIZvDPgaavJHf9Zh3R0rFLtTcPa/J034wmyFCWnbfCdNRqyDBmSI67h22+WkuM29YIC6qWA+pmfaDh14qZLY7XXd/I6cgTvM7CYd86z50DNAa8fpWzZbEp7Ku90H466cacgzh+Qqeb4IOmbXhp3M2UPCC/PqGTD2T78GYt8+dMA9zBeJ1kfPeO+L9I5YM5KNO+VreA3Q+HOcTgp3eAqdhH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123558100)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1145; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1145; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ1OzQ6SVdBNGgzbFVxSVdZTmc5UmVMdlBGZ3lrdjRn?= =?utf-8?B?U2N2Skt2NFlnOFpzNjZIVkdOeThsZU5JSWxvUkNyUUh5em56NHgyK1FqMkVS?= =?utf-8?B?ZE1TRUFBQWIvU1pDMzRwYWhwNHUyQ0FRUWhtZ3ptV0V5Nis4NUp2RDUxVm8w?= =?utf-8?B?NlYzdnZqekxqV2VCQnpiYUNNS3NjWjlkZTZZY3ZpWWEwOW5WYWNZdmhjeFdK?= =?utf-8?B?MFovT3RaN2R2ZktmVk41Sk1OWEVYalFYcHN5TGpYNkFwK0pKcXNrT01QZjVM?= =?utf-8?B?ZkVPTTBuWG5SZE91RGV3anVvL2hPU0xveGhGbC9kZ1BCSW1iVGVQWFlrdWhx?= =?utf-8?B?cE5rWDhOVTZRMXc5bTZLeklZa1ZRMERub3I2NG5VcGhLZWtCejlzR01xRnFY?= =?utf-8?B?SUowT3kwUVJPSXY4K3pPOHFHbmNsQjZpV0sxMWt0V3pSK0sveWdRbHdQZmow?= =?utf-8?B?R0g4NWZWL3BBcENSU0dwYmpuS0N4TEpoQUg2ZHZEV2lqR2FZbTFlK3dUYTND?= =?utf-8?B?bTU3aFEwL0FQeG9zVUNiVjZMdTFtazdhUDhXdmtJYjRsOWN2WVBjQWJBZ2VF?= =?utf-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SNExneFp5U3lo?= =?utf-8?B?YkF5bjlpT084aGNkbmxTaDJ1WW44YkRpd244MGMyRmh3OGQ0NllPbGRVdDIz?= =?utf-8?B?WGFCZi93djBES2FuT1gzNk9CRnA4WS9IQWpEenByOUJub0tYa1JoNHBQWlhq?= =?utf-8?Q?g7xmIGbmdxBtwyhuNY9?= X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39860400002)(39840400002)(39410400002)(39850400002)(39400400002)(230700001)(7406005)(7416002)(103116003)(53416004)(42186005)(6506006)(50466002)(50986999)(189998001)(54356999)(76176999)(66066001)(86362001)(47776003)(2906002)(4326008)(33646002)(81166006)(83506001)(8676002)(9686003)(478600001)(72206003)(4001350100001)(1076002)(305945005)(7736002)(5660300001)(25786009)(6666003)(54906002)(23676002)(55016002)(3846002)(6116002)(110136004)(38730400002)(2950100002)(53936002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1145; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyTUIxMTQ1OzIzOngrTWdxQ1F5T2NxbnRVMjVsdVloNllUZkNI?= =?utf-8?B?aXFoRjBRQjEvaWJwd29WVGhSQ3dTektMd2RwZkxnUzhHdGVMUmlaKzBFVDVX?= =?utf-8?B?VmlNVnF3dDZHQ3huTW5uWHkwNEViVGZGM1JDdllsc0FENFJ5akxQbDQvdE5M?= =?utf-8?B?SWNwbUpUS05oUnBNSHBOZERUSTVBWjZSTFRqdVVJTUlsN0lENVNjbXBrSk42?= =?utf-8?B?dkJYSUIxQm1hRU92QklCSDd6TXhmNUk4clZia05haEJ5TkJJMVhvZHMxMzQ1?= =?utf-8?B?MDQrTnhSdGNoMnlReHJzdUp6ZnExRTI1TGZ5MkhnazJWS2I1NkVHR1dsR2Yz?= =?utf-8?B?U20xVEZqRjZlVUE5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rSDho?= =?utf-8?B?c3FSczhpTm05bkFCRlRDdlh4MzErVks1YkxicU10UkhhZ2d4cXZlbEJMYlo5?= =?utf-8?Q?a4Vh2HR?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1145; 5:YjzRW5dMjGVPNbapnVJO7rgYMJPop1hPXOmceviVSBWPJD1nfCcK477SzcgIRpDnF8n6zRfhtDE3ibwCUysOTmynBs/HCo4fibkNHy0w4eNe0GKbRGm1xrf8Xw8ek9luGEAGI74I8TlKQH0yGfjQzoSPx4NfpZpTUDXvs0nJ3Yx4E4UxoxOLgiFezC2rIFTFFkSmMcfBLc77afswjrpP5J0pyvFbwDprGhIQWOSH2EoK95745lNPEiSueo/3lzUlGGGHzaKK8AfQiq3bQQ2lIum3gBqA1Q3B7E8uojYcVNYcxQRUYRG8cnVYxNWt0EwrmBCSDCC6YlufDe7Mibfv9+K27mkHsif9PSeBsrAqpnK8SwSt2uflb2QEijBGXGf8Hc7UZfN7t3OTd86NaSHSX5egZZ7NBuaE4i8bfdjad/N98ijR5xrYYKzV4Iay93XuGJS0RJ/Mq/vdvjBzVAU4hEtmRqnAAg9FTXA7P2zOgh0t2IAwR9KQsi0gZSK4Ruut; 24:eS3LvvJcFerAhvDrTv8qNzn3wmWDW+DpFzD8KCAT1D5EBB2jgmJ0U7atq7f33LVP3ngeFDIHwD18Y4DW9gQCyzZ3Jbly1LtpzevqleLFGmI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1145; 7:rTMijApv31v70p3y8+5fAXZo2vBAu6fee41wJYAWpdm13DkoOjS5GLs16Cqkk4GLvasy5ZCqG8RbKyXVL9Mmg5FUr5jxWZKmf19OJZ7xt56tg7LIvVbL4d09lzEIIL/rfLNtvEDaP/sIQMms1tU+LFNVpXZ92HQaz0XfjOAlLybWL23ho0t1f6Bd1k+f6lEw2MeC+Rlp/S6XvxnXehHRfxL9UWpmHUSDt/n37uDp44amtTcRM5cCiwCSjUGNtEhYpppvFunOeR5Lyd8bp/2RDk8ESONeSXDKoAkRoqx2f/5PTLgkv/S9+oAjGbe7pI0hag1annx8I3DjrU6IS7g2LYQ8BQ0fcWQEJNBySOwVSJDu+JtbmxxT/6yofQpyZUbHIqptJHTFDyxGobUXOXPeqjRj45CwCK5tnVfxGDI3Od0gz3PfXkgIOFj2fzmm0aF3tZAgDneFyC0XTvQBp3b3VBmnjK24ap4tkO7Y53jsrFXQbrxOIgxyvWk5frPiqq1CsGuzRXKnJq1qTfaN4efBuIos5ZybFZrscrtMX/suDsfrxWj25xt1RnYryQ+24N1CU+2E8s6PJ6uK+knU3C39UWaHGz6XJXXSMAyZIxcJmjRvrHi2aqanv21D7y1bNJz2ASBg6hv4vLB46Aof47rB/g90QzRvEh9knUjO6/pycGBQbU0g6Ozo+gNqWyvAv/Y8APT7YDCVWctdLrs9rRaZW2Y0lnriqQCJ1xvuJWQZmLRiNom0d9C6VD8j+d7FYaNHCv44MFtxr2+BrNj8zuNjNBYRqU2yHkyyErrXY9WNUI8= X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1145; 20:HwuvHiW5Sc0VsSI0p9ezzynveLVr9sJTkfSqIDhw+QYpuYIuEdrelUSfsdBeu1S0xNCuPjTSM+k+cOrqM8FcsVr46TQ//BMaH1Q3oInyTOGH6aUQcRaqyDOtQxDqe9HCMVOA9hCSftYDHePjDvNnJINFdVxCTDfRwPMSJ05W26cj34E/cW+jQEafYr/1Hh87+WAkehNr/7DhBdtHqpxqCXyTEDIXx+Vv+9fNOpJZt40xu0cpACGGFq0wvNyTWUWC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 18:51:07.0055 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1145 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 v7 07/36] x86/mm: Don't use phys_to_virt in ioremap() if SME is active 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, however, this will result in the mapping having the encryption bit set when it is expected that an ioremap() should not have the encryption bit set. So only use the phys_to_virt() function if SME is not active Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/mm/ioremap.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 4c1b5fd..a382ba9 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -106,9 +107,11 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr, } /* - * Don't remap the low PCI/ISA area, it's always mapped.. + * Don't remap the low PCI/ISA area, it's always mapped. + * But if SME is active, skip this so that the encryption bit + * doesn't get set. */ - if (is_ISA_range(phys_addr, last_addr)) + if (is_ISA_range(phys_addr, last_addr) && !sme_active()) return (__force void __iomem *)phys_to_virt(phys_addr); /*