Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1360187pxb; Thu, 24 Mar 2022 18:43:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA10na/VHPEfT4hK7VlgklBUd1iQMGNp+mIjybpdlj4oLhMxZfVbsGtvwFgdCa+3CfVdVh X-Received: by 2002:a05:6a00:8d3:b0:4f6:76a1:4890 with SMTP id s19-20020a056a0008d300b004f676a14890mr7743957pfu.55.1648172630246; Thu, 24 Mar 2022 18:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648172630; cv=none; d=google.com; s=arc-20160816; b=hrgFzQlkGKsA2TzjuDpMPlJrKM0MmJZGufjFGfwj2t0QoWrgOQADjrUWBZeE0NTGGO AWr2nPGzHirWUy8e83tKtGrZdqk/f+1zC6Yn4yp2C6taG2hrHaYD7i9YbSvdwBH4nDlT T/xW1AoLwpr6mw9p6c6G1fDTgYXBs05SaveXu8DaN16G6iJAiCGu5EL0RzM5nK7Xqx9F gbqV4p7/2nL97kbS04+Aifxh6Ojbu4ZDfNpzuNPsq33Ho5g44XLZM+KvqeE3XE0pJvq1 PEVTs3hdz/RHaEKrxdGskn0f58QBQlAQpBO79eAIUxULRBbM2RpC5MQTBBaTC41qhlP0 hcFA== 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=sSwzHlwSz23lvNtLo13bFAIrxFRCXX53K/CMQWwbRmc=; b=vt+O6VrEDZ4TveKBBgz4OTFV0DGEDXKyL6qDoNHQheMyCuRfUbcm9WXe4p38zLhV3/ feKFDjL8JpZnf0xLgwXS9VHCpk9k3PexkUBTOn2dT7lpYAQkNGXYqpAOAUMpOHE4OC2q G/tm542VOhoWeNDoWUC082kevx3SgRPyqFug+PsN1RrmlK5nhY7cSXZ0FVY0545u6VZT 08s/ET2ps0zsrUF8oDhuT5oxlWfuPqrLenj7KtpyKJ5DZd39LnxLsOJ08hNejUoJGD1y hj6RZ5u3xsqYqhd4bpVHrO6opG86Zbuw0kKGSfmGt7mKIIq/wvdg4ncg66qo8IZe9QQL 5Ang== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=eho+7tpn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h67-20020a636c46000000b003822c7378fcsi946414pgc.124.2022.03.24.18.43.35; Thu, 24 Mar 2022 18:43:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=eho+7tpn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239651AbiCWRgZ (ORCPT + 99 others); Wed, 23 Mar 2022 13:36:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239223AbiCWRgX (ORCPT ); Wed, 23 Mar 2022 13:36:23 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7B25793BC for ; Wed, 23 Mar 2022 10:34:52 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id yy13so4334955ejb.2 for ; Wed, 23 Mar 2022 10:34:52 -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=sSwzHlwSz23lvNtLo13bFAIrxFRCXX53K/CMQWwbRmc=; b=eho+7tpnDRTL+44l04LLUo+wv1fUtZvszL0rupuFXL6S5K4e00IplNblrGZ2/VchBC gAMGRJMGn7oXIS+0Yoye69b87Qa71Wn1Yzl+EcrdS3AUHzHmmj1cfTjhvNYalkB8vw3h 6Pors1dQZGvTMTBn10VggfVLiF1jcfUjH9O/iDrPsa11zUyp46c9DPy735KBLmK0IEfL b13VH8xR90mm0/t93esJsccRYWVw9gVImdAQH+zw632De5CmgjTeLPtzVRD++RMILX3X dkWE4Wqg2XTF0Q4DrBzQSBuIrMJjjuugqAcpe1RhM6drRKWw/1WyP53oowoLbuAw8sQG viHw== 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=sSwzHlwSz23lvNtLo13bFAIrxFRCXX53K/CMQWwbRmc=; b=H1cBGCl6TI9L/XNBYc9xtaye266Ap2KfI1yFA5RceB0XZdgmsx8JslQ6CHvdfVCRrP dITe58DHd8toKl2uOMoCPJtC9UyPnPUWXwXWjGskI9VzYfZVgenxx0UfcE+LJBR3HssM xBYUdUSWb8QYAcmNM3mwLYaU/vRD3tKYxkQlxkmIppkW7x/CsRVWK+UEWxFhixlkKrha ko6fysiYGEXhOuWe12vi4aO0ZBvSge+AtEJptgM+Js/4kx0OSwcdRFjQQDV0TtD1+Yem sirheFZ17pKvXK0WDDBp8YqcLesnH03cb8lC5q7ejEM5bXNPQSzHa/E7yEJYf0WlnF3S NQvw== X-Gm-Message-State: AOAM533y67vykYaYYS0K+E7gC60OfhSgcA6uyj50TsRbbzdIm3Qogetn Km2SzyfnX+mAU+nbD/Y+Vw2y0Ah9o39UTJzA+rfhnA== X-Received: by 2002:a17:906:4a96:b0:6c5:5ea9:5366 with SMTP id x22-20020a1709064a9600b006c55ea95366mr1199621eju.473.1648056891284; Wed, 23 Mar 2022 10:34:51 -0700 (PDT) MIME-Version: 1.0 References: <20220322144447.3563146-1-tongtiangen@huawei.com> <20220322144447.3563146-2-tongtiangen@huawei.com> In-Reply-To: <20220322144447.3563146-2-tongtiangen@huawei.com> From: Pasha Tatashin Date: Wed, 23 Mar 2022 13:34:14 -0400 Message-ID: Subject: Re: [PATCH -next v2 1/4] mm: page_table_check: move pxx_user_accessible_page into x86 To: Tong Tiangen Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Andrew Morton , Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , LKML , linux-mm , Linux ARM , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Mar 22, 2022 at 10:25 AM Tong Tiangen wrote: > > From: Kefeng Wang > > The pxx_user_accessible_page() check the PTE bit, it's > architecture-specific code, move them into x86's pgtable.h, > also add default PMD/PUD_PAGE_SIZE definition, it's prepare > for support page table check feature on new architecture. > > Signed-off-by: Kefeng Wang Acked-by: Pasha Tatashin Thank you for this work!