Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3644170imm; Mon, 25 Jun 2018 02:03:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLHQuPk3ZelGIzq+hj5OOPJBMAE0c83F7AuPbzZ4MDDd+4ICbPCMUbQ3FRPBLSBxhJGbzk7 X-Received: by 2002:a17:902:6802:: with SMTP id h2-v6mr11421559plk.113.1529917426327; Mon, 25 Jun 2018 02:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529917426; cv=none; d=google.com; s=arc-20160816; b=NVzAiq65BQ9yMaoVrQmzMWgTcfr8QpI5e7oNVAYsBRbRoRsK9tWG9/9E3CqVC8ESAP g1jGGzamePeIOriSfcmpiSqsQ1l5QI2u2NyZcDco2HH1f232+pY1HFxlhHZb8UpSgQLn JV8Aj/nqmdsMGXuDT/WCuYU28xRNItKLuk3pyFB/vlSj7MSON1SIG3FQ+U5cvPr54SGM KS89K/woFfx1O76zortrLDVpNEQ7SAFfWyl2BrAdDKy7Q/llgObbfPggJi2y70YTv753 s8WzmeLUn8Xzr2Oz16wvra83q0udChuHeRa04y4wMHZkp/0hJmJKXVtR1Wggg7FTl7pc h0Gg== 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:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=tlNnUoEd1qupYzljtFot5dtFFgC3M1sgY6Cw7CAVqx0=; b=JYV7EQnDMf3fNe21SqLLYmIfm6IoHH31QOJDV6nZ9WeMCHfYkbu5m8vUjUZQnDMq3d 690nDBR7G7KBwGjxbPgcQXUMpLjm2uDboDonu/k8wDkQeLxIE37Azvy/l9X+qAdD3JKJ 4FU3WPsnqb9aT49O0O3vE7KbU1NgecgYhTCAl0lA9Q59zxrAr2VPujsBAY+UuGjytu/k bmYXGkIklL2DpLeMdcH/G/H8vj3SyYy0jNwJozQBdB7P8Tlwf4vRztCvnE9LyuBqKkme KFIpFscnpq/qPqPhfbRDuxBfmk4GXcyuIxD7wb+HsbXghl5/uHOFLcWzPtqDNgADiQgW 0O6g== 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 i87-v6si3560999pfa.219.2018.06.25.02.03.31; Mon, 25 Jun 2018 02:03:46 -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 S1754630AbeFYJBU (ORCPT + 99 others); Mon, 25 Jun 2018 05:01:20 -0400 Received: from mga18.intel.com ([134.134.136.126]:47075 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754359AbeFYJBS (ORCPT ); Mon, 25 Jun 2018 05:01:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2018 02:01:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,269,1526367600"; d="scan'208";a="52013082" Received: from jsakkine-mobl1.tm.intel.com (HELO sfriis-mobl.ger.corp.intel.com) ([10.237.50.42]) by orsmga008.jf.intel.com with ESMTP; 25 Jun 2018 02:01:13 -0700 Message-ID: <2329657de3b24cd45db2ad4abaddf3d473da4fdf.camel@linux.intel.com> Subject: Re: [PATCH v11 09/13] x86, sgx: basic routines for enclave page cache From: Jarkko Sakkinen To: Dave Hansen Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "open list:INTEL SGX" Date: Mon, 25 Jun 2018 12:01:12 +0300 In-Reply-To: <5226fbdc-dcad-4856-68bb-3219ab31b30d@intel.com> References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180608171216.26521-10-jarkko.sakkinen@linux.intel.com> <3c1b04d6-6e93-efaa-1890-101b7fd9784c@intel.com> <20180619145753.GB8034@linux.intel.com> <5226fbdc-dcad-4856-68bb-3219ab31b30d@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-06-19 at 08:32 -0700, Dave Hansen wrote: > > For 32-bit (albeit not supported at this point) it makes sense to always > > use kmap_atomic_pfn() as the virtua address area is very limited. > > That makes no sense. 32-bit kernels have plenty of virtual address > space if not using highmem. AFAIK the vmalloc area is located in the last 128MB that and ioremap() of EPC would consume a big portion of that. > > KVM works only with writable MSRs. Driver works both with writable > > and read-only MSRs. > > Could you help with my confusion by documenting this a bit? Sure. /Jarkko