Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp978630rwd; Wed, 7 Jun 2023 09:17:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7TqgyL0Vtwrq5gV9SApoaJRJyUxMnF7G1AbPyoJMGcsoCGIXQ9d5uXUSFBdjrlPg/gDi5v X-Received: by 2002:a17:90a:19c5:b0:253:5728:f631 with SMTP id 5-20020a17090a19c500b002535728f631mr5246924pjj.15.1686154635349; Wed, 07 Jun 2023 09:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686154635; cv=none; d=google.com; s=arc-20160816; b=o2mTIRauL7Dn2e+mabcYHynmidXjYmhGEsepmdlh0jWbJV+ZFb9IIkUPaloCL/NCcM ga1E9W15OxhMRe6XsbVGbPLsM8Yc9uPVBCI8IAKB5vTpQsUA0tdMzKW5kyXRAIwXbUVR hm6NjsWJ+6LIJ53gfVoq6XPi6gio8QgM1MVoFoNPoKQG3VuDTjOT237P1zFIOL7vdKDP 4oIRw80cJLPuJA8Ly8545mwoophaJqxq5KSwIaC5QqyBiIHdGUDKweX5I6FpTbOAwYsF jpLK01zwgH6PM95Syu3snatg2ZaPsfPfU7rUQfcy/I77oY6SdT+aw18nomoAt0LAtBy2 qp3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=TNm4TmwQsNeu2b4c9Z3f7q+rEvwc1zMtK+mBzjKmk4E=; b=olPt4ZuDMvBd6tFCXdE8C/RYyU7S4KdwzkY7b5zTckngWF3tzf8BNwFUx5Dwj7iINe 0QaoL6F4f7uFKOUscHd3mQEFfS9/bNcWZJwR8T1ZLuPxdZASrSubHNdWjIVvCHGwVFoN 3g1d2bys1Od6tjQjaO86SGLVZZm/Qfg1jYwUbkDkLZtCnT//7zl/MIc8tIB5MLcwUi7B 3+B5jmv2unwHQIKcE298kM/U528/Xo9pMW7AJBkDgw1MNUMy1gmIAJA8wYE542ds7PXk guDEs9Th7ZvDbU+oetQwWQ2KK3s4zMAk7j9rk8a8p1p/CSuHDTfJa8Whlv/v28fWqlXC 4jGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EbEbt4P5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f24-20020a170902ab9800b001b0308ed08dsi9018002plr.91.2023.06.07.09.17.00; Wed, 07 Jun 2023 09:17:15 -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=@intel.com header.s=Intel header.b=EbEbt4P5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240645AbjFGPbc (ORCPT + 99 others); Wed, 7 Jun 2023 11:31:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235657AbjFGPb3 (ORCPT ); Wed, 7 Jun 2023 11:31:29 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67F711720 for ; Wed, 7 Jun 2023 08:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686151887; x=1717687887; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=eUY2SkjNEYvBGg3bHgwJqERClbAyhizDkfgZWBJvtV4=; b=EbEbt4P55ntb3zV26Nu1iFFjgoL5vqTIIEtmVTVv0l7kILkv5EjsHIlY Zf0gKmcb2HXeFP9Ef8YF62xdxyDuIhvL7Iq4nKa02h4wrgHHlSFWMvXP8 muVODwGiqr23WXRSfD8O2XYBTeBq3t8xiWYOMyVRYaZLfZQa4OFT8+2kX ir+1NKhdXNl7x2x88XjqMTu7bpmq/MbOiBGIBQdCnwZLhxYJBKgnpnhpS tq1VT4ZcBRNg0N3aTwW4uw8eoWHpkyj+rMbNoodCHseuTKTyA87VdvcpY MEEzpDQUJmvHt70DjQxsctphj9cWJQuPthNvv7Ezm+U/MJ6tPdan3e0Bu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="337385457" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="337385457" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 08:31:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="709600346" X-IronPort-AV: E=Sophos;i="6.00,224,1681196400"; d="scan'208";a="709600346" Received: from vsmyers-mobl2.amr.corp.intel.com (HELO [10.212.146.233]) ([10.212.146.233]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 08:31:24 -0700 Message-ID: Date: Wed, 7 Jun 2023 08:31:24 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2] x86/mm: Fix PAT bit missing from page protection modify mask Content-Language: en-US To: Janusz Krzysztofik , Borislav Petkov Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Andi Shyti , intel-gfx@lists.freedesktop.org References: <20230607152308.125787-2-janusz.krzysztofik@linux.intel.com> From: Dave Hansen In-Reply-To: <20230607152308.125787-2-janusz.krzysztofik@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 6/7/23 08:23, Janusz Krzysztofik wrote: > > Extend bitmask used by pgprot_modify() for selecting bits to be preserved > with _PAGE_PAT bit. However, since that bit can be reused as _PAGE_PSE, > and the _PAGE_CHG_MASK symbol, primarly used by pte_modify(), is likely > intentionally defined with that bit not set, keep that symbol unchanged. I'm really having a hard time parsing what that last sentence is saying. Could you try again, please?