Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp959004pxb; Fri, 22 Apr 2022 15:20:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpXD1PmRQWXGcNB/I/2DQ2I8xef+I1z90M7FSthngTI+FwUwjPLqjvMXUbG8+ciczAcf1N X-Received: by 2002:a17:90b:4d0d:b0:1ce:ef5d:f1ef with SMTP id mw13-20020a17090b4d0d00b001ceef5df1efmr18316498pjb.91.1650666010431; Fri, 22 Apr 2022 15:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650666010; cv=none; d=google.com; s=arc-20160816; b=lc3XNGhRCsZhZDc9ZPUS1RPa12ROi/rstv0LkL7L5vUfMKZDxmRUMbdmO5pd+OndUd t1Hc2EjX3LffXuoJpx48v6kIebXH8Nod7YsR2996d8nv9f1qh6RPxtUnuY42kVhB8oSM cQyrRZJVSJrjYw0MsRNiSHSAcpCDYYErszkyvGaXPFqXosaILNNMNDwyT68eGvR0xdPa lHTb4HKLqJPeRqOvULhPXA9Z4gTPAUUZDyKGHwhGrEevGYx5k/nqU6YTGmbRff36GIr5 HFJzsaMn2v05Z+Fo0xQj5BGv275JxoaeqOd9BNTGABiF7QGOmOcIU3Bzu+FOjMDYFlVg uFIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QrA9XZmQJ3pzwkzftPloH2yboFwnXRie+CWHLphliSk=; b=k4cGN56sSLEHYuICsN7jIkgC+VhWI8ZbFMHnuHegw+QsATvK3yrkQqEwhlhoGTDw4O RNutpszg7gBp2UsTPv3EFT1sDLTg4JcHcH9zPD/Po5PquwZu3DHAvcGc8THjRYgc0jbu JyqQeueIdTATcfrOSlSeu3d/PW9dRKHt68qorNfw7h8+h5svby8vGlvZT7fKZLjC97PL ca4orrAyQOy7cO4/SVPN5RpMbs8HhzW4FZ9ggMJ5pseGhavBKY9Yp7yHb57R77/v4M4P NFkmTvqA7B4bcv6kIprQKChEXv1MoaAFzoQ503uZqc92PnQMjVfaPr1+85keK1/DxVfv c6Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=Goof91mB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mj11-20020a17090b368b00b001cd4990ce8esi2813088pjb.121.2022.04.22.15.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:20:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=Goof91mB; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 89D103C0770; Fri, 22 Apr 2022 13:25:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390062AbiDUPcB (ORCPT + 99 others); Thu, 21 Apr 2022 11:32:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbiDUPb4 (ORCPT ); Thu, 21 Apr 2022 11:31:56 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1BC633A32 for ; Thu, 21 Apr 2022 08:29:05 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id g13so10826301ejb.4 for ; Thu, 21 Apr 2022 08:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QrA9XZmQJ3pzwkzftPloH2yboFwnXRie+CWHLphliSk=; b=Goof91mBcka2VgETshL668shaAzHbdRfpyNvrN5YOcp4rhboXwZMtZDVAaWyLyahuQ CdaDmp2jWbyV5OJCLb9mFBtn8VUpNhEqnHvKmW2rmbiU81mufV28MWCU1u7VvAeUZEd9 2u4xZXMNL1TOKfntRmdjyFc8vFUQU+K2rPooY6bMN8zqt91QKzhS2BhSAUFJld7m2EPZ SNq/Kb9bmfpSLvL0klMqmIih/kL/HnekghPnIjYHA8OSyGeGTmeuiE0Bbf9JhAQLARJc zOgCs57NF6H9sId258Pbwyy2EVsOsG9tO9VANSYUVqeN94X01agrIHg1uGNe6d7B1uaw /r6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QrA9XZmQJ3pzwkzftPloH2yboFwnXRie+CWHLphliSk=; b=3Hso6HsuJivqde92DQkHjfhPnJ/O2iscZ+2GCaCKs8o/7bMGrYPIQqJILBHh8DOBv0 trSr4iswK2nYbQHk8thqlN2Y4aku0rKBdjlONK9E81eBfrXdPZwwATKKogqYkGjmt+tF VpKyx/OCeRpDxLEOIp3vUvB4EYMgki3LJfCWj1978sYccOtjls9JagVRBw8PERHNERs4 Mc9fflFjHrt9tME7NtJri1pwKB0npiTuHZrJoK234qJ+dFrXUlYjaSjO5qLczywmqRXc GNX4tdEXYHjJ1cLKstKy+kTQDR6sQFB/Si8VlkJwTxGJ4GryF2gp1DP64PkJnz0n0yQz KxJw== X-Gm-Message-State: AOAM532d2ZnpXZREZztFMpVjQhVBziLlWcTIiBAmor1fDfMSQnCRE6Jh nIg3dkFy6ZIClb7rQTRN++o4SmRlls34mZm0qLK4Pw== X-Received: by 2002:a17:907:1c8a:b0:6e9:2a0d:d7b7 with SMTP id nb10-20020a1709071c8a00b006e92a0dd7b7mr85739ejc.572.1650554944449; Thu, 21 Apr 2022 08:29:04 -0700 (PDT) MIME-Version: 1.0 References: <20220421082042.1167967-1-tongtiangen@huawei.com> <20220421082042.1167967-2-tongtiangen@huawei.com> In-Reply-To: <20220421082042.1167967-2-tongtiangen@huawei.com> From: Pasha Tatashin Date: Thu, 21 Apr 2022 11:28:27 -0400 Message-ID: Subject: Re: [PATCH -next v5 1/5] mm: page_table_check: using PxD_SIZE instead of PxD_PAGE_SIZE To: Tong Tiangen Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Anshuman Khandual , Andrew Morton , Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , LKML , linux-mm , Linux ARM , linux-riscv@lists.infradead.org, Kefeng Wang , Guohanjun Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 21, 2022 at 4:02 AM Tong Tiangen wrote: > > Macro PUD_SIZE/PMD_SIZE is more general in various architectures. Using > PUD_SIZE/PMD_SIZE instead of PUD_PAGE_SIZE/PMD_PAGE_SIZE can better > support page table check in architectures other than x86 and it is no > functional impact on x86. > > Suggested-by: Anshuman Khandual > Signed-off-by: Tong Tiangen Acked-by: Pasha Tatashin