From patchwork Fri Jun 16 18:50:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9793219 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 7A34460325 for ; Fri, 16 Jun 2017 18:53:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CE722865B for ; Fri, 16 Jun 2017 18:53:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6160D28671; Fri, 16 Jun 2017 18:53:11 +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 E25952865B for ; Fri, 16 Jun 2017 18:53:10 +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 1dLwKf-0001Lk-Nl; Fri, 16 Jun 2017 18:50:57 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwKe-0001L5-DP for xen-devel@lists.xen.org; Fri, 16 Jun 2017 18:50:56 +0000 Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id 39/B6-17076-F8824495; Fri, 16 Jun 2017 18:50:55 +0000 X-Brightmail-Tracker: H4sIAAAAAAA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.tower-31.messagelabs.com!1497639053!101185349!1 X-Originating-IP: [104.47.37.84] 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 58044 invoked from network); 16 Jun 2017 18:50:54 -0000 Received: from mail-cys01nam02on0084.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) (104.47.37.84) by server-5.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 16 Jun 2017 18:50:54 -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=byiNHBwfy3pkvEs0RA+n5NF9w+tUBrd83LZfUq0lZvQ=; b=JtiAasVZSpIF/OltfYkl1we7mAmemZyTkSHSF9Oye6V+W5kGUm3vNBujCCQhrWyLgwTsZvrUCub9bz7JHa8RvnQsVBQaqTCb7H3oPDAgPRELmlZEPSYhjtLyHoX+YqVuAAYHTtjOblHICBC8RVLEk7Hh9/ioPzt1Ry4WnRncSeo= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Fri, 16 Jun 2017 18:50:47 +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:50:45 -0500 Message-ID: <20170616185045.18967.79495.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: BN6PR11CA0024.namprd11.prod.outlook.com (10.172.17.34) To BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f5096862-75cc-41c2-3d60-08d4b4e89b08 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 3:X8ZXeNgnpEiZ0ZpiBwLqrJJ0a4QMCVYKm9tdwv62MAcMh0r91oFE2hCsLhi1DVSlP4IAPms1yxXgxm0JH00wpU1HYELQ5zMqHnX3AQtqAsvPDe+LcKwv9a+Q0MkojXARh8hfaYUW7w3aBhiZALUI8y9CIK3G3jBtH9iWlRbb6MTPizQEwG457GjxGbS+pLPPD52YK2de/gjGH3dkbBM1OYPxoceIvQJuexIweRrdnjXNeg7OgyzS4/Fe75DhqV3SLNeVaL7SJjzdGIAaPhk+HsVT99muS8SRUcAKXQAWvB6Mq59am1L1kn+XFasc9HEBNi6d59caeCq9EXRLk5O5pqNPLRievrDvA7rspXZCHcU=; 25:kO6dlPefqbc/Nlq1yZ4sOZ7xei/yPZTyHKyAOtH3BR4VkeJoxPWdJ+Ed5LFVkMXYqmPAzXduwbaTG9o34oYyKoDiCMO0fLLVp6NiWmYUbwPXnydZ2EcJUig1VrOxxW/yzoP/IasYDNalsMG+Tcp528G8K/37iySAQq+2GXEFT08I1kW3/OyLFDB4aeY4dv2XV/RMZHlULggq7u3tzaoSPujp7mPuNsyfcRs/zJMC0n9O2YCdxSFRdRU4p0nLSQtDQS1y3uEY/SFqLZQh2l+w7hVCnnVKMXB0WaLa3n1EZpg6p78fsxhlLMIvDRUuARERwHUSyiUr6l//Nhl8sPuEOrhJiJxCB1A2trqettq1sPCvdXbIljU9Ovgf39DPr4Z4sLd7RlKu4hBgTIqY3AaQoHwTs/QzF3nSb1nnYBEo7WIuvxr5i9WC3Ts/dWTmpxFSMkoMinKcWa+c/KmT8wd+198a708Ucc0QZ51sLYPzH3I= X-MS-TrafficTypeDiagnostic: BN6PR12MB1137: X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 31:2cG2RgmufW3qS+IS575+G6lr2HSHbiS3QWHhcFy1ZdqVeUEz25Aqtg6ErRDY8taF2tDQTMKq8L/oNq1LqG/mao2Ub6xK1ORBEdJuhsmk9ZFspWvktB9ludRzFECWYuT0S9kB5EJ9Srhj8Yv0W0X1ZkZ6JNrHXBF2DtypxVJcktAtLCI1bIHd/77vY+Wr/2gj1KnvS5Aoo0YHjvaOO6Y7SsXajO774O19WFcja9jh7+k=; 20:CWe7qLq4f2X2+BlX5v5FI815vCV/TWK336FnLnkeEt2+ZBdXxsZI3zWKEkWL7BxMmhKanav5l+GeMDs6QUyet/9AmGIpSfpumJ14uWnZy9rHzsD79p4wBL5hHDf4IJEzhRky4GxS4qRI1GfRt1Po8i9rozJtnx0o7qmbbHM726GN7oiIv4s+xAEA+3wg9o2QeS73+nNnn/0M3V9h6HrTLc+sMpJ1O5mkh9YgOSiPnnfsPUfL1W77QmTe9t9EYl6cwQMLA0aMILK2Lj3uybPyMgyzxLivPaJPaQmCcHpDO70GEpk9KBAPmZgrQ3/7nKzuDubFxUHUUHkVFqdV6tcbxfiuj4WNJVmPQFEt5KigeZlw2cdQF0alxTat9+TnqS57cVs8sX/CSIuokV0xBwfkwnBRTeaM1zsrZGxFdSPD2/ctbhXFlCixfcQ/PtUD27mr3J1kiUyY20aJUTjas74lKl2a3B+6CnjyjR4ojSU4lfG0sR6UbGHGIInUGbzwC+aM 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)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123560025)(20161123562025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1137; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM3OzQ6SHhqZGk1K0dXSkFFc0NadVZ2dVdpbmdhQmUy?= =?utf-8?B?djNQUUZnUTlMMDJ2S1U0V3hKRWZ2TUpaYXFwMWdLN0lTL0lRQjB4TmQ4WnRG?= =?utf-8?B?MTN2aTlWRWUzemY0RGhVZ2ozbGpTYk9DYi9qSzFuUi9kd0hhd0RIMU5mbUYr?= =?utf-8?B?YXl1M0hhQXRuakJuS3o3YUV5RGtPME5RRm1ObkpCQ2RRYWk5blp4R2c2eE1z?= =?utf-8?B?cHhFeUpwY2EvOHZ1cmkrOWNmQ2FmNEljWldqZW8wZFg2V3dvMU5KaHVBRlE4?= =?utf-8?B?VjZuTUwyN3VZeUxDYXpNVEYrZFBmazBLMHU1THZWbzBhdWk5YnZSWkRDRnRo?= =?utf-8?B?R1NNY0dBY2dORCswM2YzSnRBVW5hY0pKM3hHbUtFdlJUeWYwN2dXQnZHMW1B?= =?utf-8?B?cURCcjd1Y3VpVFpOcDlLZUZ5QWZWNWNLcklRMFljdEd4RzQ0aWNvR3FVQ0Rh?= =?utf-8?B?VXQzS0FqeUdWNTcvTVBEM3llTjk1Wk8wOXZxN0cranc1U21ZQmNOQjA0dnpU?= =?utf-8?B?T01JbE8rR0FONVJaTTlEcWovRGJEa1RFbWRwWmQvSnEwNWpN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ZWFxR09XeCtsN2VmZFREN2VRaHl0cklM?= =?utf-8?B?ZUx1UnhLY2ZtTTR6TWR4bG9pMWZMMERnZ2pMSStUZ0FkSlljL3IvazUrTEwv?= =?utf-8?B?eEZ6c3pzc2lIbElPLzIyQ2YvTTNjZFVrVFplU2s2U0JJUnhVbS9vampsNHZN?= =?utf-8?Q?YORSQITZ9lSiFg3jmpp?= X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39860400002)(39850400002)(39400400002)(39410400002)(23676002)(38730400002)(3846002)(478600001)(7736002)(6116002)(4326008)(5660300001)(42186005)(47776003)(110136004)(66066001)(6506006)(7416002)(7406005)(1076002)(50466002)(2950100002)(72206003)(230700001)(55016002)(53936002)(54906002)(9686003)(8676002)(81166006)(189998001)(4001350100001)(83506001)(33646002)(305945005)(76176999)(54356999)(2906002)(50986999)(25786009)(53416004)(103116003)(86362001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1137; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM3OzIzOmtxM1BsMWdwSUh3cm54azFuSEtEM2hOTGlz?= =?utf-8?B?cnN2NGV0TkJ2blp2NE45eHdLNlRqbzBuSElIM3pobHhBTmJVVkFDallFcTk1?= =?utf-8?B?Ymt4Zkt1MU9JazdZN3lLaW4zSkRudkJLdFFOMkZiSU84U0ZEMEYxdi8zMFFJ?= =?utf-8?B?Zy84Z0hrbURnRDFlRElGN3g3WjRDT0lFYnZNQlQyWVV6ZE9mMUNSdW1BV1lK?= =?utf-8?B?N1h6dGFsZjNsSzFOMXVwYW9YVE9UQk9ETmNoejI2ZHdOenpUMVpnNXpzeDhL?= =?utf-8?B?NEUzMURWOUZBZkNRdXRqODkwSU4xVmlYTE1neHpNTmlzd1ZERjZlMFVGY3BZ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THhK?= =?utf-8?B?WHFSbDlUK3BHNGtSNjdQRUhvY25jZU1tbWJFV2dDNHhrelBvL0h1YmZXZnE1?= =?utf-8?Q?exKEXLQ?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 5:Jn733563ZkKlL8UMhd+MIts+eoG1iE+OtvB1qfITqcRbI9ufz6eMuY5zbiGpqWjx5YZ03XCLF9xjqNrrz6VtpatqumhYpyh/ApBrgVe1tJd+OgT+TcDSp6B6/6cHKX9DdqT2tPOaZQ5Neok6KR1ReJVZCN32hgJfjFAo4jLfbqVDlxtAW0y3u0804w4RYJT6N9Q76MFhqKwmoP4dHJEAXPKAfuhF911XskNg0ZNlqpvOIHxbNqjWeu1iUOclp8oW9SGpE4VAWgYWo9wjWOt5GoadQSAghddq0B4IIuEp3uz3DULcKxqduTnTILtVQLyeZUi+Unv8hxZQsuFsNb615ekpLbeQACGYXRte693dbKqQSHuFMT+OvAMTNWF2kOIFndA6qzz+XA0hGna+70xKdBKvWAd0w4RRN1zfLyZF+SBapCZcwSGMI9pKs5M8wFYohDR74sFusqUvi+68jL5v31lHzLq2FfrR5UMByexr9bzQJ8beex1fVjROTwJmeQ4e; 24:ikuXsbtapOkHR+asH016GenCTTKtkRsaLXOzbDjPcPM57Qfib2Rms8K9xbYAntLpmmAGlSMvKoPkoTX2CLCwHAMJVIKyIXcnOXMmDXrRhvI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 7:c+eaCM+K10KdNmfPTxt8BXARzTuN30Yvxy916K+ldZ4zwaluJ59IMMIjaZ+oaN02wFN39Rnh58y3/gv8ybgJ3yElS8xfWCGlx8w74DOApOztqKvNkzu4twYBwv6GMvDrM9w4MG5KccOZop6DC8Vh9yW65tpwqGStNN8KJWNFo6G/w2Ykof/THfH46JdZVWrTGIPahViA7NImc5YM+p9EGJj7PwTlR/AI7kEiLXGWjYfUWZl8xGW+DLKnGvErldgjsusCxhSAcP3GFONKPhpX9UfITz6yTj3+R/EMYM5UAQygeuXn7KATA0vTDq/UPFxdyT6qn81dWGsy5rq49BZJqmyHam0jTIAv70/62ovuM4ctRnaZB9HAb9V+iR7WlDxyZb4v8wf1bWA5Pp88jMttqdJhT1dEpv4EYtJWTmqn/amAnFU3au0zdZ9hlK/0ZE6mR/F3M+g5I58o4db5+fZfYpA28EYOEd/UjrCvUhuri5D33Dx15fbjZQtT1U41AlQaJkpJ9XggJdTTZLDiI/ii7ZtyjhbmzCWpuoTJB+p+VqmYU4bS0TxO9t4CjZR7/E5GDWcslPrZmJsTsgTecSbtNOiUWwjx18fHZW4rjSsVKDz3cGjuNWdHHq5Xx8DqTICDjnzWPkfTrKVAZqnapwrx7+hkWMVwe84hUHVZe1Nb2inuveLjmQrVcYhsJiB1vfSoJebh+12TxOaEZ3a5oJyUuXGw5Tgbq5dVTEaqDBcXRdtdf89LLziS/ZqRzv1rtNEdLbBfbk0+wg+ng5lLgXxWBbeg0HIIWHwfteEW9C/ac9c= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 20:3U+NrG5jqQwkJjZL9c/HbnQpn7gXCNTdFEF0DZS7WJZAlu852HNfQY857gpaF+n5iCli5wFv2Xt8bxkGZs6o5Ihdwvt67YfEtj2HIzOg+vDq+ElXp+MYHkH13Y6kmedCZsVbf6awjYCsGabMhQys7I2MIJQj8PDBE1nceYo36d/ivGDw6f8UGEh5IDCqcVSVq10deFZT0W2PvqPmaOsvdXF5OUsv3U6iFrwCZKUqaEBDCaUZcbipPAI4HydoKmA9 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 18:50:47.7615 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1137 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 05/36] x86/CPU/AMD: Handle SME reduction in physical address size 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 When System Memory Encryption (SME) is enabled, the physical address space is reduced. Adjust the x86_phys_bits value to reflect this reduction. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/kernel/cpu/amd.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index c47ceee..5bdcbd4 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -613,15 +613,19 @@ static void early_init_amd(struct cpuinfo_x86 *c) set_cpu_bug(c, X86_BUG_AMD_E400); /* - * BIOS support is required for SME. If BIOS has not enabled SME - * then don't advertise the feature (set in scattered.c) + * BIOS support is required for SME. If BIOS has enabld SME then + * adjust x86_phys_bits by the SME physical address space reduction + * value. If BIOS has not enabled SME then don't advertise the + * feature (set in scattered.c). */ if (cpu_has(c, X86_FEATURE_SME)) { u64 msr; /* Check if SME is enabled */ rdmsrl(MSR_K8_SYSCFG, msr); - if (!(msr & MSR_K8_SYSCFG_MEM_ENCRYPT)) + if (msr & MSR_K8_SYSCFG_MEM_ENCRYPT) + c->x86_phys_bits -= (cpuid_ebx(0x8000001f) >> 6) & 0x3f; + else clear_cpu_cap(c, X86_FEATURE_SME); } }