Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1682295ybl; Sat, 7 Dec 2019 00:10:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwvkt4xFZ/68kJWdOvqfMH2HCZ7sc49adlmDypA7lGXMY2ou70lTX8LUaaEpmhF8JfBYij+ X-Received: by 2002:aca:3012:: with SMTP id w18mr16670803oiw.33.1575706223345; Sat, 07 Dec 2019 00:10:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575706223; cv=none; d=google.com; s=arc-20160816; b=OAXRXNh9W6XEY++AaW6SF7Y/FsG70cwim0YwGrbjGpqWjoxhOQFJE3Jw9PAttUAksU s++P8/37IThu0tFcxuUOipE89ZetlmKwQ99pW5sd8hwwfSp5O+ENGTC6NRLZE097l1V3 za9Xy3O4ifrHd0RePPwCgzB/f2NNt03HgK31N8J7VeVIDLsBYRlhoXmEtdVLup9UQwQa egQIhebQPXnF9lrwTYlgeWXg8849GUYCSIZP1vkH17JZD67P5fEVlEdPR0YMneyHaRAA 84hQeI4TOk5r6mzq1ZooGQ+T1c5aBTSZ7QJVKKErxbxZKRsYEDbxR0eD1/FhdFgL0zzq YrrQ== 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=qYCDesNGE1pxk3J2FRPGcUP8Z8aykyYp27SxW2y3MaM=; b=DqUt9xYeOUbuwySCHQGCsssv4pNqEQ+wmhcH/mO4rvf7FRWTP3egYvU12lVtt68ntK mE4ljLLhIVB/EU2dlI/oxFhUgEcERb/b9eUx3ZGqwrWjTzcVh3hjyM7K9kctfubWMSSB Mu/wT2NR/A4P5S8C/kKi7QrnOVq0xiD5VSo/hRQBXLz23QxJB5U1DapGxr8o8Rs3AUce NscB1npFZVT7NeDTocmJGnfR48MiLZ63g81g37TZkohBVdH4ggOaUuy92jh+MFKY7gnG Xh7SUwQ/Ig0Ji2MuneNha08XPR/0JFYecyTaEORICTP1XS6MMr9zwwQi6lIFGfu4D3OT w4bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E+SPt6vh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si8683227otn.241.2019.12.07.00.10.10; Sat, 07 Dec 2019 00:10:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=E+SPt6vh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726555AbfLGIJm (ORCPT + 99 others); Sat, 7 Dec 2019 03:09:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:54682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbfLGIJm (ORCPT ); Sat, 7 Dec 2019 03:09:42 -0500 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 726B12173E; Sat, 7 Dec 2019 08:09:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575706182; bh=ka9twd3f9Ty1CXid7X6crb8J+0HJg7UfRGdoa9Nv64s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E+SPt6vh/IIeHtU3r2uxwF0NrKJOZj9vsujceIkuISVHmj4XgMIUjyCmuSmz1DXn/ UEt58uxJswsrA3NBZCWVGx8+kAkUUeXzLMV5oPKwpyCncTU+yULGcal4wYH7BYz0La gqSNfXSpZWCihftEKGUXVk8d8XTNOcGFf2k4e4kM= Date: Sat, 7 Dec 2019 09:09:39 +0100 From: Greg KH To: Jarkko Sakkinen Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.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, andriy.shevchenko@linux.intel.com, tglx@linutronix.de, kai.svahn@intel.com, bp@alien8.de, josh@joshtriplett.org, luto@kernel.org, kai.huang@intel.com, rientjes@google.com, cedric.xing@intel.com, puiterwijk@redhat.com, linux-security-module@vger.kernel.org, Suresh Siddha Subject: Re: [PATCH v23 12/24] x86/sgx: Linux Enclave Driver Message-ID: <20191207080939.GA193518@kroah.com> References: <20191028210324.12475-1-jarkko.sakkinen@linux.intel.com> <20191028210324.12475-13-jarkko.sakkinen@linux.intel.com> <20191128182450.GA3493127@kroah.com> <20191206203807.GA9971@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191206203807.GA9971@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 06, 2019 at 10:38:07PM +0200, Jarkko Sakkinen wrote: > > Why a whole cdev? > > > > Why not use a misc device? YOu only have 2 devices right? Why not 2 > > misc devices then? That saves the use of a whole major number and makes > > your code a _LOT_ simpler. > > The downside would be that if we ever want to add sysfs attributes, that > could not be done synchronously with the device creation. That is what the groups member of struct misc_device is for. greg k-h