Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp181967ybs; Tue, 26 May 2020 06:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEakuWtyt/5+KqdL3GorDBuQxgKaYSDTVuDYzmN/yL6nWl/5FeewMx131E836N5yRZMSyL X-Received: by 2002:a17:906:abce:: with SMTP id kq14mr1124561ejb.187.1590500637643; Tue, 26 May 2020 06:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590500637; cv=none; d=google.com; s=arc-20160816; b=odNAEr94tG4NRIeL1FMFAHKFbasFruUTKBb/aY2xosDlHcPfFw4zKf48e1Ex2oa2IO A+Myr6vn8HzJBkHS+58auiChGMN9cjRoMGk0jm37hOFIaRT1E35cOuv3oJayCZMgoaHg J/EguxOq6sxH4qg8FNBvCbueqxIBSXXYYNt0E24Bb2SZqAxvJlfYaFrxIYMNfElBhkTC kgPtaNflqS2z+qrN29VnEvxNTB/xT7NeyfSh6ky1r/4vCe/ILBgyc1ZE2YQZcEoHwE6d cJq650EV7eeWmpY9/yu/lnbjt91tMU1NTmn6BNuB6gXRwsqd2abKGbkfqFthexbdqbTo ZjAg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr :dkim-signature; bh=KEjAiSa+WOkQ6WGzU97fQPGqxmN27eW/zY/rZIJWqOU=; b=o59XUW0AckK2es396uV67iM9d6QNrU9eSe6pnsZp+8M0ujiQtTWPMQQv2ds2VW5KNu 81BXiOabHg5J8yd9TEF3BB/57aSD3LE5oC61axd1n4GyraqmhwetZIlHbcuh2ixC0HfC BFlLG0j/C4qBdKg9lcfe5IDJoXyQ0suV8nsG3MmUw4jzwV1OgSTE07j6Jtjo/KJzOh3b CtaLKlNyX3e4c+XpmeW09o1NUQVJYwnTKc9wsNtRui0ewRDf2aO58N5mJAibWXIlVFOW z5lRQFEylG220zj0SlxHq4zgBlScmftWrlehqS6GI/qyyTSbLN7yktVx5n70qEF/xaR2 TfjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=szIeJgjx; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si11177975ejr.36.2020.05.26.06.43.34; Tue, 26 May 2020 06:43:57 -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=@amazon.de header.s=amazon201209 header.b=szIeJgjx; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731857AbgEZLmw (ORCPT + 99 others); Tue, 26 May 2020 07:42:52 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:60545 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728148AbgEZLmv (ORCPT ); Tue, 26 May 2020 07:42:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1590493371; x=1622029371; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=KEjAiSa+WOkQ6WGzU97fQPGqxmN27eW/zY/rZIJWqOU=; b=szIeJgjxtNJwpDV+PlThFb5gHtySFVhCxfAV09cGx0twXRpX73n2ZLOq csKcAcp/gJWEd08XeJkd1odx6C2myHrg/0nsRmRvOQ+BSS7KcNIAGUsmL +1Iktqk6M2GTk5mP6zQq3qwbdbDfLr8BaBPlfLctrVCn13EPr2LLbj5sZ U=; IronPort-SDR: sGY4wPEFRJdJ3Rx9HVKOkZi7xkWA5BtVegJtZem8fnWVPwzelFMoqaGo4eMS15Vqdsj/0JuW83 w5PV68vIFxyQ== X-IronPort-AV: E=Sophos;i="5.73,437,1583193600"; d="scan'208";a="37665411" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-53356bf6.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 26 May 2020 11:42:49 +0000 Received: from EX13MTAUWC001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-53356bf6.us-west-2.amazon.com (Postfix) with ESMTPS id 92942A1C66; Tue, 26 May 2020 11:42:48 +0000 (UTC) Received: from EX13D20UWC001.ant.amazon.com (10.43.162.244) by EX13MTAUWC001.ant.amazon.com (10.43.162.135) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 26 May 2020 11:42:47 +0000 Received: from 38f9d3867b82.ant.amazon.com (10.43.162.140) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 26 May 2020 11:42:43 +0000 Subject: Re: [PATCH v3 07/18] nitro_enclaves: Init misc device providing the ioctl interface To: Greg KH , Andra Paraschiv CC: , 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 , , References: <20200525221334.62966-1-andraprs@amazon.com> <20200525221334.62966-8-andraprs@amazon.com> <20200526065133.GD2580530@kroah.com> From: Alexander Graf Message-ID: <72647fa4-79d9-7754-9843-a254487703ea@amazon.de> Date: Tue, 26 May 2020 13:42:41 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200526065133.GD2580530@kroah.com> Content-Language: en-US X-Originating-IP: [10.43.162.140] X-ClientProxiedBy: EX13d09UWC004.ant.amazon.com (10.43.162.114) To EX13D20UWC001.ant.amazon.com (10.43.162.244) Content-Type: text/plain; charset="windows-1252"; format="flowed" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Enclave= s"); > = > 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=3D and maxcpus=3D = 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? > Can you get the other amazon.com developers on the cc: list to review > this before you send it out again? I feel like I am doing basic review > of things that should be easily caught by them before you ask the > community to review your code. Again, my fault :). We did a good number of internal review rounds, but = I guess I didn't catch the bits you pointed out. 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? :) Alex Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879