Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3002069ybt; Mon, 29 Jun 2020 12:35:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4awqeE89zgmw1r9MVVqANOCXArCcn0KbyGCSHVCiw7gbBac/VmS3nNa98lWohhudRzc+h X-Received: by 2002:a17:906:4757:: with SMTP id j23mr14495710ejs.431.1593459343105; Mon, 29 Jun 2020 12:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593459343; cv=none; d=google.com; s=arc-20160816; b=mdw/N4PvnZsL7TIrIRpVhQ6DvrCXyyamCsxON3GYBCo6Ydjw8V5TU94u6Q3ztu3nRu t93MeYqJV8AIVO9diJijC2N6yVOM4kXKmw7mRfEHX5FqA+wAfeYZEBq86Opz4D5QlG53 v1HucPMB80g7AmNWrhSwEo+nZk0jjomw9GvVjqmB0U1fjV1Bl+ES6birwXYiF/bJr0JC SDAJUhjB4R//tg3aPKWudx/yY0Ncj7g/MQVVDfRqcP8cSciXwUhlVt1gonNiXwL21urF /d19lXp1+S4EWI/DA+7wN8UFRc5u6AQtUj6xQRX5rowOL+kb15776LHiKAHE0HoW8mw+ xONQ== 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=CVcq2zndXVsddYQ8O6xnjIwELA++4s2vt+dBW25RPxw=; b=zPGYu7JV42ufrWByB3vh1Mf2095eRHIF9Wd1RpiZXmio32YEGgVpAlOCQkD9fH5c5i ix6ZSuFXfULMp5yVPN0D7j3Kpf8JnRe32nERXKjc5pEORXg7VSPxYNHGS95bK7MNWB8v wr8Xrzk0fSTiWsIUiU1SS7FGTSPgWnw5h1jsvF/clvYakFQlK48BwOkMGA2n2HIOfWOh FB1FzpywrbDLZDBQf2XBrpUDV0DT4A7HQUwBgl857PHoS4dQUaMma++kvgIl3nW1qlWE S9c3YerUKuBSHU9SKiBpCMCaCc9KWymeZ6WvyuHaIkDD43ZW3K96JzrXfSTWvmZMKNpn k18g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=b9otqqiV; 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 s27si357308ejd.181.2020.06.29.12.35.20; Mon, 29 Jun 2020 12:35:43 -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=b9otqqiV; 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 S1733147AbgF2TfP (ORCPT + 99 others); Mon, 29 Jun 2020 15:35:15 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:24916 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732761AbgF2TbR (ORCPT ); Mon, 29 Jun 2020 15:31:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1593459077; x=1624995077; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=CVcq2zndXVsddYQ8O6xnjIwELA++4s2vt+dBW25RPxw=; b=b9otqqiVz5IzO+TpgIpIl5x1fTTmOSQG3OMqvKf/mqzDz7ttXDj9cy26 wjH+Yz5v/7wnS0xjesx81aJ/isv60akcXmXlfsnBUQNTHbwvQbgb2vfQh Jdy7RDAj9Iez+cpJouBD4vlDLPkIyE6m2cb3C98As0xr/wUV4lhcX5wE8 g=; IronPort-SDR: IqI4/h1k6y6GKcc3DjPyyObPuwfrJpzrWV6Wad85FwQ4Pbpf/ah8+z9QegclRz+AL7FxXn7PPI qJ++tEW4Qo/Q== X-IronPort-AV: E=Sophos;i="5.75,295,1589241600"; d="scan'208";a="54762156" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-8cc5d68b.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 29 Jun 2020 17:45:46 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-8cc5d68b.us-west-2.amazon.com (Postfix) with ESMTPS id 586D0A24B4; Mon, 29 Jun 2020 17:45:46 +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; Mon, 29 Jun 2020 17:45:44 +0000 Received: from 38f9d34ed3b1.ant.amazon.com (10.43.161.145) by EX13D16EUB001.ant.amazon.com (10.43.166.28) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 29 Jun 2020 17:45:36 +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> From: "Paraschiv, Andra-Irina" Message-ID: Date: Mon, 29 Jun 2020 20:45:25 +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: <20200629162013.GA718066@kroah.com> Content-Language: en-US X-Originating-IP: [10.43.161.145] X-ClientProxiedBy: EX13D39UWB004.ant.amazon.com (10.43.161.148) 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 CgpPbiAyOS8wNi8yMDIwIDE5OjIwLCBHcmVnIEtIIHdyb3RlOgo+Cj4gT24gTW9uLCBKdW4gMjIs IDIwMjAgYXQgMTE6MDM6MThQTSArMDMwMCwgQW5kcmEgUGFyYXNjaGl2IHdyb3RlOgo+PiArc3Rh dGljIGludCBfX2luaXQgbmVfaW5pdCh2b2lkKQo+PiArewo+PiArICAgICBzdHJ1Y3QgcGNpX2Rl diAqcGRldiA9IHBjaV9nZXRfZGV2aWNlKFBDSV9WRU5ET1JfSURfQU1BWk9OLAo+PiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBDSV9ERVZJQ0VfSURfTkUsIE5V TEwpOwo+PiArICAgICBpbnQgcmMgPSAtRUlOVkFMOwo+PiArCj4+ICsgICAgIGlmICghcGRldikK Pj4gKyAgICAgICAgICAgICByZXR1cm4gLUVOT0RFVjsKPiBJY2ssIHRoYXQncyBhIF92ZXJ5XyBv bGQtc2Nob29sIHdheSBvZiBiaW5kaW5nIHRvIGEgcGNpIGRldmljZS4gIFBsZWFzZQo+IGp1c3Qg YmUgYSAicmVhbCIgcGNpIGRyaXZlciBhbmQgeW91ciBwcm9iZSBmdW5jdGlvbiB3aWxsIGJlIGNh bGxlZCB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