From patchwork Fri Jun 16 18:51:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9793237 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 DAADE60325 for ; Fri, 16 Jun 2017 18:53:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD4DA2865B for ; Fri, 16 Jun 2017 18:53:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C094428671; Fri, 16 Jun 2017 18:53:47 +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 6DD692865B for ; Fri, 16 Jun 2017 18:53:46 +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 1dLwLP-0001hO-TQ; Fri, 16 Jun 2017 18:51:43 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwLO-0001fc-RF for xen-devel@lists.xen.org; Fri, 16 Jun 2017 18:51:43 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id C5/DB-03058-EB824495; Fri, 16 Jun 2017 18:51:42 +0000 X-Brightmail-Tracker: H4sIAAAAAAA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com!1497639099!48525797!1 X-Originating-IP: [104.47.34.67] 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 4016 invoked from network); 16 Jun 2017 18:51:40 -0000 Received: from mail-by2nam01on0067.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) (104.47.34.67) by server-2.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 16 Jun 2017 18:51:40 -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=Oz2Chn4MoIWW3MhWLhL9PGueHbW4MhitjrCSBSFgM9A=; b=jkBihpALfV1sB3GSfJrnzWOo7BsCnPbTqBp0/ELtA1yhKQhIDCnYaz8a93BtekXfjWLbqU96AANgqjcaVDR+yL7lwkKu/R+k8g0PxLRFXVKe4pEkXGT1fI8p4n6SAZxK+bnyRH/soOsQ0byTyyfiQoJ8l3CuX1KxOsR0/v7E+LE= Received: from tlendack-t1.amdoffice.net (165.204.78.1) by BN6PR12MB1139.namprd12.prod.outlook.com (10.168.226.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Fri, 16 Jun 2017 18:51:29 +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, 16 Jun 2017 13:51:25 -0500 Message-ID: <20170616185125.18967.33160.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170616184947.18967.84890.stgit@tlendack-t1.amdoffice.net> References: <20170616184947.18967.84890.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: CO2PR07CA0075.namprd07.prod.outlook.com (10.174.192.43) To BN6PR12MB1139.namprd12.prod.outlook.com (10.168.226.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73dfd98c-c136-444b-0930-08d4b4e8b65e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:BN6PR12MB1139; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1139; 3:tNElEe6/mSBUAZ0v7C9BrvFhLMjBrRKNOyzFeuRvn4F0K9mleXRH2klgX5jBnuc9fOU0dC1jEKF9uGEWQjwP4SctZ/kZZpeSlq5eBo+SJ9eX+z2CF28wCMKkTqnE5EPzABXG0+rnbwtCHOQJuKB1ItWQ8Zx2IPr+1TeodUXj9bWmSbT3bCcdbuTByVRe+c1/u+sOhUz3dNn5Zp5b9JJi6yuKW/Q67ogxBXAwK2+w700LXnm5BzcFuVnZGodGbOtP0Sb2EIO7P00derAJi0cTk6uNMHauddBMpOv8f5SdZuTGbrYBFndLAlMLsYpVEE2sJTE1+970ii92tdUR9HlYmAadiNqgJFv9O1TP+bAnPYs=; 25:Dn5bknOZk0IYa8VSt9uYvwixW4MrbmynQYZP3Y0VpYzZ+z+vC6xIaudrksoTROYAFv5QOSYfd9C50kdQuX9QpwOoLmazxAB5d/9Sz0332RTmca85YBz6407rIBTv9Yp0OBsxu///b2Len5nr1iqiRTIJtKPbDlccnfzo+PienyRrXM6R24dfWXPwznLnmy0vBr+qc3rAiFKIELFwO5RNzCOZH+adZi++Fg76q6LdpRyNWBIf5gfo/1E6mtzRhPxFCGYwE0q7mkJfyb1Z0Z1/9kt1uaJ7wDcYCcv55l3JdIyjYQJ2u62LzkyoMuV+EWkJAOQLCEgN+jTV4onA4uVgyI8Y6ezaNWD3seGluUMsPfWf5C3bedbyp3cgzH1JEI9xLmsL5Q2JDP/dM1H03R2XlXG4SlcdTRMc3kFfPBzn0nwK55IvuahfnEnaOudHIDOTFy5DOYyDAXkzfIo6HV25EPNYiXvqVijE7oJw8IH+Lt8= X-MS-TrafficTypeDiagnostic: BN6PR12MB1139: X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1139; 31:YeFgMQF/YdpqRD1U77feNqGdpLhGb7VMj3g+sY/2k+SrYQ31Q2MOXDXPORykaQbI2RFf38RJetHSHravuVrjTRDiDIm1xKGSMsmQMHtd570mWTGt3+cJ2L3dMnLsBSUSy/mvhbcwY9BT3Du0vKOjZbFas3juv5PzLkn3UWzRjQp7gwJLJNj4tFrB/wD9dZrL119wZ2OrSelaYnBphKsyv9GC2P26VhvXm4B+28U9m8M=; 20:5S/1r9GEb1LccjZfJa6V8Q8S0twW3gDG1OmazTC9g5CPDiF8VfLit1uErUKRrKbTSUQm/qSSxijufHU2XymmDfVLYwTO9rLg33wAbAvTTq0jw0hbyP7o1oZr9kp+C9nDclUtkTk4wTJYmnOIhdMMcR5MzkKF+ERexJcnjjgM0pSfdPy8Wv+8lW7QXnT/r6PxTQOYioWeeOJ8N4eB4POb7rpsvGvhkqO+Ldg1rWeq1gMKFHyZKug2AKUOPD+CQTiaIytZeq5xc5efNs/pD/36JbsEop30cy9p69gX2R+cntr6+TfgFYQHsMdlWWWxymCLHtVDmkB3HukP0VN99KtUFGNg6EStVyHzvYozVPsWvCQfthnoW2Kq/DUNVyIDGDdVRpNww5Ftz14eQpLUbPPlfBl6H55/XLTYi2SnMlCYH5lW7rO1i6lm3LkQCntF6qldoyXNNyxAryiAi3Ik8vGArNoV7r2jSCy3Kg2O6qo2/pHGFl0xakbAaRnopJ36/ZjL X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(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)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1139; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1139; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM5OzQ6YkV4ak1yZHpsMXpaMjMwWmxoblUxYzRhVVVy?= =?utf-8?B?NzB5cVJoTHE4bHpTUUFNWlBtYWt6NEhMalh1bTRkWGlFQkw4djlRRVRkRHNE?= =?utf-8?B?YmxoSE1zV0JPZkFhRlM4cWhHeCtsZjFBd0NycUU2M0J0VU1LWDk5WGcwUWtl?= =?utf-8?B?UDIvYU5iR21kdzBianpObkUwckZaWlFhOGY1MWRuOCtKTUpla3BYRnJBeTY1?= =?utf-8?B?emlXcHB4WURlbExGbjEvdkZsQjVVZ3NjQzFDM0NPQ3FRYmQ3Z1BQVUcwK1c4?= =?utf-8?B?cWlWQTlwSDRrMFRzRG1yVndOb0ZNOWFLUENCQXl6TEVST2Q1cHdId1ZYN3VP?= =?utf-8?B?VFdJWEd6R3dWVnVVQ3lSQ0xiVGdBQnJ2TWhGYkhCL1lTeUxTMFdDY2U3amtY?= =?utf-8?B?NnkzSDM3NHJIMDhnOVFSU2dIWkVhb3c0b0hGWFpBVHZUR1lyaTIybUlFdmtt?= =?utf-8?B?bXlZNjZsMGFUU1dRVWx5WVFJR3lvcFZqMWZmeXROV2Rib2xKUmlLWlh0d0I5?= =?utf-8?B?R280WjM2K1F6SkExQ1pucUk5WlREemEwY1BPWXF4c3FQWnNGR3dudi9INnlu?= =?utf-8?B?ODdCVE9F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= =?utf-8?B?alpWTk9kQTBKWnM0Z1hick9YalVjcUpKSGpLL3plbUhZSHN3Qm1xUmI3NHVL?= =?utf-8?B?bzVjSEZ2UDkzUVVrbWJmWXQzQVhjdGpkVTNiaUJsZHFITkY2d2s0cVZsVk9M?= =?utf-8?Q?8ovUHLSxwwQoYn+3r/M?= X-Forefront-PRVS: 0340850FCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39450400003)(39860400002)(39850400002)(39840400002)(7736002)(42186005)(6666003)(47776003)(4001350100001)(66066001)(54356999)(7406005)(8676002)(81166006)(2950100002)(83506001)(50986999)(5660300001)(53416004)(305945005)(189998001)(25786009)(33646002)(2906002)(7416002)(110136004)(38730400002)(53936002)(54906002)(4326008)(9686003)(76176999)(50466002)(478600001)(86362001)(72206003)(3846002)(1076002)(6506006)(6116002)(23676002)(230700001)(55016002)(103116003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1139; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM5OzIzOlhMM1UrL1lwaENqMGR0bk0rZ3VmS3B4UVFw?= =?utf-8?B?VWpXN09VRUt4QzlLOTMvVDNSUmpsYU1ucWEzRjVHSlUxT2wwcTVtRWV5TWsw?= =?utf-8?B?eEdXL29oNG5MMXNDYndwemVtVE5raEgyNFZqeDJIVmtSWTlFL0R6dExUVFpT?= =?utf-8?B?VVE0VDJrSlIySVZVWlpqRUxzd0JDeUFaR0tLR0ptUXM3YmU4OTJsMk1tNkp2?= =?utf-8?B?QUxZZnd6Qm4wWVV4bzN2S01paXJiMmJxN3ZCL21TRUl2Q0dZNWxTLzJVUjBq?= =?utf-8?B?dEM2eVpWK28xREN3eXNOUmNDRk90R1cxTDFCeHNIekNacmNSQ3lEUmVqanBE?= =?utf-8?B?Y1NSNWhnV2ZrK1J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EZSyjrIBsvY6ifnvvvsMTEahCvohkzS9oh1eq71+yg3iWsuyvxxRJUbyjxPXZo5IFAkNRCK7CXoDE2vXgVO8mJekOBcDHxDwil8cVlL56OAbDxHC44+K8RG2jAaJAumT4Z8Kz8VjwDycmqYlPbypivFkmlOp7A8oN/4ZHZ+IH+E981Ly5FNelgOTLCAPHKNDHed/vFnXwV5cbKhgcGJPFNITSLb2LjErAbjBzM6eHZeDsU1h4yuU6tIX0pS57iRVzjYChSUzubLBiPS/RGYUDuwIldPc0esaVYgVrE/Wt4s3OLWWrIW57VjvEQWm0I4lyuxoqoaOAbG8q5jwRQlxBtKOC9CMRTUQ0e0QDqVpz96TmN9JrxyjWonFctBHNSruWM4ZNuGX1YBY4wUKnqraO3giA5W7ECBGyM6FsF6Sz4QvF67L4EWW/zEyCKnG2JCe1vii9BFncanANTbkyWw1GqtybKLKDu3ua0HFV7XHeY0BP5SdOiaco9HLSmyKkL8R+BCYNiOfV29df+NdHM9drcmjaDA= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1139; 20:FAeTe9BN3fwbXWc6CPsv/s+wAD0cX5mGsrzX+E7J2KcQ0ucavUJedI35PKZfOqavADNeVvqKv9mU86f2gfQEcEKo9BHcDsdlEBf58MDaHFK2ok7pYuqSldjF3BEgrLN+LctTVXrrhhEqjpjhVtJieYEE93nqGr7lD91t5wgyNNutx35TY2rsAp4GgULwxJPxXsAESs4pYl22lRvbrGmP1kd2h80+Oor5X3hjxNK4HijozMXypLi7XIDrZPbiR29A X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 18:51:29.8298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1139 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 v7 09/36] x86/mm: Simplify p[gum]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[um]d_pfn() macros and then use the p[gum]d_pfn() macros in the p[gum]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)