From patchwork Tue Jun 27 15:08: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: 9812391 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 8B0F060351 for ; Tue, 27 Jun 2017 15:11:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E1C9286F4 for ; Tue, 27 Jun 2017 15:11:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 729CB286C3; Tue, 27 Jun 2017 15:11:17 +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 93FDA286BF for ; Tue, 27 Jun 2017 15:11:16 +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 1dPs74-0007wE-4q; Tue, 27 Jun 2017 15:09:10 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPs73-0007vC-0s for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:09:09 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id 4A/53-03613-41572595; Tue, 27 Jun 2017 15:09:08 +0000 X-Brightmail-Tracker: H4sIAAAA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.messagelabs.com!1498576145!109823115!1 X-Originating-IP: [104.47.34.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 8721 invoked from network); 27 Jun 2017 15:09:06 -0000 Received: from mail-by2nam01on0046.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) (104.47.34.46) by server-9.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:09:06 -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=IbvHU+X3HtNhzeyYskwsys/rpVmfaFp1qJ4jHzapIKY=; b=X1RxwZF7LaE4SG3kdXXtxLJs3+ZsAdmuqr5ax9UIYlwQyH/fppLZ592w1p5XGhMpK7G+mhZzeLLUBrZ1WW/KS/1adlgC/SobX3o51mTW9PAy5Knk9xRZwGmM7m9qZs/s0CCSWLLIqLbZvxVEgKQFv4qpTe74yRGjj3aqHcHNPTU= 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.1199.15; Tue, 27 Jun 2017 15:08:58 +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:08:55 -0500 Message-ID: <20170627150855.17428.90364.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: BN6PR03CA0044.namprd03.prod.outlook.com (10.175.124.30) To BN6PR12MB1137.namprd12.prod.outlook.com (10.168.226.139) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 16b58e8d-96db-48e2-f55f-08d4bd6e70b1 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)(300000506067)(300135500095); SRVR:BN6PR12MB1137; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 3:OAnPvRcJU6RLkkClrKG7zzRwrOXNNX4ieGDA8NGmSxFfB+OlQ/IGsTCQ5LvgzYEdvT6zSTXecEPy5rfUyLPsAiIJoHE7m8Ub/y9D7ZEHtqVJVIGJNJ6gHIC8XXdWAQ/OIkDAWpCsXlj3w0MCgvorSAXXUnd5N9cOrLnrgI2m00ofa6h0peliaL95hMNj1xXpJC80nG9KR5gcBiGNThMGWPonWulrGDhXPbxKKP4dRSJG5w089foLnaHu+8buSyo7/MVGKb3E64h6BmLXRxpP7dgW3rKd7Cmb8Kjj60hWFGCZ7Y1ivm2ZcZvUGJ6QJgJ50kuzojvt/fe42c+fT7OglS0ivaefMzxvQ/z34BexE3vtuexeUA2yax9ymIXHagUtidZZQRVMmF9DazyfaPjj2eNDdYqKGcmw8UezErWXI/43tPE9Hr/N5ZUfplCimYEZZ8qM/x0s/dm/EhCzMX/Ce30aKNjrnzXWWVoUs9TzI0NtvRLzAhWujfKyWDLpgIoOLZ4urmP0ITeQCIwr6HMCyYKuMV2m0N03de5mnHHJNf9TBdbUEVbzJ1MrkwEuv/ULoCxPps4sm8fecB7gg+7iAA5gEeH3OOTsjYO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3DrfWWoBCGOdNlyaHQEseK1ltkHjosLjFn9N8u1Aof694xUIJ642px606AW39tEMWJnJAt104fspr6498oRrdfoYFYou60Rn5OQbxJ7hpmw1dMH3xn1ms8Ev6krIdah/y/KOV0biPtnR/18N/FcNx90QPi9ADv2talbsq7rMAwoHM4BCCuzcSRfJNLBmfnglz9sNbc+PU4pRSXNHCcKQMkC3UOU/sId+0qo4qiSIMKeI0csf660W7vsbcxaAsrMR0MEVAvD0gUdNLevFa5EJ8rGzu7UW5jnRP7gRBVIUE/5h X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(767451399110); 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)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(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?MTtCTjZQUjEyTUIxMTM3OzQ6OTFua2VabFZEV0kzR00zRG5EUFdFYWpaa3N4?= =?utf-8?B?bW9FU1A4L0hGZGd2TmlYMHZwbVRtUlMwa1JCTUpDVWx0eWgreVAzaTdrbW9p?= =?utf-8?B?SlZENlkxbHhXYkdid1BqYVlMODE5NUc0VENldEM1YjFIMnllZnR1SjMyZy9w?= =?utf-8?B?Y1o4QjRlbjg4ZHFlb0lHeDRUeklRY0FPQ28vNG5sWXB3d0lLUnRVbE9tUyth?= =?utf-8?B?WkdPQVpYSlFRam5nZzRUa0ZLbjJUQ1VUWj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kTFI2aDdnQWFiS0NieUxDelZzbzczMzdUQkswTkRpdW1O?= =?utf-8?B?YmJlcXFUNUJvQ0kwd2R1YmVpbDRVa2FMNVNJN1Y5VlhTUzFmbnlrTW5DdzZm?= =?utf-8?B?TnBXTFg0clNNNGxyYkwrUk0ydEp1anFCb1dTU1kwcVZHbEtMakk4bHhJcG1u?= =?utf-8?B?UmdEWkoyNXV5V1pEdWt1Zit3Sk51UjcwL0UrY2diZWhpeUsyL200aHZ6UUVl?= =?utf-8?B?eHRsZFZiU3g1NllrRHAxTTBZT05saXZ6WGh2TFVpVys5UFUzNldIOXZ1TTFh?= =?utf-8?B?OUV2eTI5UFBKclJYeEx0QXlYRHczemhOQTZRWG1pelI0bnFIeDBkSjAzeWdj?= =?utf-8?B?Nk81alAxUFFHZHR5Sy9PeXZnNVU4d1Y4UjZkWXBEeWExOHkxblpVRkxOSkVz?= =?utf-8?B?cHNROUlFNndBcFdwbHNldzcxbVBxTXIxUEZiSmdtZEdhY3V3RjJkdEJpaHE4?= =?utf-8?B?TTZ2K0dRb0dxckNHdXFJQWord3NRNkN3RkljRVc1UXJ1bzJDY0VvZklvdVRv?= =?utf-8?Q?j4kO6/q5UFcHt4vVs=3D?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39410400002)(39450400003)(39850400002)(39860400002)(39400400002)(2906002)(189998001)(110136004)(7416002)(305945005)(4001350100001)(33646002)(8676002)(23676002)(72206003)(38730400002)(25786009)(4326008)(7406005)(55016002)(53936002)(54906002)(6506006)(9686003)(478600001)(50986999)(6666003)(2950100002)(1076002)(81166006)(76176999)(5660300001)(54356999)(53416004)(83506001)(103116003)(42186005)(66066001)(7736002)(47776003)(50466002)(97746001)(86362001)(3846002)(230700001)(6116002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1137; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en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QKKFx2V9sbWSGIxT+vsgianb19Td16j6EhW4D1zKETL+YOMb6D; 24:2396+FEUgZppseliEF5RCpoy49H6gI75f9V4yI+5hnMZFsWnGutWF8knJ75insHQSNYF2Sw5HVCOIFc6KVcP6apU8hrHeLJ54gA5iUonBrw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 7:e58sGxhWV1pifQZ8RlerjGxr8I5sXxbMSKo+3d8hGpHU4EVaIF0CgtNPnAOgqSaY0hY4/rUt329AmEv/sxxWCwgQ9/cQQyZ0pq8id2ajpnscA7fo5aBkYGeSmlm33ZgBfEvwME/yjorRhq3mFMFDcs3OeXqiLBzrp/MLFBdYnUFcm0xlOaZpkVS9T+5iRPZkh8KS1CzZUzSNj5sGVCY++910whXUQUY/0H2LI5BFpUIZOy1G3ufKJVYmySmAX6Nvrz7C4nGYlcqQJ1plKUDkTXixh8iepaeHxAhjpOSrRXygkQ/wkGeJB266TDSUX8aDOFbt5TCKtcNN1jJ+9A4t5PoYEtJQkZPrcPOMFBVAs1bnGts6KPrhaxspSP3sCx5XjuTbZptbwKveNqAt323A7QfuH82/mg4J7nL5ZTT+ytiNKzSUsyldFaXj/Mjwj8I64KutoaeSOPLp+18ULqcHYOf4jQg6JcLtx4Jr9ElQ3ng8WXZuhq4vNqc4siL9PSvKoyyW4FAIPb8dCEmIbXRE/hX7ashyVJXtLT6IPx4KbVz1HAiTwlZnNw7J/9sz7pe0MoTd+07GY7azaoN8HJtVjMjbUscs2Ezr1HYwSp2QL93dBM8wiBGkukV2C6kmvr6Fmj0NYOqTvTwDius6/IwuNnWESNTY2eNQQP21ATng6MCQr963I980TNMl/Mj0q/UxnEUYub6TnFlW3TRsowBw0sK6V/bp2Ir/kycGGLemvlF2IDJLz9DHIoWBqbaGkt1geBkK9rr21VYndxF5JEMb9qMJdmobiztkYSaZuAQPfaI= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1137; 20:v8Cape1HzqowShXg3BeBPqM5qhWBe8IRQEIH5xXQtBwUfD1DdizC1lH9O2RcmCz5yvwFHXjOiz2yra0cjeTM32XlrwdrnbIBSO79kgiHat1KEHY2wT2aK2SQe/o4lNDju6xwCq7WY0NlvVgCy3PrPiHHMioIO6wVSTSfeOJGoVY4JgSXknZPho3RcCNQc1PoWVScjCwGMXgjaeKJ5kmu/NoRcWPQy1h8EfxxMIXX3/FDlXN+dbvelP3y4zuer/1o X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:08:58.5220 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1137 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 09/38] x86/mm: Simplify p[g4um]d_page() macros 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 Create a pgd_pfn() macro similar to the p[4um]d_pfn() macros and then use the p[g4um]d_pfn() macros in the p[g4um]d_page() macros instead of duplicating the code. Reviewed-by: Borislav Petkov Signed-off-by: Tom Lendacky --- arch/x86/include/asm/pgtable.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 77037b6..b64ea52 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -195,6 +195,11 @@ static inline unsigned long p4d_pfn(p4d_t p4d) return (p4d_val(p4d) & p4d_pfn_mask(p4d)) >> PAGE_SHIFT; } +static inline unsigned long pgd_pfn(pgd_t pgd) +{ + return (pgd_val(pgd) & PTE_PFN_MASK) >> PAGE_SHIFT; +} + static inline int p4d_large(p4d_t p4d) { /* No 512 GiB pages yet */ @@ -704,8 +709,7 @@ static inline unsigned long pmd_page_vaddr(pmd_t pmd) * Currently stuck as a macro due to indirect forward reference to * linux/mmzone.h's __section_mem_map_addr() definition: */ -#define pmd_page(pmd) \ - pfn_to_page((pmd_val(pmd) & pmd_pfn_mask(pmd)) >> PAGE_SHIFT) +#define pmd_page(pmd) pfn_to_page(pmd_pfn(pmd)) /* * the pmd page can be thought of an array like this: pmd_t[PTRS_PER_PMD] @@ -773,8 +777,7 @@ static inline unsigned long pud_page_vaddr(pud_t pud) * Currently stuck as a macro due to indirect forward reference to * linux/mmzone.h's __section_mem_map_addr() definition: */ -#define pud_page(pud) \ - pfn_to_page((pud_val(pud) & pud_pfn_mask(pud)) >> PAGE_SHIFT) +#define pud_page(pud) pfn_to_page(pud_pfn(pud)) /* Find an entry in the second-level page table.. */ static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address) @@ -824,8 +827,7 @@ static inline unsigned long p4d_page_vaddr(p4d_t p4d) * Currently stuck as a macro due to indirect forward reference to * linux/mmzone.h's __section_mem_map_addr() definition: */ -#define p4d_page(p4d) \ - pfn_to_page((p4d_val(p4d) & p4d_pfn_mask(p4d)) >> PAGE_SHIFT) +#define p4d_page(p4d) pfn_to_page(p4d_pfn(p4d)) /* Find an entry in the third-level page table.. */ static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address) @@ -859,7 +861,7 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd) * Currently stuck as a macro due to indirect forward reference to * linux/mmzone.h's __section_mem_map_addr() definition: */ -#define pgd_page(pgd) pfn_to_page(pgd_val(pgd) >> PAGE_SHIFT) +#define pgd_page(pgd) pfn_to_page(pgd_pfn(pgd)) /* to find an entry in a page-table-directory. */ static inline p4d_t *p4d_offset(pgd_t *pgd, unsigned long address)