From patchwork Tue Jun 27 15:09:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812417 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 C2EB060351 for ; Tue, 27 Jun 2017 15:12:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF2C528714 for ; Tue, 27 Jun 2017 15:12:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D121286BE; Tue, 27 Jun 2017 15:12:36 +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 50552286F1 for ; Tue, 27 Jun 2017 15:12:35 +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 1dPs8B-0000jX-6t; Tue, 27 Jun 2017 15:10:19 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs89-0000he-9m for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:10:17 +0000 Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id C8/0C-01994-85572595; Tue, 27 Jun 2017 15:10:16 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA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.messagelabs.com!1498576213!52140933!1 X-Originating-IP: [104.47.37.51] 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 40591 invoked from network); 27 Jun 2017 15:10:15 -0000 Received: from mail-cys01nam02on0051.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) (104.47.37.51) by server-9.tower-31.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:10:15 -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=T4y+HMr8GbV17ti+MVoofHF8Jn1YZMepjPxbuGp3HrYibzI2ToFDG4g7dDFTuoPQj5HwaIi682Zdwsx+p+goJxvkiPHtpCv30ARaR3Q5Ux+KKaFo4RXYr2yDoEXGBW4npOl2avhWrpDg9ikfc6qsavquY12RgjyMBgrCHyh0gPY= 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.1199.15; Tue, 27 Jun 2017 15:10:08 +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:09:59 -0500 Message-ID: <20170627150959.17428.15703.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 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR21CA0059.namprd21.prod.outlook.com (10.172.93.149) To CY4PR12MB1143.namprd12.prod.outlook.com (10.168.164.135) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa5cb333-d079-426c-7c8f-08d4bd6e9b59 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:CY4PR12MB1143; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1143; 3:lbjoQzXT8Pc0RjwBoAfPwn7FCOLnj6dA/400GA6VCJbDmFKfl8q9UVv+ixVI7uicz34Io6MbrE0y3maAtkCeH4QOvOB1CXS6tJGH/Ja/ldVpURS++DiK5e+PHzGypoN3Bl2H7I6uMcyhMJPmBRmMZG9secaV/FL27Ryimm1HyZpfsdiBMiyDauf2XW15Z62DoCZ8SFxDtIzi9hmQG4URjDHv/e3qNAz4FsxzNGPjZCmv4DEGgq4WHyUq5YfwqeSjWqvoN326UxR4pD/ZO3pYxImLrVagHW+e+2uVhCZ/rx7KdHtrfB6njyXqyvHHJ4GvKQpeWgPHojVMSHLeih600JHTAPCTsuOkNrKNEotd97oK+AlPCFXnYVagUgA2s56guwi73/AapowSbrA9KCgZGon0i0p0DiLWujvaJzOze4ZREFL1IV+OAsoNYj753Gse5hN7/Om7tM8DqjOIO1dLQE0L/Duoy+kFKJj4kCYGCdgcUgSZeyU/Agqv2FhLLneU36qvzGyA0YWr9xUP8hL+BaovVFwdEoORZzsWeHht8BdMLsTkaUfLNEFAlmorrrdrv1KnhZAyZ8kK0+EiFGF/YvE2pfq+5kbZFDZurbWLGkkEGvZErW0FxQ3Dj/ZjcC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QxTGknb/BTzUdMLQdRYnYdprwGfszfVlJivwGLoe7bC8bkIPOzkvh1zV4bv59sVypTbMN3WmCLUxHJ8BrQcek7+hdDZjExjNapsdWpvumcHP5jTxT1mI6K54ddUFIUT7SAyse+Ps1cumOaH/utL78acM5Ic3Wto/oY5mI9AKeyShAep4sp09i5uCgqhAMMCn18PIdLmsuuCW3yqhzai9AvS4 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)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(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?MTtDWTRQUjEyTUIxMTQzOzQ6aDdtRFU3Rmx0QnRmVWE5bnhUKzhuRVJYS0tx?= =?utf-8?B?ZG1FUXdEOUo2SDVsZFlZSWZSVk5GVUxsNTR3VGxjd21aMDk2bHQ1VUtBWVAx?= =?utf-8?B?ZGdMajZ1RG4rWHNUcWFZdTlEa1BLc3JweER2UVRwT01EeWFHc1hJSHB4QVMy?= =?utf-8?B?STZPcmtqd3BLWFVSSmswSkNqVnJLeW9idGpWMXpqWlF4YjNFWEQ4NWNGanJh?= =?utf-8?B?NXh0dXVodTJQbHNzaG1sWW1kVVJDWEppRkNta1VKZHBNNmRmM00rV3owWkJU?= =?utf-8?B?dVhXNXRjbE5GZ1UzSWFiWUY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vZGFpdDhkVmQ5SHhPTUpSTG8yemVuNUhLWTNi?= =?utf-8?B?SklreDNMaXg1ZS8reVlGYWJOREl0cEZyajJ3ZSsxeGd3TUlCQ1BTMG1ZZC94?= =?utf-8?B?OXNEQ1Fkb3N5RUlsTENlSWo5ZkJKMDJ2SXhZd2ljMWp2Um4waFBoUEVSZy9U?= =?utf-8?B?S3BPRDQzMVp2ZlRrN082d2kzUExhSU8zNGtkZlJTMWZoRUNiMm9PQzhjOG91?= =?utf-8?B?T1JBMUc4MElWT3d6eUFjTlFVUXZmSE1ZU0VRRkNTcmVhd09ScU91cGZoZUN5?= =?utf-8?B?TEQxek9KR1FzN1doUVhJdS9Ec2N3QjFMMVQwVTZLVTZlMkFBdjRDNU90a3pO?= =?utf-8?B?a3hBcSt4WnRBaHZlNXo3dXBxOVN6Z3Jta2E1YXd4MTNnL1pTMFp2RlJ0Ky91?= =?utf-8?B?VXMyY1FrNCttYlR3UURGZnc1djMrRFMvMlpjN0JWQWxQeDBTMDE5SnJkb2o2?= =?utf-8?B?Wkl4NnczR1lERURYOUJTbUliSFAxenJ0ZzRpaFNGbzZ6aGczNnRqSjBZWWh2?= =?utf-8?Q?aehk9IW6hIJpujWKavC0oq6uOwRc0eYW7wac=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39400400002)(39850400002)(39860400002)(39410400002)(53416004)(7416002)(4001350100001)(25786009)(42186005)(7406005)(8676002)(2906002)(81166006)(4326008)(189998001)(103116003)(66066001)(55016002)(54906002)(6506006)(38730400002)(9686003)(47776003)(23676002)(110136004)(305945005)(33646002)(53936002)(50466002)(72206003)(6666003)(478600001)(3846002)(6116002)(1076002)(575784001)(83506001)(86362001)(50986999)(230700001)(5660300001)(54356999)(7736002)(76176999)(97746001)(2950100002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1143; H:tlendack-t1.amdoffice.net;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icRA4NBhewU2Kt5YpMC6XqUBEA0ClK8Si0gdvlojreNC7Zl1z3sM22N82nDgEJHW+W7zyHvc6NyuPTJVZ0+Y= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1143; 20:Z+0rL7jYOaWGlrPt/qvLkxrWyGvxpyLkrva7Mc8hVouCIWP5YeY9SLM2cvMuJG9pEoBLsFAWhlSRB0DPYl/OcPgH0b7kZQS1AP1+2wD2+iXct2H6TdnIzv72WlzLxHGhioCDMMkiB057YRtb5XQNpbgEFwAQbW1kjnXVcU7xXlsrWtQmUFmqTSc1V4kmdE3vL4vPJf2QKqa4hD5xTjPhVUvQqM6yoYDsAZBk2J8WH9ur7LYMpyiH0c2LCmqh6l/c X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:10:08.8811 (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 v8 RESEND 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; } /*