Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3536533imu; Mon, 24 Dec 2018 04:03:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN511FLJ1DtFy3zimg4he1FFFzbbJKnsxxfjwSDX3IUKw5vgz46lkDoEEgxh3MeSrVB8piil X-Received: by 2002:a63:f74f:: with SMTP id f15mr12163282pgk.190.1545653018783; Mon, 24 Dec 2018 04:03:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545653018; cv=none; d=google.com; s=arc-20160816; b=mL5cD+4hAQ6CN9Z6h7xdh2NMf6Mx6m3VHspOcv+TL6r1N5oglrBf24ikTQk8hZx8vo aRZ04/3KDWPDTRNQhLbisRpPYzlYgQyRx88xrhijT7IPM+JDnRSgOo6HRN/fDCWXSXYb PDvYuUcR7iogCVX98wBlwH5h9tU9An9r1qLjmi0IS75SA6Gj6j5qgclYdVMVJIQkjqSr 1v3PpIWSoARiIw9wS9r/9Y7diBH+ocm1DZSrQwd7XU1Q8kXKp09fTe/YbwXAh7bP09e2 XGFPdHlMPQCxQmTiJB7aXfnpJJhNy+xMzzEGJBpfYhDRNRuh6gxIKxXcoMclINl95uFY 6bUw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yYMcmR6d3Q5Jzza6mbAt+TfJY9L3N/pVHMpwK6NjQOg=; b=BkQADjBA1hWkXJuxoIqen9KWjKFYYc57jdqKucdePF9PEsDivl8TMxw6CLvZEMig85 yjnjQOETa/h31urTcS9zxWmKfADLDnOMz/dUVp2Ie9/K/ZdkCs6mnG2d2g+ueyM17pVO CIfWqDf/2XWA7oL/XnQ9V7DxeHtIC123YwDCiygqqnWkP/JMbDqGCwxpcwlsg4Py3jUl 7EVvK2H8NUpjtHB+AFAnCmt07hdPYtnq0dV09qQ6ACupOTc25lVg+FjqLQP4P+Xj/Iiu iWai3+uHaqEYmWusVFtmEqSrFVZyi7z4l2DQqg7Vw+moDeq5DjbJve5CZLkrlt5bTpdH 6FfA== 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 q7si9166919pgl.303.2018.12.24.04.03.23; Mon, 24 Dec 2018 04:03:38 -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 S1725896AbeLXMB2 (ORCPT + 99 others); Mon, 24 Dec 2018 07:01:28 -0500 Received: from mga12.intel.com ([192.55.52.136]:38479 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbeLXMB2 (ORCPT ); Mon, 24 Dec 2018 07:01:28 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2018 04:01:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,392,1539673200"; d="scan'208";a="121345262" Received: from dlu2-mobl4.ccr.corp.intel.com (HELO localhost) ([10.249.254.240]) by orsmga001.jf.intel.com with ESMTP; 24 Dec 2018 04:01:20 -0800 Date: Mon, 24 Dec 2018 14:01:19 +0200 From: Jarkko Sakkinen To: Andy Lutomirski Cc: Sean Christopherson , Jethro Beekman , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "x86@kernel.org" , Dave Hansen , Peter Zijlstra , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , "linux-sgx@vger.kernel.org" , Josh Triplett , Haitao Huang , "Dr . Greg Wettstein" Subject: Re: x86/sgx: uapi change proposal Message-ID: <20181224120119.GE10971@linux.intel.com> References: <7706b2aa71312e1f0009958bcab24e1e9d8d1237.camel@linux.intel.com> <598cd050-f0b5-d18c-96a0-915f02525e3e@fortanix.com> <20181219091148.GA5121@linux.intel.com> <613c6814-4e71-38e5-444a-545f0e286df8@fortanix.com> <20181219144515.GA30909@linux.intel.com> <20181221162825.GB26865@linux.intel.com> <20181221182454.GA27371@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Sun, Dec 23, 2018 at 12:41:49PM -0800, Andy Lutomirski wrote: > Presumably sgx would create a bus and enumerate the devices as needed. > Or I suppose these things could be platform or system devices. I’m not > really a device model expert, and the one time I tried to implement a > character device, I got so disgusted that I wrote a whole library for > it. It’s still in limbo somewhere. In the driver/main.c I have a fairly good framework for device creation so if there is any reason to add more devices it is dead easy. I just don't see any reason for that. And I already have a bus there for SGX. All of this has been done a long time ago. /Jarkko