From patchwork Tue Jun 27 14:58:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812205 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 3850D60351 for ; Tue, 27 Jun 2017 15:01:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C095286C7 for ; Tue, 27 Jun 2017 15:01:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1FE3C286CD; Tue, 27 Jun 2017 15:01:19 +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 A0F75286BC for ; Tue, 27 Jun 2017 15:01:18 +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 1dPrxI-0003m6-KE; Tue, 27 Jun 2017 14:59:04 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPrxG-0003ki-If for xen-devel@lists.xen.org; Tue, 27 Jun 2017 14:59:02 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id E9/00-02181-5B272595; Tue, 27 Jun 2017 14:59:01 +0000 X-Brightmail-Tracker: H4sIAAAAA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878992!1 X-Originating-IP: [104.47.41.46] 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 63964 invoked from network); 27 Jun 2017 14:59:00 -0000 Received: from mail-dm3nam03on0046.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) (104.47.41.46) by server-5.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 14:59:00 -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=3Dqr5I3Mf0/G+9XmmbGxNcRNyUQtUYO512N+GI/ktsw=; b=jxsCkpoHc6KMmmr6VrTszH18wcmUoZxFhRBU1Tjk0q451a29Jyfl07opQC0r2R7/RoqA9sSFdzc1FM9Ow4gexgshts2w0jHNIdfE/Yy1iV9Vt9+cH+92rx/o7XeECz6jNV2YFLM1E4vA3lau9KH5csfd91HnIdaFnVuLDVZ0vvw= 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 14:58:57 +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 09:58:55 -0500 Message-ID: <20170627145855.15908.1043.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: DM5PR15CA0004.namprd15.prod.outlook.com (10.173.207.142) To CY4PR12MB1141.namprd12.prod.outlook.com (10.168.163.149) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95e27857-c909-45de-aeff-08d4bd6d0a18 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:VhaN2x/MybcA5Kwi0MWqWm1Z4BFGz5xX8PdFo5wJ3RCuClSlelUjyn9bl08xyPvtpVRqYT9c8nB/7YrRCVKOsKBYr1KC/lBwt39pN+G3difFKLmVLxraiEa23J6Wd1EGZMB7DYqe+C89kjP7KtjWLhHhsJPU1oyGVDbjjmpKTqj6We5AAal0sCtd71tdVhpH+Q2uwQKDw5Qf3TN7nsxpyu9y2Bk2rDCFJkPqqYS+3sDArApBsxTqr+iuZa83fmTgdZQdM0+ct2tkK2KuT3mUb1XdY/qURW30V8ttTzglCOSy1+jovb0KRzFY9nEwDTev1uyHDWvsoMqjEOgkzGsWsuTjQBcjtaBOCbx+1Wf4KxO0sqULRWo2XSnxj8khOfv/pPFvOlM7RRWDtUP2iDms9cd5BEllp0cIuon6lV9FDfKZ9AP5HpGfbkLagfCD34hwZQ/WDlYbcLRSuANcZzXZ71QWdNSZyvGfzr3etwQIqc4YWBNo19VtXk7PGKKbovgxplCTbfemZUZ4XHbBue4WIB9NA3U4RE3stS2ibAyzhKEhlOfSnqg3CzZ0bqoFPoK5aRCPqCM0tnch0Oe+Tx6qyFTG+dsUBC3PoDW9CqDvINLXeHu7creb5MX17sDejT+fPp9b/hYPBB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CMO8javgAJml0/Z+B2C81SCVsa5XP/rkSCemTXslESnPPq5EAv105mO7S7jp6HacDmbcPzN2ghjbZketF7R90S8+2xEIu9f7b8o00lTUcUdYbjdz0VWupGRv4ztozFPJPxD37y3KuNw/SlP+gAvbXytp+0LiUFTW8o1F8tFMxSzAZiBjupLD4uN2LSdZDTCm5PSWcGL X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(767451399110)(17755550239193); 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?MTtDWTRQUjEyTUIxMTQxOzQ6YWJIeVJuS3hjVEtRdmkycWVWaGVYZXM1MUI2?= =?utf-8?B?WGpYeVYwWEdCSVpRempac1l3SG5vdGJ0NVlaMGlqRkNZM2dwYmsreTVIZk9i?= =?utf-8?B?c1hkV01aZnVhK2FPV01xRGkyNlFIUFd5WWxXcmFwcHhRd0QwOHVnZDVid2t2?= =?utf-8?B?Qks2bmluSG54UE9tUmRzZ1pPZ0VvOFRIV21mWllrNkxVZDQvNzRwdTUwT1Fi?= =?utf-8?B?V29oWllKM1NRdW8xaU1nK1RSNm05NVFIcHRleVdRZy9HNGFqTTJERndhdDFv?= =?utf-8?B?TGhvYnYrbnZWTzg1b0xBZHcrME4zNUNwcnd1bENUQjg1TDF4THB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T3ZWZFJIUUpuU2cwOE54QVdPRGZw?= =?utf-8?B?ZjNoUEg1UGQ4SUhEUW1ScnpjUHRYYm1uQnBuU09QWUdLcUdXZWxoRk52b0Q3?= =?utf-8?B?dVF1SGdpcDNCalUxN2Ftd2t5eXp0QmJIeXJWcDRycUNnM29VUlVZNHErdGln?= =?utf-8?B?K1pFRlRFWjI5NEhDNEFTOXJWQ2g3SEZGSnJMYnA3VUlwNjJqaWFKeUgyRU4x?= =?utf-8?B?T3hlNithaVNHRExkeXgrTCtoSGRrNFZMZmxVbzNqeS9DRU1oZFJzK2FBRW1E?= =?utf-8?B?OHpFNkxzdmJWQlMrMXdnZllFY1o3SXBpbE5JNEpoakZ0M3VPbmZsNlhQWTli?= =?utf-8?B?RGtIV0F6MU9MVFpQNmlhMlFDRnFNcHdoVTE5TG1xUmhZMW0vWFZ0T0Y3OC9s?= =?utf-8?B?NUU3bUhCVmE4MzQ5K0NMUkZFK2prMzdTU245Zk1oME1TUThEVDcwVVNYZVpt?= =?utf-8?B?WXVCWDJJYnRrTm9JWGIxbzlsR0ZBQW55STBTcXFJRHVjd2dwUmMxVENCbEEz?= =?utf-8?Q?TG7btDW9Q/sFmIWFgcNP7Fqfy11jCya9taA4=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39860400002)(39850400002)(39450400003)(39400400002)(39840400002)(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)(575784001)(86362001)(7416002)(7406005)(6506006)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1141; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; ML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microsoft-Exchange-Diagnostics: 1; CY4PR12MB1141; 20:5lqR38Ax/mA+HrOQVOHAs0bB8TY+VQxFlQaqhumQgaZh3lXuN6jdI2/TsQ/Ka6PoMJrFjAkIEY9rs/ZB98dG9PN+BknHUNa2HBOMcnERpKE4KF1KeYWRJ73tOUxFRQ/4JMRu27sFU+5hMk9WvcA7P2obynInzUiitDG71bMHp3zreSaskH9Pd3IhXNBtHXlRr2zmQCBCtJ1eXQjm6OPfhIPjjDETsjBoom/6iSxUhuNJqPjNB4QppC75ExSrknMR X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 14:58:57.1119 (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 15/38] x86/boot/e820: Add support to determine the E820 type of an address 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 return the E820 type associated with an address range. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/include/asm/e820/api.h | 2 ++ arch/x86/kernel/e820.c | 26 +++++++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/e820/api.h b/arch/x86/include/asm/e820/api.h index 8e0f8b8..3641f5f 100644 --- a/arch/x86/include/asm/e820/api.h +++ b/arch/x86/include/asm/e820/api.h @@ -38,6 +38,8 @@ extern void e820__reallocate_tables(void); extern void e820__register_nosave_regions(unsigned long limit_pfn); +extern int e820__get_entry_type(u64 start, u64 end); + /* * Returns true iff the specified range [start,end) is completely contained inside * the ISA region. diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index d78a586..46c9b65 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -84,7 +84,8 @@ bool e820__mapped_any(u64 start, u64 end, enum e820_type type) * Note: this function only works correctly once the E820 table is sorted and * not-overlapping (at least for the range specified), which is the case normally. */ -bool __init e820__mapped_all(u64 start, u64 end, enum e820_type type) +static struct e820_entry *__e820__mapped_all(u64 start, u64 end, + enum e820_type type) { int i; @@ -110,9 +111,28 @@ bool __init e820__mapped_all(u64 start, u64 end, enum e820_type type) * coverage of the desired range exists: */ if (start >= end) - return 1; + return entry; } - return 0; + + return NULL; +} + +/* + * This function checks if the entire range is mapped with type. + */ +bool __init e820__mapped_all(u64 start, u64 end, enum e820_type type) +{ + return __e820__mapped_all(start, end, type); +} + +/* + * This function returns the type associated with the range . + */ +int e820__get_entry_type(u64 start, u64 end) +{ + struct e820_entry *entry = __e820__mapped_all(start, end, 0); + + return entry ? entry->type : -EINVAL; } /*