Message ID | 20170627151138.17428.15995.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 9C4A060351 for <patchwork-kvm@patchwork.kernel.org>; Tue, 27 Jun 2017 15:13:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CAB7283B0 for <patchwork-kvm@patchwork.kernel.org>; Tue, 27 Jun 2017 15:13:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80A8A286BC; Tue, 27 Jun 2017 15:13:53 +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=ham 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 E9B42283B0 for <patchwork-kvm@patchwork.kernel.org>; Tue, 27 Jun 2017 15:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752803AbdF0PNt (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Tue, 27 Jun 2017 11:13:49 -0400 Received: from mail-sn1nam02on0087.outbound.protection.outlook.com ([104.47.36.87]:48800 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751690AbdF0PL6 (ORCPT <rfc822;kvm@vger.kernel.org>); Tue, 27 Jun 2017 11:11:58 -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=jzAtsjkYlBFoO8/ZUliw93KFU7twVyTePmxyI1Jxms+6WiAvyb5s1f9c7LYlQxixnziTJE44hBhZDbUg2CXxcU0hdgcxMVHpRnT7sd+BTdhP5Z/0HWmr7R1kybVZGY3td9QqYn8kGuBi4ml964jl+0MFCexARzsZBxBpsqvJa7I= 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 BN6PR12MB1140.namprd12.prod.outlook.com (10.168.226.142) 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:11:42 +0000 From: Tom Lendacky <thomas.lendacky@amd.com> Subject: [PATCH v8 RESEND 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: Tue, 27 Jun 2017 10:11:38 -0500 Message-ID: <20170627151138.17428.15995.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627150718.17428.81813.stgit@tlendack-t1.amdoffice.net> References: <20170627150718.17428.81813.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: CO2PR05CA0078.namprd05.prod.outlook.com (10.166.88.174) To BN6PR12MB1140.namprd12.prod.outlook.com (10.168.226.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e523441b-be2d-4b2e-e109-08d4bd6ed45f 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:BN6PR12MB1140; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1140; 3:HPRoirvrq9YX52lhx6/ERAnOmmLEDGw6QAHIprtWtdl4AqFfD5xL3fYecHo6V6oJHslmmXnJsheA++Uo+VnrT0Wh4xH0rC/jSCR59fNyZP8Ieql4M9rwyhg41B0XD5sG1I5ymb6+9ltX/hMNd3MXPOfQ5bCAUD3BmDtBXvydvu86lMmQSMWlt80hm16LVrKoK6vos8yGuUAF4eRhUEVf7QtkVRm0sah9EtAmCkcn717DiWUwbmgVZQdcCfjBsh8bjU4cH1g1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By/C5yQKbOWgT7r/J6RkXljMHq8/cOyIVRd3a40nrzqSv89o2M= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1140; 20:zB9vumNIYJr7qeT5KMgdpm3SobWatkjtap/o1iViTOLkcvw0WBqSewxYTkB810E4WA04Yr+3nZAjGESUcf2gGKOgh4a30rQqyLS6VjEuMCY3XDfJZW8UyoNl0JTjMaRkiHCLk9pEyWj7yzoSwqoB7OtmbS+YRm34zbQCISjkhfKI36/hjj3eoxgaTwL8Go+YDhbUFDEbh+aSV7ooz1WgQFJrvum8MgJRK+JsrbSG54+L2CU78ZR6dK6UyX5N0POoHfYdJZvTUembdQ4XSqZmXAVPiHfn0IcCO3Hi0izeP+6QxV3F7cZQsbDDUS+/SuxY5ZfcI2rdqHabim07+Tfh4awo9OMAFsoD/Mz5HISf4M+kxIyXmePFxioshoFnUHQz8oyZLN8uH8iKrHPz0kfckbzrbEKw2KcKu8LfhxbLnWNL5EkbSI/xH2lEnae/Yp+rDpR2gvGkpJpY333HqZOMCY8skEtbuyA2aqtASTBKq8N1y5poxYpllLNQ3gccetzK X-Microsoft-Antispam-PRVS: <BN6PR12MB1140DB5BFBAF836814F1FB9EECDC0@BN6PR12MB1140.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)(5005006)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1140; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095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ispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39860400002)(39410400002)(39400400002)(39850400002)(39450400003)(8676002)(2906002)(103116003)(86362001)(7736002)(6116002)(305945005)(3846002)(97746001)(66066001)(5660300001)(7406005)(230700001)(7416002)(23676002)(81166006)(1076002)(38730400002)(110136004)(47776003)(55016002)(53416004)(2950100002)(6666003)(42186005)(53936002)(4326008)(83506001)(9686003)(54906002)(50466002)(72206003)(478600001)(25786009)(33646002)(76176999)(6506006)(189998001)(50986999)(54356999)(4001350100001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1140; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTQwOzIzOkNHUXFmemZoMTkzancwMnR6b2krR0ltdXN1?= =?utf-8?B?cStBT0wyU1diUWVCdi9IV2FyM1NNNmkzMnE5VkpuN0MvL1BsUmdDMHkxV2xp?= =?utf-8?B?Q2IrVDk3Z3hCMmN4dVlNdzZxNFNZWEtBSmxTTWkvSDROKzVnZDNiS0hZaWJa?= =?utf-8?B?N0JNUW8zWG56Tyt0UWZVZUptRlh6Z0d5clVFblN0L1VFS2psMEROWU9tVTZl?= =?utf-8?B?bHU5U2FybFZKR2hEL3RHdElFd1JUK3MrU0JCL3RQRFY3L2VMb2lEaitrVE5K?= =?utf-8?B?Qnk2eGw1SGlMQVZwUkVybGtGcFdKNmE4T3dlcDdkaU1qd25kVkQxYkRuaFRY?= =?utf-8?B?YXBmd2ZnQ2IwUCttakFSRVF0cGxaOWU3RnQ0c2ZrM1VnS2Q5a0RFMFM1MmQz?= =?utf-8?B?cEF3eWRPaEpFbWRJYlNjUVRKd0R6NjVMMjdQVlRPU2k3NTA1dHMwTzBiOC9G?= =?utf-8?B?ZEZ1V1NtbUVEaGxzSWRjRzhVYlBYUG9VYW91aU5XY0ljQXhGd1lBUWVha0l2?= =?utf-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sk2QlymLinikB4/rc+O0IG5PmqnwHl0df7GpPeKf9JDNvHc+fObMYZ9IXT52qY0t35UbgkAFzB0ecdUPoUpxuIslDh4Mkj5S7zDrgR4Xr75fD74uCKoy9bv3TyrFPMTKHmeupIMqi0WtRNAnJ1iAvz95sYxIw+GRHs/LVVULYcT70i7Tm/v0v7zvM2TVkvOF7h5gPdpRb5NRkQ/P9RrJ1HtTtYY0x0CfWO1uyEFuGZdKClh08ChiTG6Ch4eBzITgjCi2J3Bad5t/WbXhjkC+UwAjG7bWuyfFD8vyBHzZcbffPhnRF0wCVwd1/Tp6b8R6pZhdrovoKr7BjPmTCbdkOWo5Xfqf6A4JVPtzyR/IFOdDxVKY7F/Hyqxg= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1140; 20:ykGiICnVwopn2zZ1e+G0jYq0oXpHvgVvLWdaxvBfJKCPUbjSROICOaC38Bzt+UeDMIPJuKHkd66XCo8BMa5gKm3B7hyj/SMUHyBM8w3B4dbaPXZNK13bYvLBlcmdWVQS97kaio4mPQSCjDMbsCqfyIJunZSyHnKBP2LkWYObzDduHw0tSq3n6nSVNm5E1HIebRUwBarQXTHrpF7LPXbLFrKrpPveGcj3Q4FPkCbs+FqFaMu4/Ik0gRDWKGixqZ1j X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:11:42.8031 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1140 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);