Message ID | 20170707134224.29711.90107.stgit@tlendack-t1.amdoffice.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <kvm-owner@kernel.org> 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 257C960352 for <patchwork-kvm@patchwork.kernel.org>; Fri, 7 Jul 2017 13:48:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB6B32853B for <patchwork-kvm@patchwork.kernel.org>; Fri, 7 Jul 2017 13:48:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B023128671; Fri, 7 Jul 2017 13:48:37 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10F822853B for <patchwork-kvm@patchwork.kernel.org>; Fri, 7 Jul 2017 13:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753077AbdGGNmm (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Fri, 7 Jul 2017 09:42:42 -0400 Received: from mail-by2nam03on0088.outbound.protection.outlook.com ([104.47.42.88]:1600 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752760AbdGGNmg (ORCPT <rfc822;kvm@vger.kernel.org>); Fri, 7 Jul 2017 09:42:36 -0400 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=jEdfbfWBWt3tRwohUjdNtgloHOyIy3qmZNA0c1dQ6f5G6r2FnxtkOvjVxhFv9GMErL6DY2I9xGitRbvRQ3yvO7LEK0QuiWzJTv3QQ5p6pQ/3Cgl8rW4dxw2zc+XeYXWd8MZnaqtz04oCBzgcjVfKgNX+WBXOhjFZH1aaFgNwhOw= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=amd.com; 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.1220.11; Fri, 7 Jul 2017 13:42:28 +0000 From: Tom Lendacky <thomas.lendacky@amd.com> Subject: [PATCH v9 23/38] x86/realmode: Decrypt trampoline area if memory encryption is active 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 Cc: Brijesh Singh <brijesh.singh@amd.com>, Toshimitsu Kani <toshi.kani@hpe.com>, Radim =?utf-8?b?S3LEjW3DocWZ?= <rkrcmar@redhat.com>, Matt Fleming <matt@codeblueprint.co.uk>, Alexander Potapenko <glider@google.com>, "H. Peter Anvin" <hpa@zytor.com>, Larry Woodman <lwoodman@redhat.com>, Jonathan Corbet <corbet@lwn.net>, Joerg Roedel <joro@8bytes.org>, "Michael S. Tsirkin" <mst@redhat.com>, Ingo Molnar <mingo@redhat.com>, Andrey Ryabinin <aryabinin@virtuozzo.com>, Dave Young <dyoung@redhat.com>, Rik van Riel <riel@redhat.com>, Arnd Bergmann <arnd@arndb.de>, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>, Borislav Petkov <bp@alien8.de>, Andy Lutomirski <luto@kernel.org>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Dmitry Vyukov <dvyukov@google.com>, Juergen Gross <jgross@suse.com>, Thomas Gleixner <tglx@linutronix.de>, Paolo Bonzini <pbonzini@redhat.com> Date: Fri, 07 Jul 2017 08:42:24 -0500 Message-ID: <20170707134224.29711.90107.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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR15CA0035.namprd15.prod.outlook.com (10.173.226.149) To CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d1973e80-d595-43db-5caf-08d4c53e0435 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:CY4PR12MB1141; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 3:a8yoyCSZ9tk1Og3eenRDpWDh7W3zjWNwWQWbBbgPdj3QeJi/9Cstb2omhEVnXHFctSMFZTomM5j64sPXHIy+kETvVMNxg2G02E/AgPksb+SdF0M4Giq8+BwfZ9AphVLqOGPiKqsvoKjXrF/QffXZBTgFZzDkr4pgPOVb0b4jsveXWfFQqjqLzS6UMzqnu3ijEetByiSowvBPfSOv5+nztDbJ2+lkgEnIWsArdjA6BiOpp4I3H7/Yc7CBiBshw+lFWf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+fN+rbbN3OuqTnTqfCkLmD5Nm+OoXKXFvEd+kFvzCctNrX/UETCRCCT1LLG4dwvKVhuRiO/dHDLZn1h5+1GH8sNbK2GhjqiBvzKUGI= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:cQTVIMgjsRCo1qqTiv1ha0SqEIZNeuSsGW9ONa+U0036NWIbNuFU/6MP9Yk7sZ9aqGBMU9KhBlncgf+CfPs//9kIkR07HxTGQPtScOcietrouYTxxMlXVpzRbdQpe29rEdZzd9A2TTznAUP1llmxA6BsUV1L9Iflow+QKrRYrwC0KJbLvzYfq+NIZXogkUDIIR7rqfSH24gN3Wp7qNsKeKW7maJSZ7u9mHIdtjf7fD3F1Czp5YuI7JMt73o3yXUTzTRBwUlTrioC9iuTNGNYgB3NMS73vt02XD1wrtw/Eq/4TACfPETUu0a1qv9KLfEIB9d6ogu7Ivw5eYkyZbHE6U9+YLf5iWKAkz3TlbtqR61nRNJ/5+xpqAYLEYUzD0XCDZWXDIM/wuwZFTvPIZEzHqy7aRk2RzDW5PhzEyU0GsryQSildPJIh6kJoPtspGJsFzg9QwYCpsf5J4Pf52SECQCld+irgxpSlcP63ntoGcOUEzm3aEnwDzrJjgaVOW8q X-Microsoft-Antispam-PRVS: <CY4PR12MB114118A4B2ADB5930136E662ECAA0@CY4PR12MB1141.namprd12.prod.outlook.com> 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)(8121501046)(2017060910064)(5005006)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123558100)(20161123555025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(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?MTtDWTRQUjEyTUIxMTQxOzQ6Qit0R2lCVHh0aXFLYTNHazNtZW9OUnk0VXhE?= =?utf-8?B?TUY2UDNuWmQ2bzdZdlJDSXUzOWdLVmJOQ0xXcllBZnBRY1gwRHhIT1lOSDQy?= =?utf-8?B?dy9uajJEWnlQdkJNTlFIUkk4aVBKa1FWdm85UGFQQTVTem1PZ3pnTGNxd0pJ?= =?utf-8?B?NmRUVDB6Uk1GVnBXWDhESEFNYjByVDlMS2pHc09TQzBHbWh2WFVTbDRhV2xI?= =?utf-8?B?MS9zTVVDS3ZqQngyalo4ZVh4R2o3THVNYUw2SS9LaTBvZSsxeFNPSE95TVZJ?= =?utf-8?B?SjFFeTYrZlh3c0NHUFowbmxmZDJ2K1lHeVYzZFZLUHd1ckd5QzEzbGV5TStx?= =?utf-8?B?Q0xIbkFUcDBMUzZQVTJVVEJzd1BlUnl4QkpBM2QvdlJPQXViNksvakk4QzIr?= =?utf-8?B?dlJJbEc1M2w2Q29tR3lwUmEvVGNqeGo5L05JWVZxR1BpMmlHVXF2N2lFcnB1?= =?utf-8?B?ZVNsS2doeDhnRE0zRWVta1NUMlB3bDVFdWFPd21MM1NNQVpSUTZYd1ZXT2lZ?= =?utf-8?B?MzNlL092ZTVuQWs2SmNqSWtGSSt2dHlUdjNyRnlpNTE2djJLQjQzQVdZSmZC?= =?utf-8?B?UWQ0Z3I3cjVVNFA2T3dmSWRlY2l2ZFRTblQyWTBJTGo1STFrUGpJTHpQWnBm?= =?utf-8?B?T0xXQnE3VUtVMnRCemx0ZlZsdzlzVFEwekN3eS9FM0hLZHJRMlZQeHdlYitz?= =?utf-8?B?QXVaWkEranFnSmJxUkREbGt4c2VYNGJHaktwYVpxZTd3alJGN0VVRUxjK0dw?= =?utf-8?B?U0pSN05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= =?utf-8?B?MlFNSmlEN3dMTURwQ05uSXZ1QWIxMVIyaEZ5ZW9lZ1R0c3pyNjVFbEdCc3kz?= =?utf-8?Q?gS7qQ7Lqk3zi/nBD4xkRjUkUWYJX46vJj0LA=3D?= X-Forefront-PRVS: 0361212EA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39860400002)(39450400003)(39850400002)(39400400002)(39410400002)(5660300001)(50466002)(23676002)(230700001)(305945005)(7406005)(66066001)(81166006)(7736002)(478600001)(8676002)(2906002)(47776003)(7416002)(83506001)(97746001)(53416004)(6666003)(54356999)(2950100002)(42186005)(103116003)(4326008)(6116002)(6506006)(25786009)(55016002)(1076002)(50986999)(189998001)(3846002)(54906002)(86362001)(72206003)(9686003)(33646002)(53936002)(76176999)(38730400002)(110136004)(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?MTtDWTRQUjEyTUIxMTQxOzIzOjQrYVRuWUI5KzQyeFFLYWg4eU9JSDdLNTRp?= =?utf-8?B?WWl6WEJxeUpkYUpxRHdVTHBJVXN4bE53K1pxWHNsa2FueXRSUUVaV2tMRVFV?= =?utf-8?B?cmtXLzdERlJ1WUhMSzdOSi9DRzVXU3hLSFp6blU4RjFjay8ydkZCcVZGL0Vz?= =?utf-8?B?dTlJdi9ST1p0SmN6elRwVkNPRnBHT01uRUpZNXZHYllQVWRBaVVKTzNVMXha?= =?utf-8?B?algwL3lDOHhTWlJpbTZQa0JiMGEweFNYVGFreVYweFVzbW9tYlN0QnRId0JS?= =?utf-8?B?UFhLYjc3dHI3QWRBdVY1WXZQTWdlTTRQWVlSVzVXenZoTkl6SzhDcmVLSmU2?= =?utf-8?B?dUxJRXNnVnpsMk1VbGI1NFVXaDRBR09URVVnbVlabllndFZUb1lwMWZFbFdo?= =?utf-8?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TFUU?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 5:/c59Pm+btTeGrq2zr/OQppDucu9rsphfiURODTVaEjWrByiqfXPG1BU+UUtU371imvua4VlLTtMdXCjpVSV/PsHhodUNv3iIQlrbQ8XgVqHFHm5XTw3qps5p32yYaSkyCFXpsiLZEccmpKZ5QVL9mpj32pcSMcxGemsHTPW3beXO/y+FS3exFqr8xzXgIWNNGI+qlGrDtfF4lhAk8Na7SvAKjLYj+4T+oi3cAiCOvIFesJMPhufvA3w8fHeqyenOO2UOPGuET48KAgXcS13fvdiCGPwWSithnIUNR6Bb08v/pIyYaVC/69bU4jG5DhBLOBn8ONjeIzy/nCsr/dmfwEb3b03ySNVVcyCwd9YZl7fpxwjjHZe5nJIM7r90T9jyENUzbcF4t0gojNiwQGuCy8ItIgoUo3ViTMXesx9YalwcXAlZmeb3zK+Zg3SkbVTMzScrK7FeB7hZsJWn/0GA4Gw+KWxS38sG8Vcm5pxDf1ljcV/jjAPLreMJudmF5N+Q; 24:oeDgW3cl15TcSSQj2RAyl1RcU3aaABREW1o9+t+HHHK29dcC44x3p9OW5hinOwwZ7qPQ/rt9+a93p8ni9LfdYNBXNJatSKYD3I+JpkebPmg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 7:7e16WqIqk8iMq8qiutjxGkGDuiLUTIpxOQnwjD2Y8+yB6lLYTWvSWfkiQDC7vDm14xOA6TpbsmvRq77i8KvRCtvA4vqQYfWFK9hOT9KvGVj2hxxLmd1Yrkl86unLafatDg+lEGt0jrlsTJwjP6ghwY7+rFCU2XvK7bJYYAT7OWNqWeYAdOcqF4a7E2ufDZq4YCi99LgTZDQu+E0V8vpvCZI5HzOCpXsLyFGNnBwytCumpJThcoIan4PaPfaxfq/O3Ovaq+iU4W4E27cH7/JSE6Oh30rlsKQ7WbPNxhMQnyhgm0nQYhAXsjifejyfxKUjubhZlBstQ7EKfN/X6tF+cNlGbIQNlciJ0tFNb+TJLwxfp7DBbByCJirhS0C2YQ/ABqRiv60+YXFnllMMnWzC6wgQz3zdt5m6t4diQyrNphXrnDShcfeZeMYjWXlMW1IiaVVI2IAwybF8QPBf0BvCWHnvL6sJiTZOtZmDQgK8ARjcNHrhE4AxrDWYPA4CmhVOMrzvlZsQyHYF6AX0IGQm0U8ZtOiTCxZRSC1rhvj1EpNhxq8FeJ6v5RDC9Z/AnTyYWDiSDoY5krZK0/oCD45ELVyzK9VeGTfltou83tNToQ2KrWdvME97CUIs3UVhkr+62RtVFZVeCRnVepCb1VQjGcR4iGXn0UY+kTbZ1BaHFXalmT8eRRWdC6MW+Zg6y6aiOYdzXoTweyweUMGZ40xTj0ULIyfwcQukcjDWZ7AgK1xYzA8gP20+Lc+7GEGziTEm7kUFGhpA21Ru291bWQSsgu75+moIM0lFl/6nkRTbJD0= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:bMKFMZ+n/7TZaEGOK31DX1autyK6m+QimD0vTJYHV2iy6rKM3MkxjrohmeraRiBjr3lU67deH7qSMp5CUxX06OZ/ZjT7Mjlw0tT2juNvz70FhkwEZV8riSxhwdQK9RBU2+me5UhUDxA0rXs9wgKYWhYSr1lzNJsL51I30P4o8S+Kn+a9RHFjf7olyNGx7t1ccP9FNI73QKU2gQs5n1B0g9SzmpiYHlF1ecFO0aHiAxbxGfb8hS4Hk+fqqDIt5fOC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2017 13:42:28.2520 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1141 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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 <linux/io.h> #include <linux/slab.h> #include <linux/memblock.h> +#include <linux/mem_encrypt.h> #include <asm/set_memory.h> #include <asm/pgtable.h> @@ -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);