Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1541221ybh; Thu, 23 Jul 2020 11:23:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/B+3e5bPEt7lbG2SJi5JlVaPM31FGl1lelOcyhs22FdwJuGtq3iOEvk5Tf6HwzWfRsRrt X-Received: by 2002:a17:906:b16:: with SMTP id u22mr5524268ejg.53.1595528617846; Thu, 23 Jul 2020 11:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595528617; cv=none; d=google.com; s=arc-20160816; b=gL+fIxkQYWxqdSQvfy+IhBEthU4T+DRXKWLTgAEYlTE7tBaWFDwDnVEJQTtLXFlrHV Mq0R4+UWy5y57hKDDkkXJ4uZw3iDVAd2uWftMBzxYRZlrK2wNvTu3kT0OxwzIR0tzlVa TbDZ+ONRWnzxmbuPgQP2EmOPgnY6VXAU7wkIaRBFJ965pKXG6hoGyvnfspz7rmMeGexV P0pRH12xIkMmiG3NCbUSrwdUYzMUcxSvkT562BEudh989a2NtDG0B+zPYNshghunFFeG 2vPQ5GAbc9usm7/U9+DCTWSdvyOoBge5G51R1NtTzgq3LkagL5ph8Mjqkp8LfTzMTwPW E6rA== 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=OqsVKyONHBgrXDgQg9OKR7QshZHpcXMCyDkfKOGw2qs=; b=W9TXWeUQWLia9/d6/OZQmGpPmOnJi3lDsBr8SY0g9rIt2qcdOFumHzwKgjipVZHM40 jB9fVbUGfgTH8XxYES8uzDau/YJvxszo1MqsJYa4Cvz+VejKTo/QJEKoGUah+9xf10i0 iqz6ZV98z1VmzHtGG5l08RCzsfNVfycqZmFp+KnYL7CD6M5gjws7txaC3agduaHXFbXm f35R5y72vHBsBwk7xN+3QkhCmKFZ/bA0Y53IiYQ/w19PYi6u+X3W6qwlS2f8bmuO20Hx kqAoxXeDpI2JCjkfU/o6wm+mvQME27ujN81fe2ounclQb6H4deb3J1N6PpZ/hJcTeQv8 KtSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=QEdUwYr4; 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 y8si2680217edw.59.2020.07.23.11.23.15; Thu, 23 Jul 2020 11:23:37 -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=QEdUwYr4; 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 S1727109AbgGWSWV (ORCPT + 99 others); Thu, 23 Jul 2020 14:22:21 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:23171 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbgGWSWV (ORCPT ); Thu, 23 Jul 2020 14:22:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1595528540; x=1627064540; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=OqsVKyONHBgrXDgQg9OKR7QshZHpcXMCyDkfKOGw2qs=; b=QEdUwYr4uFUywQQlLRwQbU5tB6MJ7QFB47jENzGK1+CoElAjPq98UPWQ +tJGHU83l0plkSxbBAIVkb5wb5g0Hbo+b0dnRs2UGaCqz4EcuwNESMw4V 1uhf6J6NsyY6uuzxe/xWbGtTuneMjg2MKMzJD/6OgCNTg30uVQVWtu8bM M=; IronPort-SDR: WRqLE31tF1s7PT+TAApABwKfYGwIflBjDpx1h+HGZ9TpUC4bd7g4cZmkxOs/EvtVoNjoS4MupM 6l4rRH1aiKlA== X-IronPort-AV: E=Sophos;i="5.75,387,1589241600"; d="scan'208";a="45066285" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2b-81e76b79.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 23 Jul 2020 18:22:18 +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-81e76b79.us-west-2.amazon.com (Postfix) with ESMTPS id 5338AA1FD1; Thu, 23 Jul 2020 18:22:16 +0000 (UTC) Received: from EX13D16EUB003.ant.amazon.com (10.43.166.99) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Jul 2020 18:22:15 +0000 Received: from 38f9d34ed3b1.ant.amazon.com (10.43.161.146) by EX13D16EUB003.ant.amazon.com (10.43.166.99) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Jul 2020 18:22:04 +0000 Subject: Re: [PATCH v5 01/18] nitro_enclaves: Add ioctl interface definition To: Greg KH CC: , Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , David Duncan , Bjoern Doebel , David Woodhouse , Frank van der Linden , Alexander Graf , Karen Noel , Martin Pohlack , Matt Wilson , Paolo Bonzini , Balbir Singh , Stefano Garzarella , "Stefan Hajnoczi" , Stewart Smith , "Uwe Dannowski" , Vitaly Kuznetsov , , , Alexander Graf References: <20200715194540.45532-1-andraprs@amazon.com> <20200715194540.45532-2-andraprs@amazon.com> <20200721121225.GA1855212@kroah.com> <5dad638c-0ef3-9d16-818c-54e1556d8fc8@amazon.com> <20200722095759.GA2817347@kroah.com> <20200723105409.GC1949236@kroah.com> From: "Paraschiv, Andra-Irina" Message-ID: Date: Thu, 23 Jul 2020 21:21:51 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200723105409.GC1949236@kroah.com> Content-Language: en-US X-Originating-IP: [10.43.161.146] X-ClientProxiedBy: EX13D12UWA004.ant.amazon.com (10.43.160.168) To EX13D16EUB003.ant.amazon.com (10.43.166.99) 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 CgpPbiAyMy8wNy8yMDIwIDEzOjU0LCBHcmVnIEtIIHdyb3RlOgo+IE9uIFRodSwgSnVsIDIzLCAy MDIwIGF0IDEyOjIzOjU2UE0gKzAzMDAsIFBhcmFzY2hpdiwgQW5kcmEtSXJpbmEgd3JvdGU6Cj4+ Cj4+IE9uIDIyLzA3LzIwMjAgMTI6NTcsIEdyZWcgS0ggd3JvdGU6Cj4+PiBPbiBXZWQsIEp1bCAy MiwgMjAyMCBhdCAxMToyNzoyOUFNICswMzAwLCBQYXJhc2NoaXYsIEFuZHJhLUlyaW5hIHdyb3Rl Ogo+Pj4+Pj4gKyNpZm5kZWYgX1VBUElfTElOVVhfTklUUk9fRU5DTEFWRVNfSF8KPj4+Pj4+ICsj ZGVmaW5lIF9VQVBJX0xJTlVYX05JVFJPX0VOQ0xBVkVTX0hfCj4+Pj4+PiArCj4+Pj4+PiArI2lu Y2x1ZGUgPGxpbnV4L3R5cGVzLmg+Cj4+Pj4+PiArCj4+Pj4+PiArLyogTml0cm8gRW5jbGF2ZXMg KE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