Message ID | 20170707134113.29711.84022.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 6784660352 for <patchwork-kvm@patchwork.kernel.org>; Fri, 7 Jul 2017 13:49:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D12B28683 for <patchwork-kvm@patchwork.kernel.org>; Fri, 7 Jul 2017 13:49:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50E9C2868F; Fri, 7 Jul 2017 13:49:55 +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 DDEF928683 for <patchwork-kvm@patchwork.kernel.org>; Fri, 7 Jul 2017 13:49:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752512AbdGGNlg (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Fri, 7 Jul 2017 09:41:36 -0400 Received: from mail-by2nam01on0046.outbound.protection.outlook.com ([104.47.34.46]:16416 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752916AbdGGNl2 (ORCPT <rfc822;kvm@vger.kernel.org>); Fri, 7 Jul 2017 09:41:28 -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=FuqZSD1tZozvlsEg6pgT9IkGdjVd5ixygOkeIAXM5Hs=; b=D4hMZRBVPlNampA35fRzv+HjePanllHEEh8k9+nGEPmElyLYBwGJTGvIF2CTrh5WmllRUx4baV2aHtogVY8DLim7LTSBR1EMhMX2OQQcbe2Sp2YUkW0EXukfuJITQGPEpBu663g222py3YZFPxLxlov9RZ/dBchRqHBftFtW8eU= 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 BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Fri, 7 Jul 2017 13:41:15 +0000 From: Tom Lendacky <thomas.lendacky@amd.com> Subject: [PATCH v9 17/38] efi: Update efi_mem_type() to return an error rather than 0 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:41:13 -0500 Message-ID: <20170707134113.29711.84022.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: DM5PR12CA0072.namprd12.prod.outlook.com (10.175.83.162) To BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99189d49-a707-4771-0c38-08d4c53dd808 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:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 3:ZhYet980Xrp2wGxOa7hNW0gi4SIBA4P3nSiXPFNLclapcYoivdrLGQR9zGtdzIciwhENDx6hw1Iv2qZ9XE5KUbc4YbkWJqYk5KrmqkU7H1vkEalxdui18H04fxScVt74GcFranfVnJWCBjAt5evh90hPAVRBqSGzNg6Bj18FT5Dg+bDQSDeLSgEkJFgGRy7dXpO8ZcVeM7c4W/UMUFV6QfMj5XGgeHoSsPIYkx1ELqAWexYlqLnrzpGSd7s05ZGiNIfg4IGQEqYcwLlu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vASowa3UGGnnXXObNf32KKCf8qxId7SSaHEGgrg0X8OWsN6Y6yB/uzWBgiwih1EEyBQZybkkfi8M8Mlf9Eu1CqGrt+x2pQ6eJUlIBw3voKkJ82sH0P/gK72rt0= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 20:/AwlzWRBF7EDjjvfPOpcn+J9ckAXm5O03tQ/fF98CIDSgz414226loHfVY6sE+i5hIextDG048S5pe7v/ExPtTI0SDGlc0U8FNr6YN7E26pXWp1ywn6eNswpfAEeUdLKvlV+EJenH22BCOdltTkbqijlP9FLSAa6wy716ma9hBe0T6hXSqqqGL+6Bors5+FzAhrAMNgxMtBmHrEI/2XU1AwdL017rbKKE4q9oAO9nALa/pguJQKLiV4eqJedGaHNwy/nFlrVJfo9yuwlJQlnzv11bNVl/p2l1/smtGHgB2w4mKoC9yA3jbfIEyUPdCNm+JZv1TEDb0V4cw+1iNkx0uuZmkxkgPNK17T2DqRmGoDUNbAV+fOzG7oEbmKFUzva1S+sHVr8Xt3+gZbTDrDc/rCFKnpCgMO0hiOLnb8TmWbdmF+P7bMrJhVqtd0hQp9dJyGgoK6+uR8ZISlm0Gy/gd+W9H0j078LddD7q4Fft8eozFTpqtSKU5LtfKcMk/ge X-Microsoft-Antispam-PRVS: <BN6PR12MB1137D3E24BB6DCFAF69C189FECAA0@BN6PR12MB1137.namprd12.prod.outlook.com> 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)(2017060910064)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1137; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM3OzQ6dkxoeW1pVlNjSWUxazVlUFU1SkhVK3hhMlJ0?= =?utf-8?B?bzJ1aWF1WXhnUFE4dHNxTHZCK083d05nZFVaQ3h2dmtLTi9OaERhMEdpbDdN?= =?utf-8?B?dkJMbmlZc3RVYUg4MXQ1OW5Oa1BzODZOdWZGUGdrenVqalY1R1diRnN3Y1lz?= =?utf-8?B?R0l6RWFSMFpjamRKbVZQbkVmVHVHeForcXcwZjBzd0l5MXhuSzNSK0hrandL?= =?utf-8?B?eFZRb05CRHdQVEg1YzB3aWFkbzI1dHIrQUFPeWNKOTl3bG9WTUNQM3RTQTk2?= =?utf-8?B?QUpWNGxEanBianpWU2VVTDBLeGZYYnlieDA0UjY3ZUhyamxiTG9qeEFQTzBT?= =?utf-8?B?L0M3UUxPaTVEdEg1dGgrei9hQjBoZ2RXdGtCMUJCeUpJdktiVzQ5MThEcmtI?= =?utf-8?B?b0RhODJCY2JtUDBqWnZ5TGtvMkZ5V3h1TFoxODlqaG83Wmdza1prRU04cFBG?= =?utf-8?B?VUZ5MUVsQmRYTXdmbXdnSmw3Y2lCMTV4LytIQUFOVDBCbE9oNGpyWUk4VFpI?= =?utf-8?B?cXJTQURmNUJwNXJHVm1zeDQyNHRjdGlQRGZVcDlXajFuMVJBNitqckpGRnNa?= =?utf-8?B?WFUwMmE3a01Xc3BvTmNQUGRBUVlTcFROMWhjWVRqU1JaZkdxcU5zMWxyakFR?= =?utf-8?B?bHh0ZjJKK01zK3N2TlQ3ZWlsVWdNWTlVOUlkYTZyTGF6ekdvZWpkTUttT3Nj?= =?utf-8?B?N2VvUHlseEVSWG5qNWc2MnZDWVoxdE5Gb3ByVHhmay9QOWtkWmFkbmlOWGZz?= =?utf-8?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UpNZWhGcFlUK0lT?= =?utf-8?B?THo3dmZtUTFwUWU5cUpyY2ZMRFN6aHdMSDFwWjNISVU4cDFsVUViNEcxenJZ?= =?utf-8?Q?xeKem7SgsDS9oa2I9fhL5DdgM8NOCFhvR9HQ=3D?= X-Forefront-PRVS: 0361212EA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39860400002)(39450400003)(39840400002)(39410400002)(39400400002)(39850400002)(2906002)(97746001)(66066001)(7736002)(47776003)(81166006)(8676002)(103116003)(86362001)(50466002)(189998001)(42186005)(4326008)(53936002)(2950100002)(55016002)(9686003)(38730400002)(110136004)(23676002)(53416004)(33646002)(6506006)(54906002)(25786009)(6116002)(7406005)(478600001)(72206003)(3846002)(230700001)(54356999)(1076002)(305945005)(76176999)(83506001)(50986999)(7416002)(5660300001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1137; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM3OzIzOkVsZVZja04wcHptS1pseFRiblV2ZktVU0sw?= =?utf-8?B?STJDcWkyOFRVeFdUbnNVZWhoZ3FSZmV5eEtwaHY0L3pYamJ5WGlNNG1mZGRO?= =?utf-8?B?bjU0eWp1QXdRZmJQOXFZcHJQQzJxeE0vMkVoMGJXVmJKbzU1VlpSWjRSSmxB?= =?utf-8?B?THAxV01saHkxMklyTVpmNmcrOXczLzd6VDhEQUV4WEwvMVJMMHhpQW8rRFhV?= =?utf-8?B?NTlJdXBGMTZMTUtsc3ZkWEo1bEhkR05NMDgwZzlqYVJoRTMvaDY1MHNkWnd4?= =?utf-8?B?Q0UyemcwekF1SWQ5d1lGSUMxYVltRlBHdnlBb3k5cHpEOTdIWEtEM3Y5RlBJ?= =?utf-8?B?ejlud0psS205SWYxMXRmTEoxUlRLUjFiWjdUVUFHcFRpYldjSFpkakwwQ2d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KyVy/4?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 5:yojW/WlBS5U8PgJqiieJN/N+6PBb9mfONu4aWduklFSkgb2XMCRqFEWpHb+ie8+hnN+uAMOfZT3Fo4J5XBxpSm+QQisqFSaA9xVUyLsMenwJ6waEW4nyUW/ol+XbtSv+iePWAOaiSn+vwpVTN7rR9PYQ+O7Igk2Hwm4VMT6TDc02eprqYVwfDmw1jNKgsNG9ccTalMXOmUcAj3ZYhzDQEVANPf0OIrP/Ov7FSgidTJHByeXUf0IfkqZn+1y+m+U5SCuv970lNuVo8srpYB4XmteTLh6BwrmYkipLR9pBPD0it1Pafvc4qPLKAaxq98SHC2NuR90KBcQV2jmntZt2DQ9nWZ+W1yrc90m2LrjIlULU9nFPZ5zqQNAoP8ysuNTscNUKHD+2ab27HTqi/4UeFcMwIB9VfvCGfn3Ksm31hnGhFoL6Z0q1lWQBqe83ZCh0Vdu1xsZVuThBut4RnTFmb5t0ZGjmbqKzSgCDFNJVvIPk5TDKrwMv3k3HeyRHPdcB; 24:9mqz4v0vge2SEpmHojaJNDkHVEpaSXW+de24a8vvthvVwH6EzYf2AXwff8mVNmUMyrTMESFYj4moey6COLeTMJyjnuQkBmpChryJ1pvgoGs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 7:YNzU1iAXQpLg7l7cBTMsLMJUZGLNo37UfStkExjpWotwDXE8IsPyM379JzDUbOmZUsjfnEQmPbdcwcibVOgWeifRbx1pmDi5m0/q3HCqfqrR9HkgKLKT0PLCQ/SiL3G3AKzG3UD2ytQ0heXVpaXhLhrftfRlgeU7h/dhrLwBBlGV/b0QHnUpNE0z7vxcdppXw6k6cDt2amaLS18IuszssffCqYXyIbnuILt5r5+tgutJGbFauJRVa4yKjKoaX9ScSirxBsb04drTmTbvXRE/0EPspb7xxlpkvegz60N/Tez1Rj08tDPkxZf04HLu8/PUG3jMiGx+qyqlc2lXbdROUXM+pLW+1eMfjIIcdGSJ23QdxrUNan6aAuCP1ej4+Wyqn8Fziic3dyp7DSxDncdBiJ9PEtwPd0gx9iDMYqJNiZ1acNEwY7CQshNchy/wskHo7lpIIUqwtrQ11LGAZHGrbEu3y0vSRx3YQocZLB/JrY3Q8m/IthyBEKep19Lg2+2N6KXZBKuCdgfASVUlFesecI7/v8CAqnO6JWzRI+QioYRQJV4+cEzo5TvFOqvwQ+lKKQ36g5v8+tQzrAP5P8OqfREiyeL66r8piR2lPJCQhfu69lFdXeZC+3IycFeGRQHHGcYy5PHcgjEIEOwS8jhjWSW/7Zn9u5ieH8Re9PVQNuC6cO37w979Sg2SgyrUu7Bu1D9pbWDDF6ezs2ze00O6fHmxEFUaUPfZMHS9Irn9bBxJmAXAQQpfaaPKvNmYCspjGz7LQ1f0xhztjn5BOBkeqXcLX3kTe/CFzg277uDlnc8= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 20:/wJYt4Fi3u+qRZKByS8zNuxOfVdm6YYiPwd/ZxYl9eRTrzm7fL82pVUCmDK7XZsxlto5OrQstHZDsPE4cskRXF2VhDrYoWUfeGTocO2wiQi8yYZ2wtBJ7P/mfUFB6b22DoEp7oYK7Gl5vpbmwqToR/ID3FWkPQ23mn1ijt2bWKPkDUGFn3ViZTYxpvOI4QkzXpudHeEi4St4pfvl0JFN1i9yKcUi0JWB11DGz5jK1XAK8QhgD5nr7JfZq9t/uJxX X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2017 13:41:15.3853 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1137 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/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index 1212956..8141600 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -757,14 +757,14 @@ static void __init handle_palo(unsigned long phys_addr) return 0; } -u32 +int efi_mem_type (unsigned long phys_addr) { efi_memory_desc_t *md = efi_memory_descriptor(phys_addr); if (md) return md->type; - return 0; + return -EINVAL; } u64 diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index f084d87..6217b23 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -1035,12 +1035,12 @@ void __init efi_enter_virtual_mode(void) /* * Convenience functions to obtain memory types and attributes */ -u32 efi_mem_type(unsigned long phys_addr) +int efi_mem_type(unsigned long phys_addr) { efi_memory_desc_t *md; if (!efi_enabled(EFI_MEMMAP)) - return 0; + return -ENOTSUPP; for_each_efi_memory_desc(md) { if ((md->phys_addr <= phys_addr) && @@ -1048,7 +1048,7 @@ u32 efi_mem_type(unsigned long phys_addr) (md->num_pages << EFI_PAGE_SHIFT)))) return md->type; } - return 0; + return -EINVAL; } static int __init arch_parse_efi_cmdline(char *str) diff --git a/include/linux/efi.h b/include/linux/efi.h index 8e24f09..4e47f78 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -985,7 +985,7 @@ static inline void efi_esrt_init(void) { } extern int efi_config_parse_tables(void *config_tables, int count, int sz, efi_config_table_type_t *arch_tables); extern u64 efi_get_iobase (void); -extern u32 efi_mem_type (unsigned long phys_addr); +extern int efi_mem_type(unsigned long phys_addr); extern u64 efi_mem_attributes (unsigned long phys_addr); extern u64 efi_mem_attribute (unsigned long phys_addr, unsigned long size); extern int __init efi_uart_console_only (void);