Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp149933ybg; Sun, 31 May 2020 20:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOPeiN+TRsPepbwG10LwV5O2kDMNrv5kCYPGL2SRx9tuaq+AEjjd/Z1M6B551U4ekfWgoe X-Received: by 2002:a17:906:f913:: with SMTP id lc19mr11778823ejb.286.1590980842971; Sun, 31 May 2020 20:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590980842; cv=none; d=google.com; s=arc-20160816; b=HjktIDviLcoaRSFmQg5Rj490kcgXfUwUAPg3I7nl6mXd70AAcpldMSUaj4LkaqBfNp tm4wqjuLWdtYse8L9lNTu+BhHsf18x0vRBvq9uaXcIaqX2WGEsieW8RpcOYXqHlyWtm2 75d6UfKKOv2wooKQi3yJI1IcXXgnLqcovNj8qfrXfbqe77YsMSMdK2GUjcUFecLz1nqG eqEvVRlRQX++VCuqsHHhvDIlub3Fg/87s9kYObp0SQH94MscW+S5ysNw3qN6jzo96KE1 FdN47AixDfiXxi9FoLg4e+NA4fopuRS6Wb7uTO6ZHm61rKdjGI1J/Btpxs2rPgeSwB+e AtKg== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=oxWpq9fsKaYVVTFgdS4q7V2eqSHnyKO/lIy9LmoiayE=; b=S9Ad/BeZeIRQ2Kj8PV+csDeD98Y1s+Txu69E/nKe7UNXqwKJE9DmTAYYeGD3qlaSpi Ukko8Q0XMxWOgTn2T9Mqz9TM/7hRSb6y6Ur9PFzcS8ciJYz718uladNluKtKTP1lBp87 QHHDqe6vsXR8ndJY1UDrESv8cF25LNXonPGPWmSANk6MFevLjM0PMdheziwl2CnQRu2h 9FLxiEPKcEUpnErNZqCME0t/v8xmDXyKQOVeWqcTe5VDQoa+SdY7o26UeQB3AtFVpXbn hDDzpsYT3UZxIAljPJq3F8P6wVagP60vxb5ticvnvsPALEZtVRoBmHfEdm9Rs45b61sP Ck8A== ARC-Authentication-Results: i=1; mx.google.com; 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 m19si9585524ejd.738.2020.05.31.20.07.00; Sun, 31 May 2020 20:07:22 -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; 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 S1727953AbgFADEl (ORCPT + 99 others); Sun, 31 May 2020 23:04:41 -0400 Received: from kernel.crashing.org ([76.164.61.194]:53982 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726901AbgFADEl (ORCPT ); Sun, 31 May 2020 23:04:41 -0400 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 05134KVO003273 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 31 May 2020 22:04:24 -0500 Message-ID: Subject: Re: [PATCH v3 07/18] nitro_enclaves: Init misc device providing the ioctl interface From: Benjamin Herrenschmidt To: Greg KH , Alexander Graf Cc: Andra Paraschiv , linux-kernel@vger.kernel.org, Anthony Liguori , 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 Date: Mon, 01 Jun 2020 13:04:19 +1000 In-Reply-To: <20200528131259.GA3345766@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> <20200526123300.GA2798@kroah.com> <59007eb9-fad3-9655-a856-f5989fa9fdb3@amazon.de> <20200526131708.GA9296@kroah.com> <29ebdc29-2930-51af-8a54-279c1e449a48@amazon.de> <20200526222402.GC179549@kroah.com> <20200528131259.GA3345766@kroah.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.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 Thu, 2020-05-28 at 15:12 +0200, Greg KH wrote: > So at runtime, after all is booted and up and going, you just ripped > cores out from under someone's feet? :) > > And the code really handles writing to that value while the module is > already loaded and up and running? At a quick glance, it didn't seem > like it would handle that very well as it only is checked at ne_init() > time. > > Or am I missing something? > > Anyway, yes, if you can dynamically do this at runtime, that's great, > but it feels ackward to me to rely on one configuration thing as a > module parameter, and everything else through the ioctl interface. > Unification would seem to be a good thing, right? I personally still prefer a sysfs file :) I really don't like module parameters as a way to do such things. Cheers, Ben.