From patchwork Fri Jul 7 13:41:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9830365 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 2D51560352 for ; Fri, 7 Jul 2017 13:43:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22D2626E3E for ; Fri, 7 Jul 2017 13:43:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16BE52833E; Fri, 7 Jul 2017 13:43:15 +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 93DE228542 for ; Fri, 7 Jul 2017 13:43:14 +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 1dTTVT-00042g-27; Fri, 07 Jul 2017 13:41:15 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTTVR-00041g-NL for xen-devel@lists.xen.org; Fri, 07 Jul 2017 13:41:13 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 95/98-02176-97F8F595; Fri, 07 Jul 2017 13:41:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAA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!1499434870!65608546!1 X-Originating-IP: [104.47.37.67] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6993 invoked from network); 7 Jul 2017 13:41:11 -0000 Received: from mail-cys01nam02on0067.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) (104.47.37.67) by server-12.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 7 Jul 2017 13:41:11 -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=rx9s+oihZA9M/4viqGBQ82k2m+x0lSa8RDoJNJ3T0eA=; b=mAzSDyC0dReCH2gWZMvkq6Pd+sEVKMnePct2bmSoxSAwes9cYYXjnIJA7jBtu+UeEYCHiNJfGCJri7SJEPTzUWRedsQbfadGjvTqscrW3obKyoZhb8lL1GYPyOfPheTicloYi6gR6jG/m3Bzw91txUI7TLL6s5dnTOelx2ON/n8= Received: from tlendack-t1.amdoffice.net (165.204.77.1) by CY4PR12MB1143.namprd12.prod.outlook.com (10.168.164.135) 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:41:04 +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, 07 Jul 2017 08:41:00 -0500 Message-ID: <20170707134100.29711.4834.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 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR15CA0034.namprd15.prod.outlook.com (10.173.226.148) To CY4PR12MB1143.namprd12.prod.outlook.com (10.168.164.135) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72cd2f85-0381-4367-8c54-08d4c53dd265 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:CY4PR12MB1143; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1143; 3:e0rxgRHS9j9BsMh05wZktsdLhC3vxdhHxy5TDnbeQK9aMDW9aD1ICFIe0gjgiSWdm702gdHloRAClGwqSfJPGaHc/DnSsc3kiIuWTbi+5ZO7trAiJEt6W07g6XKi1u7reqKQbUIAhViZVmgGqJGuoLut2OFl83TLE/5ylsND58d5RuHXMV4KI880j9rL0EZhhMCNsEJ7I93Zf4n71c1WFjtxK4BByDoNPPTgampHtsasOp7ue6VJ0UcukzPajpfWSV438oUNKqlUtOz9bfjRTrcSnym+URqcMoFD1MUPsJg2ukpSr4xPq759i9bMi9iFCiOje4GASDjPn5MTr+vhAwzjYjmLkIfQHRUbOOXhibJAmKSUqFUBS1RGFrwdKl8Ub6LGcf1fFY45tRYP3GHweXqrYn0VC02bPgBU6Olt6DkpjKVuMpPGc0RcgTOXWP9D4SQC9PGeNZrHZZivHPdfDHAQ56L3mDnk4Wy0p325/Ij/3o6PixZ0Z5C1uELxrpB+VfHqkpN8Iuyf7s544A6twqmi0nB5btthbjNNLhQTAlgKQwX+YSFcL8sXHMvVpJSMHS+2KC4ty7QvMxihU8PTNnEutvt/UdTZ4fKQCI5OEvgFPDj6FazAL5LjiKvdcHsKHATpkyX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4CMs5iTA6ftuT5Qky4hgHT14ROqJILrvlUQ6/xu9FpyLoLmwpAYvXUDkpwypU89rbMFT83OrDu90crgJjJfdhEyEvuLaRCfuUV0+d81jxpWpNlSgUmOVlwbZ0LjdlB5ttK8RmzJcyfZ1Ko1rKRIksIfgDvT7pYtkiUvu4LP5iGV5+n19RnnWrihNhDRyhWMFFszB1u/Q+JKmX4KWQLbPAQhK7twVBisiUSLoQDyCUIBEwt72Cz0n1/+UWL6I/M X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(767451399110)(167848164394848); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(2017060910064)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123558100)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1143; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1143; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxMTQzOzQ6R2htT0E0RVRsU29JTnd4ZDU0S0xiMEZoaHFY?= =?utf-8?B?S1hCVGl0TVE2Y2VUNGFKZFdsM0NYL2ljampGOGk5czVHcUl3amdQNTYwd1NT?= =?utf-8?B?b3g3Qk1sT2VaZExUVXAvQkFYOGJMMzIxTnFuVkdjVjNDZGhQQ2hkOFdwTmxh?= =?utf-8?B?SHZQa2lsZWRZRExIRGJXdkJNaEJXcldwYmxwWEh6NGhoeEtvM09ZbzFQamV0?= =?utf-8?B?dDBXRk0wcEMwaHg0QVR0enJxTHVvNFFIOTl4Z09MK3Qxc0N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c1NDMldIdENUUllQOElPRGRWQVJq?= =?utf-8?B?ZmNxZC9Vd2pWRGxpVW5BblA1VkJSYWZ0MXA3TGM0SEVsYTcrc0lra2dTWUVO?= =?utf-8?B?K0ZJVmgzSXRWcE9qSlIrK2g5aDBzUWFBbGRjelZ6S2N0TXdFUzA2QzI0Rys0?= =?utf-8?B?ODgwb2JPOGJLNWd1U1BLZkpPY0RveG1nSFdxL0hKa1R4alJxRENFRzFxblJY?= =?utf-8?B?N292YmdIMmp6dGlSb2FUOHlTRnk2WHFJMjB1akNXbDJ1b0R4ejFYTzd5NzBG?= =?utf-8?B?UXlxYUVMbEJaRG5OajFFZVN6VnhqZ2QvZ2VuS0tSV1JESzk3SEJUUmJGZU91?= =?utf-8?B?MWNjUWVRQ29lSGFCRzI5VnlQWmRCVjNrbnFWaFJjdXRQaE5FdFRwc2RlaCt5?= =?utf-8?B?RG9pYVgySnIrMm5YUDRwcHFkV0hycFZiQkdiTlZGVjlYc1V5VysvLzJLRkxu?= =?utf-8?B?SW9UMGs2KzFWakQrd1BWVVpzS3B2czZPZVdVZEFTcmwwQ1ZRQUJiUjVQSmd6?= =?utf-8?B?L0tWZW9nNWJYMGNsWjI0anUwVldwYTEwN3UyOVZDcmZQMjB4VUNPWkgvemh1?= =?utf-8?Q?5FNGXw91GUdlS38Bbb/9BI7Lp5K/xgsgsLiY=3D?= X-Forefront-PRVS: 0361212EA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39410400002)(39860400002)(39400400002)(39840400002)(39450400003)(83506001)(7736002)(25786009)(9686003)(110136004)(38730400002)(23676002)(189998001)(4326008)(42186005)(47776003)(53416004)(97746001)(230700001)(86362001)(305945005)(2906002)(6506006)(81166006)(7406005)(3846002)(5660300001)(50466002)(33646002)(7416002)(76176999)(66066001)(1076002)(54356999)(8676002)(72206003)(54906002)(55016002)(50986999)(103116003)(2950100002)(478600001)(6116002)(6666003)(53936002)(921003)(1121003); DIR:OUT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RfP5wsvWuEXwmRkNaHmW3UeCY2lSQ6r4rbNQ= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1143; 20:YQTjsysAQIhF4gFLG6tiMz4zOp9damdNrkR4B7og7KAZVNVpZwk5Zog62esmeKtlbpM69fyftLz2rKw/00y/bBFPhnwT3eZkmcqNAohp5l8myGmWqSar+KI9uChMQ8LDitXXGgvfAXS/K/xm7/PPSKOfudGaonvN2AzAMLPyqHryAjuTQrsFgT3qTBOx67FcD3E4sd8y5/tPmBlO1zUWvcvMFTBv05urMqrim2Nne6DbrqCjaMbz6iP2SHxD04Sq X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2017 13:41:04.6881 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1143 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 v9 16/38] efi: Add an EFI table address match function 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 Add a function that will determine if a supplied physical address matches the address of an EFI table. Reviewed-by: Matt Fleming Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- drivers/firmware/efi/efi.c | 33 +++++++++++++++++++++++++++++++++ include/linux/efi.h | 7 +++++++ 2 files changed, 40 insertions(+) diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 045d6d3..69d4d13 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -55,6 +55,25 @@ struct efi __read_mostly efi = { }; EXPORT_SYMBOL(efi); +static unsigned long *efi_tables[] = { + &efi.mps, + &efi.acpi, + &efi.acpi20, + &efi.smbios, + &efi.smbios3, + &efi.sal_systab, + &efi.boot_info, + &efi.hcdp, + &efi.uga, + &efi.uv_systab, + &efi.fw_vendor, + &efi.runtime, + &efi.config_table, + &efi.esrt, + &efi.properties_table, + &efi.mem_attr_table, +}; + static bool disable_runtime; static int __init setup_noefi(char *arg) { @@ -855,6 +874,20 @@ int efi_status_to_err(efi_status_t status) return err; } +bool efi_is_table_address(unsigned long phys_addr) +{ + unsigned int i; + + if (phys_addr == EFI_INVALID_TABLE_ADDR) + return false; + + for (i = 0; i < ARRAY_SIZE(efi_tables); i++) + if (*(efi_tables[i]) == phys_addr) + return true; + + return false; +} + #ifdef CONFIG_KEXEC static int update_efi_random_seed(struct notifier_block *nb, unsigned long code, void *unused) diff --git a/include/linux/efi.h b/include/linux/efi.h index 8269bcb..8e24f09 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -1091,6 +1091,8 @@ static inline bool efi_enabled(int feature) return test_bit(feature, &efi.flags) != 0; } extern void efi_reboot(enum reboot_mode reboot_mode, const char *__unused); + +extern bool efi_is_table_address(unsigned long phys_addr); #else static inline bool efi_enabled(int feature) { @@ -1104,6 +1106,11 @@ static inline bool efi_enabled(int feature) { return false; } + +static inline bool efi_is_table_address(unsigned long phys_addr) +{ + return false; +} #endif extern int efi_status_to_err(efi_status_t status);