Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1256515imm; Fri, 15 Jun 2018 13:56:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIba1Ii2mLWIP9FYz7xsI02SWR6j17zvZ6m0dN9/+CGv9ZN0SDnYa4gNqVxUlwS4nkArKNn X-Received: by 2002:a62:5788:: with SMTP id i8-v6mr3536686pfj.175.1529096177032; Fri, 15 Jun 2018 13:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529096177; cv=none; d=google.com; s=arc-20160816; b=yH94euMrp4M+b4ehxhRAbrQ214EFiyd8TXT+UoAxBkGC4PLUcVT5qi8+kcnCEnFF/W kE5c8LtiXgPD/AwbLI9RgtEsSdcgytJi8xSqN461WK5Uwba0okvhTDHRpngw/AfGmrw9 dSnVoQZLA94+jom/audvDnolWzzeTpdkCMiK2yen8lrhZYELUVhiumc9xqInKELJtzBI 6/NvfZZ8+YxKaZZmNqDF53MFxmpsG68oZT6zeNzwlCvyZyoVIkTvjia/BukVKaVbFrmt I1cHmYoSrfuTiiXGTIfLhiqBA9XXtMdQSBMr//cwVq6v63p/h3OJfjPANdXUi6kwBlRm 4l2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=BHzI1jpVsN4YmRxP2IikZcCnKKsL9TrREFU9X9LpDSg=; b=vmZYqSATORzivOEyhGWty0cfd09y6AAKhY/YbITfNGxQGzpnPLUFPv1qrQxJf/9/M9 o0PQF4n1ooo/fpiReW7s4pOpBtuXmsbwMY9ahVrWeOFfQ8k1ZQqndunnHbmQxmWTK82V N//lMw1KtQTvHTGN0JrUNaQn5RfvmYfaOrntzv8/9Z9DdGXi7eiuXY0/2CCAREkt+LkW tD3MggjqDFgv35eV/kQB7WaiEcigMXZ1Lh1eN+445b3JKyGg33TC0XRHglwvFHG83Znm quSUNVC1w9My67oFbjQ9WnbyVGlvMpLqWoaKTgUNYMWu6qKnqFtu/qcLZ52KctPuS+lm OOjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si8447657plq.280.2018.06.15.13.56.02; Fri, 15 Jun 2018 13:56:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756578AbeFOUzk (ORCPT + 99 others); Fri, 15 Jun 2018 16:55:40 -0400 Received: from mga18.intel.com ([134.134.136.126]:27375 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756499AbeFOUzj (ORCPT ); Fri, 15 Jun 2018 16:55:39 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jun 2018 13:55:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,228,1526367600"; d="scan'208";a="63591427" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 15 Jun 2018 13:55:35 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 37DDB166; Fri, 15 Jun 2018 23:55:36 +0300 (EEST) Date: Fri, 15 Jun 2018 23:55:36 +0300 From: "Kirill A. Shutemov" To: Dave Hansen Cc: Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky , Kai Huang , Jacob Pan , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv3 07/17] x86/mm: Preserve KeyID on pte_modify() and pgprot_modify() Message-ID: <20180615205535.32nhgqelbyjihzts@black.fi.intel.com> References: <20180612143915.68065-8-kirill.shutemov@linux.intel.com> <8c31f6d2-6512-2726-763e-6dd1cbb0350a@intel.com> <20180615125720.r755xaegvfcqfr6x@black.fi.intel.com> <645a4ca8-ae77-dcdd-0cbc-0da467fc210d@intel.com> <20180615152731.3y6rre7g66rmncxr@black.fi.intel.com> <20180615160613.arntdivl5gdpfwfw@black.fi.intel.com> <445af5b3-eaca-0589-8899-88a3b26fb509@intel.com> <20180615204512.axt2avr4ysc2iyrp@black.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170714-126-deb55f (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 15, 2018 at 08:45:21PM +0000, Dave Hansen wrote: > On 06/15/2018 01:45 PM, Kirill A. Shutemov wrote: > > On Fri, Jun 15, 2018 at 04:58:24PM +0000, Dave Hansen wrote: > >> On 06/15/2018 09:06 AM, Kirill A. Shutemov wrote: > >>> I have no idea what such concept should be called. I cannot come with > >>> anything better than PTE_PFN_MASK_MAX. Do you? > >> PTE_PRESERVE_MASK > >> > >> Or maybe: > >> > >> PTE_MODIFY_PRESERVE_MASK > > It just replacing one confusion with another. Preserve what? > > "Preserve this mask when modifying pte permission bits" We preserve more than these bits. See _PAGE_CHG_MASK. -- Kirill A. Shutemov