Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp841605imu; Mon, 5 Nov 2018 09:32:42 -0800 (PST) X-Google-Smtp-Source: AJdET5f5OmZWYg22Zo6Khmd9r/MOzG6hPrhYJ4zKNGjXUVEKOp9guBcvizOJDZxQFIm6PyePjXwt X-Received: by 2002:a17:902:2909:: with SMTP id g9-v6mr22554454plb.223.1541439162180; Mon, 05 Nov 2018 09:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541439162; cv=none; d=google.com; s=arc-20160816; b=UqymDsD4o4pudERbm9oa56iwLD+uKPqvIt6kk27UxKvukfGdnAJ12gJEsd42kBHcj5 fFYriWg1DU1wVn7jsf9Dl3vxaLXcH6dTuwgrxwBDjmgICAqQWfFUmkZE+4mOksrYbtdJ tc+TNUYzlIxYxErlYTEA7sl0qYSZ6AMvOT2KthukpusfXxhegeFYpP6HVTdq8m0ZnLaF L8cM6JAbe93mTLgTbFkYR9zZAyVKAvwFk0Xnw8X6Pm/1QJyd5HnwqWZTktCKH8KSVnqt Z9pLrr6hPXCXPzEaRqbXdWm7y+yspN7O/A6UcUXsa7tRX2iVmG3kSynge1Ji4mr7i+3w zrTw== 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; bh=0igZReMHbmts4AAU3fUIXBJdx4CHAfFYSZdi7J/AqLk=; b=h1JhgUk0thgkuUqCdSnNSPEk48AISPmDQgKg9a1fR75tToqdGE0c16GbfHSdhVvxfh MggX82fZngdhCaP11Vj81GjKGTOLGaHENuMvvIZM8RLZ5CjmrZwbyxgFgbQocIjRJeNV YpxpAMsQgnG1cQJEMx21j0kBB4KoUBtZDc7/9vhDNYQGKiy+tiLKVFDel3EvYnIW179u VpWMpZN7miwbSKBlE+lqEmJhieN732yuo5VdwtvG+B0HrynnVN1V//p1ZilBE1/2K6tH kct/q6THAWmXD3OypBUKowrluyx0beA7UArniO3Yyjal3cYhQAWPuuQL59dIUUrKmdOU 1YTA== 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 m3-v6si9732623pfm.118.2018.11.05.09.32.26; Mon, 05 Nov 2018 09:32:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387589AbeKFCwi (ORCPT + 99 others); Mon, 5 Nov 2018 21:52:38 -0500 Received: from mga02.intel.com ([134.134.136.20]:17322 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729800AbeKFCwi (ORCPT ); Mon, 5 Nov 2018 21:52:38 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Nov 2018 09:31:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,468,1534834800"; d="scan'208";a="271542995" Received: from wenjiewa-mobl2.ccr.corp.intel.com (HELO localhost) ([10.249.254.60]) by orsmga005.jf.intel.com with ESMTP; 05 Nov 2018 09:31:45 -0800 Date: Mon, 5 Nov 2018 19:31:44 +0200 From: Jarkko Sakkinen To: Jethro Beekman Cc: "x86@kernel.org" , "platform-driver-x86@vger.kernel.org" , "linux-sgx@vger.kernel.org" , "dave.hansen@intel.com" , "sean.j.christopherson@intel.com" , "nhorman@redhat.com" , "npmccallum@redhat.com" , "serge.ayoun@intel.com" , "shay.katz-zamir@intel.com" , "haitao.huang@intel.com" , "mark.shanahan@intel.com" , "andriy.shevchenko@linux.intel.com" , Suresh Siddha , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Reinette Chatre , "Rafael J. Wysocki" , "Kirill A. Shutemov" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v15 16/23] x86/sgx: Enumerate and track EPC sections Message-ID: <20181105173144.GE4502@linux.intel.com> References: <20181102231320.29164-1-jarkko.sakkinen@linux.intel.com> <20181102231320.29164-17-jarkko.sakkinen@linux.intel.com> <79867568-c21f-8a09-d06e-360b1b925dd5@fortanix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79867568-c21f-8a09-d06e-360b1b925dd5@fortanix.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 03, 2018 at 01:07:27AM +0000, Jethro Beekman wrote: > > + for (i = 0; i < SGX_MAX_EPC_SECTIONS; i++) { > > Perhaps print a warning if there are more than SGX_MAX_EPC_SECTIONS sections > reported by CPUID. Makes sense. I'll add it. /Jarkko