Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp204650ybs; Tue, 26 May 2020 07:15:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk66c3Nxl5dsVcmMdVWyIKRzSjEDlzoPToVi1qTyjflH8tesUHgsxp4uoO8WM0ExDOHA9N X-Received: by 2002:a17:906:f06:: with SMTP id z6mr1301559eji.105.1590502551476; Tue, 26 May 2020 07:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590502551; cv=none; d=google.com; s=arc-20160816; b=SAO+UL7aWTb5zix2bsQSmdMHDkHQVH3DnnHF7dbMwWKek7HMJOfWZPiThvEiCCX5Dy 3Naoj8WPlosAQUXlwBVRUZqMCJyKODGcks2LU68yLnFsdIfufkhyxA7MrmSb3W57dXqL wvzCKTu/GkDYfHAT1JgUVkn/bM4wVAgy2uPlLaTPhiptRRD2+Jj/yIooZxI715dZ8T63 4173bqyrvODFbH7pB3b8t6qq4KykiL8ryq0XoxvnZk+7nRHwovI3RIBYSseaSpDLGL7e t+Tvq1j5QxTHE3kCv3rBs7b5Wc+jUxhTmp+i0+BnHXPB3aH3kjK35umzq+bnaGP73jPS CyuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oAqTx1UBzaojlb5e4wz04UtTuhmROSQ+V/MPEGdsaJw=; b=HveZS/F738nvIsjqnsPoVQClgKSr+xU8fgmGaD9Ah0F3GPfk/WsqrXmP3Il+venG30 FHxZsZAM0LIOkl8v1sIYAyMh/1qegBnfhy1lJt5lr4qvzVJnan7MdL8rgx4BaTEfqrPM mtBgJDZINYA+P8EqE8PB3t0jrdze4I5YbicEzz/AS8wM6XEaFpuKdC7lhnpXgu25gPqT Cyy+/NVWAdTmJ4jdXmmLJT8//g5Xo3ZSfGBvV4wk4Oon72WxQyvKOwvlmIKsJqEXEuY7 i5PwA9dsXFZAAUYOyI0z3JxWY35PBuSFFFf5mGu9EqLxyGjWYrT19g/p5yJcE1VulHc+ lX1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VI8lVcZa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j93si11673492edd.458.2020.05.26.07.15.27; Tue, 26 May 2020 07:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VI8lVcZa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388926AbgEZMdD (ORCPT + 99 others); Tue, 26 May 2020 08:33:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:46374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727983AbgEZMdD (ORCPT ); Tue, 26 May 2020 08:33:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 65C92207CB; Tue, 26 May 2020 12:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590496382; bh=J/ofThaxaM0xtQe0vxdfxn88U1thkKvd6+Zp8nzo9Dc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VI8lVcZaStraG3F7QrFdbQRFYgTSpxxmY5UByKI031j2asxt8f9es5GWacdgl8yvG IjTmGv3pBiv4nKsyLjwd518QH8y/M7YpXKpGJPyhx7iiW/5gp2O+3BNZsf93QMkRG5 CSK8+BDK2gsYwlFpNJWpzFatILursP5MvwYZVt6g= Date: Tue, 26 May 2020 14:33:00 +0200 From: Greg KH To: Alexander Graf Cc: Andra Paraschiv , linux-kernel@vger.kernel.org, Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , Bjoern Doebel , David Woodhouse , Frank van der Linden , Martin Pohlack , Matt Wilson , Paolo Bonzini , Balbir Singh , Stefano Garzarella , Stefan Hajnoczi , Stewart Smith , Uwe Dannowski , kvm@vger.kernel.org, ne-devel-upstream@amazon.com Subject: Re: [PATCH v3 07/18] nitro_enclaves: Init misc device providing the ioctl interface Message-ID: <20200526123300.GA2798@kroah.com> References: <20200525221334.62966-1-andraprs@amazon.com> <20200525221334.62966-8-andraprs@amazon.com> <20200526065133.GD2580530@kroah.com> <72647fa4-79d9-7754-9843-a254487703ea@amazon.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72647fa4-79d9-7754-9843-a254487703ea@amazon.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 26, 2020 at 01:42:41PM +0200, Alexander Graf wrote: > > > On 26.05.20 08:51, Greg KH wrote: > > > > On Tue, May 26, 2020 at 01:13:23AM +0300, Andra Paraschiv wrote: > > > +#define NE "nitro_enclaves: " > > > > Again, no need for this. > > > > > +#define NE_DEV_NAME "nitro_enclaves" > > > > KBUILD_MODNAME? > > > > > +#define NE_IMAGE_LOAD_OFFSET (8 * 1024UL * 1024UL) > > > + > > > +static char *ne_cpus; > > > +module_param(ne_cpus, charp, 0644); > > > +MODULE_PARM_DESC(ne_cpus, " - CPU pool used for Nitro Enclaves"); > > > > Again, please do not do this. > > I actually asked her to put this one in specifically. > > The concept of this parameter is very similar to isolcpus= and maxcpus= in > that it takes CPUs away from Linux and instead donates them to the > underlying hypervisor, so that it can spawn enclaves using them. > > From an admin's point of view, this is a setting I would like to keep > persisted across reboots. How would this work with sysfs? How about just as the "initial" ioctl command to set things up? Don't grab any cpu pools until asked to. Otherwise, what happens when you load this module on a system that can't support it? module parameters are a major pain, you know this :) > So yes, let's give everyone in CC the change to review v3 properly first > before v4 goes out. > > > And get them to sign off on it too, showing they agree with the design > > decisions here :) > > I would expect a Reviewed-by tag as a result from the above would satisfy > this? :) That would be most appreciated. thanks, greg k-h