Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1055970imm; Wed, 4 Jul 2018 10:38:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcGdFAx6JZAUHNrfftxxF1xQqs0IGnt1/Zn1X6HNl+t0fOLf3sjyriE5LKhNDk1ilBP4pkn X-Received: by 2002:a63:3444:: with SMTP id b65-v6mr2690852pga.396.1530725928243; Wed, 04 Jul 2018 10:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530725928; cv=none; d=google.com; s=arc-20160816; b=IDIYwjqJMYrFj24AA/1+1kltOKrIyM5tA2inLzOnUe40/fBAjGjT8l7GzbljddRVUC qbl3NhW024Z0YFXcTuwgCldWtsSXtR9vpCU5o1FmCeN/5W4HoUQXdfa46l8wEoglEjAx StylZBTqVbvWvU+zjsYgRhflZoEgaquVlxUUycSJDpO9Rbilr+46Cu3VHPpjJLwwsMzw nw7qBlLfij5/AGkuSKxm4XTPVt8THcxC8kCMi6bo3RE5NS6fBZ28H0EIGvt7lEr6bisF o60EYZFNK3RcC8JjxRcuVPo3dyWKwSAJ3Cs7zOGQoi96my0kauOmBgzFMTjI2FRXOmPa nUzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=bbCCss4dZtRZjemNO20fIRxjV+hlH6ogaz5tjbgS7d4=; b=Nrt0jiXzoYd1GOt95+tIeGMew3GlfWkausUNNA7z7jB+Uao13Oo+N6A9Z6TkEApQgf +FvLdDYu0oUmjzrssA1xFSAAcZEriopTSfH0HpFUU19cA/L1SeziIYPy/2dLZ1A6ZCke jCNeGDG/b3B3sph4HY0XAhngK+YMr9L8yw4vx1ITZywYRsAw/etGgjjvXlY9YD4bZN3c 89LRPlADN5hkz9Tm2Aj4j/gE4aNOgSusrHRqm81D5XZUBlxf2siTRfaVrdq+bCnpwTNX 4EjV3YD3VX7hlW+qtBDTGGB29GZBb3Hu7BkuLjLichHgGdekUFTfiIGdC8YK8AftVI/i o8Zg== 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 t128-v6si4244008pfc.194.2018.07.04.10.38.33; Wed, 04 Jul 2018 10:38:48 -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 S1752970AbeGDRgV (ORCPT + 99 others); Wed, 4 Jul 2018 13:36:21 -0400 Received: from mga09.intel.com ([134.134.136.24]:53642 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752277AbeGDRgU (ORCPT ); Wed, 4 Jul 2018 13:36:20 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jul 2018 10:36:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,306,1526367600"; d="scan'208";a="62292187" Received: from saamir-mobl.ger.corp.intel.com (HELO localhost) ([10.252.34.242]) by FMSMGA003.fm.intel.com with ESMTP; 04 Jul 2018 10:36:13 -0700 Date: Wed, 4 Jul 2018 20:36:12 +0300 From: Jarkko Sakkinen To: Randy Dunlap Cc: Thomas Gleixner , x86@kernel.org, platform-driver-x86@vger.kernel.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, linux-sgx@vger.kernel.org, Ingo Molnar , "H. Peter Anvin" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v12 07/13] x86/sgx: data structures for tracking available EPC pages Message-ID: <20180704173612.GK6724@linux.intel.com> References: <20180703182118.15024-1-jarkko.sakkinen@linux.intel.com> <20180703182118.15024-8-jarkko.sakkinen@linux.intel.com> <00ca61d5-5a1d-5c83-3b49-62c899a87041@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00ca61d5-5a1d-5c83-3b49-62c899a87041@infradead.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 01:26:11PM -0700, Randy Dunlap wrote: > On 07/03/18 12:46, Thomas Gleixner wrote: > > On Tue, 3 Jul 2018, Jarkko Sakkinen wrote: > > > >> SGX has a set of data structures to maintain information about the enclaves > >> and their security properties. BIOS reserves a fixed size region of > >> physical memory for these structures by setting Processor Reserved Memory > >> Range Registers (PRMRR). This memory area is called Enclave Page Cache > >> (EPC). > >> > >> This commit adds a database of EPC banks for kernel to easily access the > > what kind of database? How does one query it? Have to think of a better word. Thanks! /Jarkko