Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3424160ybt; Tue, 30 Jun 2020 02:23:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDKGe7QjjQEI3mP/g5V0IoJ8oolUFK6evC+8MJRLrYdxsKiW5HIQSyJFjMxzZi0d3ulPei X-Received: by 2002:a17:906:a156:: with SMTP id bu22mr17032014ejb.322.1593508988448; Tue, 30 Jun 2020 02:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593508988; cv=none; d=google.com; s=arc-20160816; b=yxMyKqTNZqIb6wSIP83W6RMcrhQSM6doXMpnz9giVoyXRKblHKsgtiGgsj0lIimyFb ETQ/JhvxGqr25ycKRltIq30ZqviPRdfwwwXCcdVjpDIU0YuNw9Kz/AMKWaHzTDMxr63z LJ6TOfbBAPjHpnVo4ic7h7v/ZC0aPGjlfqp15ZHdEvcdwnxlmH7ffpkk1ROAHc5JaqEZ r8Y+O42PwtKn3B2AvOzO9ycZRUF7q15tGlWLATn2tdQOki0XZTImLnJ+Aacv04Zp4drc doP/f2N0JrIXcrfjwsfGAdsYEa3Hk7gpwLG+s8U9v2uRQxaOU/YH4NjUil8aqXagUNmW ergg== 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=5n5MJugzhcrSeTK9NLulOvMBQ+MVsMc5zw8tneUXurM=; b=eNHXjgij/BRVCvQ4/p1riYo9VOXwps7/BqoldVMdjdwrrZhD+tfGfwDfpsodXNmPzI t6K537FzNvsV/5ngiK8s6GEcvbTXKThum0GIJaANqdXScwJGM/rguGHn5h0FMv3NK9bM zfOeTxfnsYl0Bn597bWiVOjfvGwkmuwEhwDTeByCM+7I1cJtO7cIc4duKYoOsrDyNajB MdfISvJMY4KvZIIq9xLVwm02SQSlz52oka3b8z7ksXD98Lg1QWr/z511t/3bl4/QHlKX EPjnWZ+/tijEBM1FymdmPbPx552WMU2t5ZOYjlNPRs1ORpsFXvGKXvT7iwx5cVxAAn2h s2RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=mzDNPm+n; 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.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si1393658ejd.741.2020.06.30.02.22.45; Tue, 30 Jun 2020 02:23:08 -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.com header.s=amazon201209 header.b=mzDNPm+n; 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.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731859AbgF3JIp (ORCPT + 99 others); Tue, 30 Jun 2020 05:08:45 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:26080 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731666AbgF3JIo (ORCPT ); Tue, 30 Jun 2020 05:08:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1593508124; x=1625044124; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=5n5MJugzhcrSeTK9NLulOvMBQ+MVsMc5zw8tneUXurM=; b=mzDNPm+nPege7qlvXC27kifyiGTp4XTnYrz4I/f0gvQwvr8ZzBcRPJJX 6LJ7n34kO3hvo+6dykN83wiKqtG/7ylBj1bQu5feTIBX1qrzj6qQ/SO/h PjhDs3MkhkR+11aKZ5aM4l2+4eH50/KlVXLMCO8yWuxmnipQ6xw7VhrMp M=; IronPort-SDR: 1FuC4n/N1heBbR2UfmJjtI/St0Aok87VCumCXcOdEPUYCUotoC7Ewk1KHAarkIB3Vthtv9l+nq RfVwVNI5g/pA== X-IronPort-AV: E=Sophos;i="5.75,296,1589241600"; d="scan'208";a="54946739" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-807d4a99.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 30 Jun 2020 09:08:41 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-807d4a99.us-east-1.amazon.com (Postfix) with ESMTPS id 4AAA8A185A; Tue, 30 Jun 2020 09:08:39 +0000 (UTC) Received: from EX13D16EUB001.ant.amazon.com (10.43.166.28) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 30 Jun 2020 09:08:38 +0000 Received: from 38f9d34ed3b1.ant.amazon.com (10.43.162.248) by EX13D16EUB001.ant.amazon.com (10.43.166.28) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 30 Jun 2020 09:08:31 +0000 Subject: Re: [PATCH v4 07/18] nitro_enclaves: Init misc device providing the ioctl interface To: Greg KH CC: , Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , Bjoern Doebel , David Woodhouse , Frank van der Linden , "Alexander Graf" , Martin Pohlack , Matt Wilson , Paolo Bonzini , Balbir Singh , Stefano Garzarella , "Stefan Hajnoczi" , Stewart Smith , "Uwe Dannowski" , , References: <20200622200329.52996-1-andraprs@amazon.com> <20200622200329.52996-8-andraprs@amazon.com> <20200629162013.GA718066@kroah.com> <20200630080535.GD619174@kroah.com> From: "Paraschiv, Andra-Irina" Message-ID: <7166a6aa-2e8f-fed9-6b95-f53b823e5bb7@amazon.com> Date: Tue, 30 Jun 2020 12:08:18 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200630080535.GD619174@kroah.com> Content-Language: en-US X-Originating-IP: [10.43.162.248] X-ClientProxiedBy: EX13d09UWA002.ant.amazon.com (10.43.160.186) To EX13D16EUB001.ant.amazon.com (10.43.166.28) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgpPbiAzMC8wNi8yMDIwIDExOjA1LCBHcmVnIEtIIHdyb3RlOgo+Cj4gT24gTW9uLCBKdW4gMjks IDIwMjAgYXQgMDg6NDU6MjVQTSArMDMwMCwgUGFyYXNjaGl2LCBBbmRyYS1JcmluYSB3cm90ZToK Pj4KPj4gT24gMjkvMDYvMjAyMCAxOToyMCwgR3JlZyBLSCB3cm90ZToKPj4+IE9uIE1vbiwgSnVu IDIyLCAyMDIwIGF0IDExOjAzOjE4UE0gKzAzMDAsIEFuZHJhIFBhcmFzY2hpdiB3cm90ZToKPj4+ PiArc3RhdGljIGludCBfX2luaXQgbmVfaW5pdCh2b2lkKQo+Pj4+ICt7Cj4+Pj4gKyAgICAgc3Ry dWN0IHBjaV9kZXYgKnBkZXYgPSBwY2lfZ2V0X2RldmljZShQQ0lfVkVORE9SX0lEX0FNQVpPTiwK Pj4+PiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBDSV9ERVZJ Q0VfSURfTkUsIE5VTEwpOwo+Pj4+ICsgICAgIGludCByYyA9IC1FSU5WQUw7Cj4+Pj4gKwo+Pj4+ ICsg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