From patchwork Tue Jun 27 15:00:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812245 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 59B4C60351 for ; Tue, 27 Jun 2017 15:03:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 568EE28111 for ; Tue, 27 Jun 2017 15:03:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49AD328401; Tue, 27 Jun 2017 15:03:06 +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 A89DE28111 for ; Tue, 27 Jun 2017 15:03:05 +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 1dPrye-0005NN-5Q; Tue, 27 Jun 2017 15:00:28 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPryd-0005JN-2O for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:00:27 +0000 Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id A5/E7-01752-A0372595; Tue, 27 Jun 2017 15:00:26 +0000 X-Brightmail-Tracker: H4sIAAAAAAA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89808928!1 X-Originating-IP: [104.47.41.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 15439 invoked from network); 27 Jun 2017 15:00:25 -0000 Received: from mail-dm3nam03on0080.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.80) by server-13.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:00:25 -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=/t/ZdmDwNmfyBznJOJQOJe5GwOJTePCmypuN8IIwFHc=; b=kNp0R9Gd2liajWeomFRQAwf76JYYUR8TzxET/Mk6ePZErf8VREeKVB0oMs0kor7OXBJQ1IL3NVAbEnsIOR9uBoPXlkL2d/sMvYKdZDcNxTutuD2g/P7B0r9x/Jsdvh937EpICgV2sskDhd8AwGHNIfoouvY5GDxJezegjGG6htQ= 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:00:19 +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:00:16 -0500 Message-ID: <20170627150016.15908.37813.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: MWHPR22CA0070.namprd22.prod.outlook.com (10.171.142.32) To CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fbe977e8-d1b2-4700-8f72-08d4bd6d3c4b 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:6836V9D9Sfamh9adK1X2lMiw1jfiOy39KDU5TgcM2MyXjFxnQjaTCd1bt1wDGvvjgGODUB15IDRCTFizc9GYI0sw/svzCSJ5uOyFPHaw5QxgHCs2wOn6PVdIOxsxozkL5iL1GZs9rUYvJ35AvAqX5hziFCbidUeHnppyL7itGdnn3uCBxFb132mbx/WhddZyZlolY4h7id03GoYUtA6ZEWtu9xRdRZ6jT15DIuvFd0oWuULy+VaP17+Gn3CUGxiVU8aEydAcdmOSLOE1vXEQ6y7HMuBNXvRKbOhR7SWhGHhMbiVRSnUjT4VIc/O8qnvB9n2o+a1bCXpA2dFxL+fxFtoEn6lnLXpVXQl0+W6KWbfJmZaG/EibYBG8760Yj6IeYfhVjklKbhxjSW+Vg4A9QwEJu+5zhbVF08k2U5kDCR0W0qoVN+o1UBLxvphajCYhyrnOA4oeD0O/+/4gCDWp4OzBpwacbxwJ40O3FVOrtCT14q9HvQ3sK2Gctin9DGqo9mIkGwyHQg4u1+WnG2gMblTV3EoDFzy4/q4XELwVlG/y6C6J6yh374WHUk0/3Hv3fzIRH5gJUOS/5fL6Qt/qcrmd3ppbPyU6ck1fEn87bv2yTBoWTuPXsP85hphyCFX7QdyHGQ0zqokXO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Uz2+5RtXwNFA4bkzM9mY3BW5JeZZNXydQO5aDl2fsW6iCYqTf25+fJvVZ1NJMBaqEUVbFMhbbJbrC+jBLRD7foB5SIbsoJboBRppd0SZHs1HrbWU4ptrKShZR4HAXaCYGOjkInzXwAjWmgTWgzDg9MJHa7tLBYgFgMSrZKMNeVIkl8m/5aGTev0CQfnFze X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(125551606395959)(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?MTtDWTRQUjEyTUIxMTQxOzQ6ZitaMDExYnJ4clh3bFhsVHkwejRkUHZncUoz?= =?utf-8?B?b0pla0pNaFgwL0Qzdm5GWE1QNm5HYXFMV0RNNWd3VEpXdWgwRVpDSjI1THdm?= =?utf-8?B?Y292Tkt4QmVFeG0zeUsrWFRzM1lmOEZ0cFg3dEJFMG1LK3d1cE53dkNURjlp?= =?utf-8?B?K1pQeURDdUE0Tk9ROW51a2RWUGJ5STNHYmlYYzlrZkdIYitQYlhjbmJFekdr?= =?utf-8?B?OUYrcWRKb1MzMTk4UU5qVXpEYmFQZEgxYU0xeUJaUElQa2xiekVMUWJwWFo2?= =?utf-8?B?eXFiSnIvRUF6YTkwUTZTRFYvalZNWWFCb0FybTQ2QUg0T2Z3Sj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RTamFCNW4yTXlBOVVUdnJqRkJCTDRhOGRN?= =?utf-8?B?bkZYaWNqOU5QVCtabDFIaytyR3N4RnJIU082MkwrZ1p2d2puK3dRSitDN0V4?= =?utf-8?B?ZFpnbXdIbldwNmVaR3RrV1UrYU5GcDEwZ3dnV3BSK0tock5Ib094SDJ1d1Bh?= =?utf-8?B?dmFPaStSV3BqSk8zZVNET2x4VmE0ZE1YcWxGTi8yNFBCaGx3WUJSdUh3VFhG?= =?utf-8?B?NkVWTHhGUUh3MlpMOHNBYUVuY0FCYVNSa3dhdzZjRmQwUGRDdDJCZXM0alk4?= =?utf-8?B?bHIwVzd3WmZoQW91R05uMjF2UlBTTFowS0tQc3JsWmpOajg3aUFnWkRiTXI2?= =?utf-8?B?OWpQVDBVNFVvMzczYnlucjNDZzBPZWpLQ1gxVHpTaENHQWtYQ09KK3JVWVlx?= =?utf-8?B?STJYVmtXMmdOcDJrcERzQ0sxQkpKa0dLazV3NFEzU29jZTYzMHpFZk5JWE1I?= =?utf-8?Q?UmWsdSRwIW49P1liZcdHxwLU9hZO/dxrFmttkZ?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39860400002)(39850400002)(39450400003)(39400400002)(39840400002)(6666003)(54906002)(9686003)(2950100002)(6116002)(55016002)(83506001)(110136004)(38730400002)(2906002)(54356999)(76176999)(23676002)(53936002)(8676002)(230700001)(4001350100001)(478600001)(25786009)(50986999)(3846002)(4326008)(1076002)(189998001)(81166006)(33646002)(7736002)(103116003)(42186005)(66066001)(47776003)(50466002)(72206003)(53416004)(97746001)(5660300001)(305945005)(86362001)(7416002)(7406005)(6506006)(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?MTtDWTRQUjEyTUIxMTQxOzIzOjJud2Qrd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/nyTZj9/AIACmHBJ34qMjeJwQFW4gUErKiCSCBL4YbAKqNyxilhIGdtZQMR6HM6wrRshbveFIENfZVhwK4E81zk9i1u294EWKqihZnVDs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 7:6OBy4rzNU0GYH3rMhAc4V3drE0jKfPLXp8UMO8eFQxhQn8IeOU1z7BqiRYlQ2viJrK89bzfrR73uNYfq7zgk2eHXMvkcdCn2UNr37DA91KJv1c35kgquMvwAVf1NDC0sbyKstBjYayv6czItP8kwhyg4z7n0n7XFkgbin6rBpfB24mGQGhigerCg2cfpTaal+q2hUgbzLUAsGW1d2KvWybqpt8C/HfCg2doP9/0akP5TH/bFjrnNb4Doj4VzTEjZcfkh9EPBSJqILo7OHcjK51LZqSau2WYtG7XxAQGPGZho4xStQz9cqJXz62pSG6U01xeYz0TX7+NRr3t4CZ0gbd7502a7e4YiGV/d0+mqNdg6+SzgQ4o/iXhaEI4Qq/Mkf+uW51WsIz6a12of+WJiOL9b9woBV8EE7x6c5h1rPGHoCtMQBFd9jUmMvp5Np/cvoQhz2oQb8sp90gDdrv2PLTlPrWw7CPOijKuTZmrEZNJG4aHp4tbTlAJTPb+WCtshxkHnZtOYsULjQKrrTELk+6QyFyeMzGtTpjoUL3hYyXTtYjerc++MwW6INUZ1WwD+JnulsFjvsw/GcuVu75AZaPd30eS3qwVoe/cIMwEm5Jc4oz8m3oFvrmOdCEsZDuUj4/uZroJo5ts8a+8vhCxdG1koVrd36vkCIZqjBm04aKc80zbVgKpijwKS61WQvjAkUI5nbJCUf4kw2MQPuqLoNsBWF0FxW5q+GqZxWC5P62LI5nf2+GDMW9XhefxOFaHULxk9+1pcXlPOWtt0vEtzWG7NOUEBFAadLCc8cKxxC4E= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:Fi5epN2SGz+kM9Z11pAZVp/CdiGojGZMH6GYWvhyo2f+ECdvc1qDJMhkPmfGmDZimNA2y8ov8qj3lPsGEI9yvEoJCXzbZBlnhflV7Jj1bNXIjtuQWC2QQTgYAz2d7Eow5xcaFsv7p9O8Cs1cfN0JNBi71YJeguu2JPmMbOxOL3v/7p5idNToNECfcz5kHNq46S5+DTDq9NNfSSwUECdig3/B0phmS9h5uCw1O7vIu5eWz3gR5JbUBqL4IPo/UNom X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:00:19.9095 (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 23/38] x86/realmode: Decrypt trampoline area if memory encryption 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 When Secure Memory Encryption is enabled, the trampoline area must not be encrypted. A CPU running in real mode will not be able to decrypt memory that has been encrypted because it will not be able to use addresses with the memory encryption mask. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/realmode/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/x86/realmode/init.c b/arch/x86/realmode/init.c index cd4be19..d6ddc7e 100644 --- a/arch/x86/realmode/init.c +++ b/arch/x86/realmode/init.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -59,6 +60,13 @@ static void __init setup_real_mode(void) base = (unsigned char *)real_mode_header; + /* + * If SME is active, the trampoline area will need to be in + * decrypted memory in order to bring up other processors + * successfully. + */ + set_memory_decrypted((unsigned long)base, size >> PAGE_SHIFT); + memcpy(base, real_mode_blob, size); phys_base = __pa(base);