Received: by 10.223.185.116 with SMTP id b49csp3551955wrg; Tue, 6 Mar 2018 00:38:18 -0800 (PST) X-Google-Smtp-Source: AG47ELvy7LNIMyqwOZPHhLzgQXF+kM7FvVelDfsVHoMDkd8vAge3/3AfnHrbI1l6Te3yoZ5cekSa X-Received: by 2002:a17:902:8487:: with SMTP id c7-v6mr3984414plo.143.1520325498212; Tue, 06 Mar 2018 00:38:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520325498; cv=none; d=google.com; s=arc-20160816; b=HNlenqDM53Z5tIqzBJfe/HNuTkqQFOS++g0w6f1h5cSBWJ8XYOA+Kpany02ANE4OAM 24Lr0eXRrGNR4hhcXUTcK54D54IXECppsL1XoVFq2tdXjE4mVclvRRqe1K39ddBwQeos L0cbL2nKOhffhyaQnRruJm0Xj1snLiGh6K6e3GsBCVtsshc3ZL40ooWoK0IfKthDcHXb jtLT3OUZs85JIuPPshcVul7TNI2vlpSSzjJ2SOnUblwTiQ0f0kfaDNj44N0K3ujURCm2 B9Zh0DfDUdTNDfdrOaQeq/RTVKVuZat7aFcvbl7bT1dpHy8KRREaf7W20BE10dunCGI5 7ZtQ== 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:dkim-signature:arc-authentication-results; bh=N4y+MKa6SwwJj1fcZwosImpjD4TRwceIPHZs0gPjA0c=; b=K8S12kxCar5OQEwg3xBp1u4HKtQrsY7ay7yrlEDM7AF1AvaVyoanbQpFc+N8juW1F9 Ua3AkF8jJ4fnLsO5WI7XQvXppc6HePBYv3QgDAoPPVZpy8TcyvzWThtyw3PV5xgR9eun J+Q15VcovGA5zz9MD1MqmrYguyZOWVZgqKp/Rn8OgB/pa2MmFpGkpYsoBwjfAUaC3UAs f3Z2Fd/OeTyvS6t44VTO20SmwGuumlGbZiTGfT+cozTI7GuST8cafrFc95mWaUAQDaes /mdaGfciXVcaOH5VNRqWWc2DDsKtGSCljXy4Vzfk/rgmnIu7SqBqIhDVzpx8OFp8/IPp aeRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=WhN2uNHr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si9634428pgo.179.2018.03.06.00.38.02; Tue, 06 Mar 2018 00:38:18 -0800 (PST) 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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=WhN2uNHr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753335AbeCFIhB (ORCPT + 99 others); Tue, 6 Mar 2018 03:37:01 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38477 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164AbeCFIg6 (ORCPT ); Tue, 6 Mar 2018 03:36:58 -0500 Received: by mail-wm0-f45.google.com with SMTP id z9so20456361wmb.3 for ; Tue, 06 Mar 2018 00:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=N4y+MKa6SwwJj1fcZwosImpjD4TRwceIPHZs0gPjA0c=; b=WhN2uNHrXmF+Xx2/iwBt++iig/HPLiOfBhUjH/OpWSP3lx9/1YScn6nkvhbN006WYq lMYjyL8K3BK80l75dVYibfjDfGmO6XBMXLQN4CJssWSFuw5EcVGnS/n8Z+13HLUHNlJt nHPvuVeXt+jmC8ukSZcmvY3RlBXSp5KG/eh19dIBHP1/ex0Wo9MyX/dkusAK8gYB/mq4 SBu5mZwL5oAefzSfzGIeMOM7wHQnKAaYslFh3PwcIeMKG4Whpc+ce/P00TQTt0/IzIF+ Yh7GHuDiJmNf9/oFtyexIcrn+gAS5LdIX64dTwe3XKMDT4wrXsUVnCFfBO0p+OEcdpQe 3DDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=N4y+MKa6SwwJj1fcZwosImpjD4TRwceIPHZs0gPjA0c=; b=k1BFbLjl7hwr8swynz7tulFCSi5yWNhoSJp0eUTG5Tcchi2EMPjLywPQaBSuAELanN 9jTcaQFvEZzNNFedyqClVFmQSVJcAPhFtNCdL+bIUoCIddeCoOGpQPjAgCN4iJQ1Oahh NWgAb28wj53ODuPp3h8gbS49jJOe/2qTU/nT1bs45i1uOQG3sb01xi1iKqnLw72LXSCV Mg1UsV06WVVi5NRtYi4ya40sblyZOxleT6I2VxFwzAEm9fwJxVGMRYPIgUTPYmYcQo4u oeCEKQ6pD8B9fHAs8+PLGlVsGr3xQxaxMFZni5tfnlhwwx4RS4aRqk7JTi8/sWNXpGcV e+lw== X-Gm-Message-State: AElRT7EnUygybUgoMoyMGkhFwenJVY/PqwZA4/sjC+Qchyx7mMdfnJar q1vAN3V3dp0xrvcpsUxMrfM4qw== X-Received: by 10.80.141.193 with SMTP id s1mr2666773edh.0.1520325417602; Tue, 06 Mar 2018 00:36:57 -0800 (PST) Received: from node.shutemov.name ([86.57.210.234]) by smtp.gmail.com with ESMTPSA id g2sm12750167eda.85.2018.03.06.00.36.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 00:36:56 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id 22E5D648D520; Tue, 6 Mar 2018 11:36:42 +0300 (+03) Date: Tue, 6 Mar 2018 11:36:42 +0300 From: "Kirill A. Shutemov" To: Dave Hansen Cc: "Kirill A. Shutemov" , Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky , Kai Huang , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC, PATCH 18/22] x86/mm: Handle allocation of encrypted pages Message-ID: <20180306083642.yrhbcuz7fgwhmlix@node.shutemov.name> References: <20180305162610.37510-1-kirill.shutemov@linux.intel.com> <20180305162610.37510-19-kirill.shutemov@linux.intel.com> <6551765a-5926-8445-d867-8f7c6bf343b4@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6551765a-5926-8445-d867-8f7c6bf343b4@intel.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05, 2018 at 11:07:55AM -0800, Dave Hansen wrote: > On 03/05/2018 08:26 AM, Kirill A. Shutemov wrote: > > kmap_atomic_keyid() would map the page with the specified KeyID. > > For now it's dummy implementation that would be replaced later. > > I think you need to explain the tradeoffs here. We could just change > the linear map around, but you don't. Why? I don't think we settled on implementation by this point: kmap() is only interface and doesn't imply what it acctually does. I *can* change linear mapping if we would chose so. I will explain the kmap() implementation in patches that would implement it. -- Kirill A. Shutemov