Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3941076imm; Mon, 18 Jun 2018 06:42:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJNIhlLT65VRZCrAafJ2uy9/+QgGyUuyeFpDKfzIJ9kqj5xgEw34fnyy7tLXE9xJ7EOW3fw X-Received: by 2002:a65:510c:: with SMTP id f12-v6mr10840695pgq.288.1529329373656; Mon, 18 Jun 2018 06:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529329373; cv=none; d=google.com; s=arc-20160816; b=IGAPgDeJvcLdVJoWWM3wes+SX3qyNlQc6QtxW7JUtckpcWSlS1AS9/AusQJhPMxMGp QcVy5MnQWemtEff7cRvdVt/FNGQC1JhiwtOwHxL+LUOA5RROCTGSe2xs+TABlLuBzDMv TfqTJevNFW1QnaVg/ZuHk2H8RDNmPupX9UaFs+3ZjpsKeeJnAmA/YrlHmKH6KgP81xj6 QdDt4FXD/PZds1UWKO1Rrqul+LpHDrVTtU3133VCbY8n8QOP6uLx7A/Q3T69zSjdNstX PPenIB1MmxGPgi5ElhxfcMlJKKRDXV3PL4VkwfiwY3PBVcmmtmU6p0q/ehPHabWrWwxK aI/w== 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=9JG0gDM7XEfph7R/YWwmVmCk2JetCts/sx66E9QO3X4=; b=Jlx5YaDkozbsedcPO1nMbJrTjrZykgUbUBL8ex1uAteQi3zvcnzggGUYf+oZS2MJ1p zwgcu6OXxYeGlrvyRUEiJKsthEmySdydz6ENckQ3nrk0BWG+qMh0bA8qZbR+GINF/0GT TpzLFXOef8M/WHn08Z65YHWhP974xoAhP37qrPqAz3wq2FruleNCb+sQgJge4qxorQZe StzqWuUVqBU8y/GNOgcXQU8yFBpWSMf7Iv96UI6HruPMBpIKMIkQR+I97kMTeYK/bzC4 CvnPb16tbbn5lBZaEtUiqrW9W1EGDJQnAeJZibHgYf2VM9MUVCi9ynK9bFpHzMD3n/r3 /RHw== 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 j33-v6si15034279pld.151.2018.06.18.06.42.39; Mon, 18 Jun 2018 06:42:53 -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 S934554AbeFRNlE (ORCPT + 99 others); Mon, 18 Jun 2018 09:41:04 -0400 Received: from mga02.intel.com ([134.134.136.20]:44872 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933527AbeFRNlD (ORCPT ); Mon, 18 Jun 2018 09:41:03 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2018 06:41:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,239,1526367600"; d="scan'208";a="238421699" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga006.fm.intel.com with ESMTP; 18 Jun 2018 06:40:59 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id ECED3FA; Mon, 18 Jun 2018 16:41:00 +0300 (EEST) Date: Mon, 18 Jun 2018 16:41:00 +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 17/17] x86: Introduce CONFIG_X86_INTEL_MKTME Message-ID: <20180618134100.iehlv2uw4n7ariro@black.fi.intel.com> References: <20180612143915.68065-1-kirill.shutemov@linux.intel.com> <20180612143915.68065-18-kirill.shutemov@linux.intel.com> <43ea6cea-b88c-e08a-3f4e-64c39b20ae59@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43ea6cea-b88c-e08a-3f4e-64c39b20ae59@intel.com> 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 Wed, Jun 13, 2018 at 06:46:34PM +0000, Dave Hansen wrote: > On 06/12/2018 07:39 AM, Kirill A. Shutemov wrote: > > Add new config option to enabled/disable Multi-Key Total Memory > > Encryption support. > > > > MKTME uses MEMORY_PHYSICAL_PADDING to reserve enough space in per-KeyID > > direct mappings for memory hotplug. > > Isn't it really *the* direct mapping primarily? We make all of them > larger, but the direct mapping is impacted too. This makes it sound > like it applies only to the MKTME mappings. We only cares about the padding in two cases: MKTME and KALSR. If none of them enabled padding doesn't have meaning. We have PAGE_OFFSET at fixed address and size is also fixed. -- Kirill A. Shutemov