Received: by 10.223.185.116 with SMTP id b49csp2941734wrg; Mon, 5 Mar 2018 11:09:13 -0800 (PST) X-Google-Smtp-Source: AG47ELuvu12+XaO4KWjBKawTX5VGsRr4E5rEt2LbB+ZY/SXl1rZvnfLL7eL/IzR6tSs4RDGOGcCQ X-Received: by 10.98.9.130 with SMTP id 2mr16344991pfj.149.1520276953025; Mon, 05 Mar 2018 11:09:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520276952; cv=none; d=google.com; s=arc-20160816; b=P8Jp9n9rJfOm9jcJz0n24pWGOK9Utart0XlcQH2e/P12eXkfKFWg0c/YfGJq+Jkirk 3+p1AfO+geRF25pUJoJ7ojQ1GHEpLaNwMB6SnzzfzSZM4rnScWffGj6+823GcV94o/R8 Kd0gmnyd9W2H+2OGuyCb2HSE+K5E9lxNtbHb8Xb7C1lK1E7A1N3KYG2yRCrxO+SYB0+Z ftM/VndI1KenYJ/FAiNj3wz/lqxuPrvk/GKcrccFSq2RDrQLLQeLO7nFL0xjCf7SojvJ xAAo3DAX2EB0EIi3YF79oxpk4oS5gOcwpNUYaT+dy5s4werYKBHLCfwCU4ezNkgwQgD3 KlGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=c8zBTut4lflOF0ju/2ziEjl4uHpwJTpLTbAB9azx3yc=; b=ZXU6yWXdnHKpuTFFUamCDlbjeLVKKyDi+RkwtBaaAdWuriqOugTXCwVmHvwg4wEob4 9Ci9SBS3nSFwJOzPz7K8JmYy00Ry3XaSesjB89EZAyRqb19/SPwIBBM5ZiKPenEItZl5 2R2hhZONlUuuv/1cu3jrZJmvVM2A/GXw64lv3uTV1UslyJGITIRsRYhjoDox5GyGMwZb ZjHqOSEtbnKlu+NwtjNDIpxATAvd/xqF76UyQI0OYsmCc4NYJCtREXx4pVcGnzr4Hf9d hSG5UNL0rI1Tk1DkQzMqbURbTpobyR8nEkiEZI/ifJdynm7VT1OBHGwGdyZnfd/VMYo/ tc9A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si9653322plk.318.2018.03.05.11.08.58; Mon, 05 Mar 2018 11:09:12 -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; 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 S1752876AbeCETH7 (ORCPT + 99 others); Mon, 5 Mar 2018 14:07:59 -0500 Received: from mga05.intel.com ([192.55.52.43]:41707 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462AbeCETH5 (ORCPT ); Mon, 5 Mar 2018 14:07:57 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2018 11:07:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,428,1515484800"; d="scan'208";a="32575331" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga003.jf.intel.com with ESMTP; 05 Mar 2018 11:07:55 -0800 Subject: Re: [RFC, PATCH 18/22] x86/mm: Handle allocation of encrypted pages To: "Kirill A. Shutemov" , Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky References: <20180305162610.37510-1-kirill.shutemov@linux.intel.com> <20180305162610.37510-19-kirill.shutemov@linux.intel.com> Cc: Kai Huang , linux-kernel@vger.kernel.org, linux-mm@kvack.org From: Dave Hansen Message-ID: <6551765a-5926-8445-d867-8f7c6bf343b4@intel.com> Date: Mon, 5 Mar 2018 11:07:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180305162610.37510-19-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?