Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4249598ybz; Tue, 28 Apr 2020 08:10:21 -0700 (PDT) X-Google-Smtp-Source: APiQypLCdO4dv4UN0IyN39+31eaQY21KHEqSDVhvXmlzMQ5rYYCN/dKvnn//MmHmLlymJigGnQ6C X-Received: by 2002:a17:906:560b:: with SMTP id f11mr23465202ejq.264.1588086621694; Tue, 28 Apr 2020 08:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588086621; cv=none; d=google.com; s=arc-20160816; b=PXZrpkMm3fu3FVuF1fZtEY5wD5b7S1qmtAFLrWu3a3cJf36G57NjZ1Hpf9++b13+Zg 1gWKuy5pSrQ3USPAyeO2D7AJeQ6NVBjjeCqoFZePcvFirym6Mjq+7EytRwRGCeaqoMEe W9CQFCT9WMCAYlezGg8MjyvIS9mVxqk2S7zUZytTvOql0nAGa5y2JkdEU2JEsTCE5HyL c3Wm8SFp8pLlzj5oKSXZiHdRlmwbU9g/HVpbCEWejqJZmweEyQfWr8p7dWEtE+VXrLXR mkl0CcovTwPtG8r9xX3xNOPmvRw/NsIUpvZbqu1GD/YXYlYBV60I4McGDL6eysaENRyl 3TkQ== 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=te8o9Lj1+ijfjNPgqMBT7qXZPWfUQ2zkU3aGea8cF2U=; b=Uk2b2/OqbhM96OhOOaEkx7FccNxJm7riW7s5KnCkj43UM7pS7iVdnxs2Y7lzVE26z0 a2N67P8KrDwXmgj7aX1JWr7JKV6GKyWUiSGx2gx64E5n1/2FMMv9eCoQNBaU2ksCp/T3 mxEWwR0qPVjRVg4EMGlsoYZaDsqBqyPwIWJvx3IqhRRQqoDuQZtSuOOREvI9KcjDr4+u bBs+AxUURTNBClJVBAjRHZvCuiKdKrb5XKTBg84jgNzu3ShkbyMcgAsbcvKf+c9kuQuc 7AQlCd2lQ0pRLnWENNl44X3kQCk4+wlikt1lelMO2l/gS4n923YRCy0cv7gQqiFzYkYB Cp5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=CTuRapyD; 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 g25si2017298ejo.389.2020.04.28.08.09.42; Tue, 28 Apr 2020 08:10:21 -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=CTuRapyD; 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 S1728106AbgD1PHs (ORCPT + 99 others); Tue, 28 Apr 2020 11:07:48 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:3910 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbgD1PHr (ORCPT ); Tue, 28 Apr 2020 11:07:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1588086467; x=1619622467; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=te8o9Lj1+ijfjNPgqMBT7qXZPWfUQ2zkU3aGea8cF2U=; b=CTuRapyDOZpMoYSJYG0RgwHQAtlFCH8IU9eeteQzGu9ra5zlxQ22uwoS A4/c0onLUyu0yNJW2fGnypDas+0SsjNlbkT6PhRw6Us9rGVsT99BQcJMh BT5snRXa8RYhYIMI2BEsJz8t4SnNl/XceuLcPCqZIJCAR/zwJfXpJWyV2 0=; IronPort-SDR: sTMdFzGT/Qju37TJKZt0gijyvJi9c4GvdgYHIGdSCUHqYMzTUZ+BaFoNhXw06JvL9TUW7M2Y8d Ifdgr1OoJaYQ== X-IronPort-AV: E=Sophos;i="5.73,328,1583193600"; d="scan'208";a="41395309" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 28 Apr 2020 15:07:45 +0000 Received: from EX13MTAUWC001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (Postfix) with ESMTPS id C3B9AA219C; Tue, 28 Apr 2020 15:07:42 +0000 (UTC) Received: from EX13D20UWC001.ant.amazon.com (10.43.162.244) by EX13MTAUWC001.ant.amazon.com (10.43.162.135) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Apr 2020 15:07:40 +0000 Received: from 38f9d3867b82.ant.amazon.com (10.43.162.200) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Apr 2020 15:07:36 +0000 Subject: Re: [PATCH v1 00/15] Add support for Nitro Enclaves To: Paolo Bonzini , "Paraschiv, Andra-Irina" , CC: Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , Bjoern Doebel , David Woodhouse , Frank van der Linden , Martin Pohlack , Matt Wilson , Balbir Singh , Stewart Smith , Uwe Dannowski , , References: <20200421184150.68011-1-andraprs@amazon.com> <18406322-dc58-9b59-3f94-88e6b638fe65@redhat.com> <2a4a15c5-7adb-c574-d558-7540b95e2139@redhat.com> <1ee5958d-e13e-5175-faf7-a1074bd9846d@amazon.com> <80489572-72a1-dbe7-5306-60799711dae0@amazon.com> <0467ce02-92f3-8456-2727-c4905c98c307@redhat.com> <5f8de7da-9d5c-0115-04b5-9f08be0b34b0@amazon.com> <095e3e9d-c9e5-61d0-cdfc-2bb099f02932@redhat.com> <602565db-d9a6-149a-0e1a-fe9c14a90ce7@amazon.com> From: Alexander Graf Message-ID: <0a4c7a95-af86-270f-6770-0a283cec30df@amazon.com> Date: Tue, 28 Apr 2020 17:07:34 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [10.43.162.200] X-ClientProxiedBy: EX13D30UWC002.ant.amazon.com (10.43.162.235) To EX13D20UWC001.ant.amazon.com (10.43.162.244) 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 CgpPbiAyNS4wNC4yMCAxODowNSwgUGFvbG8gQm9uemluaSB3cm90ZToKPiBDQVVUSU9OOiBUaGlz IGVtYWlsIG9yaWdpbmF0ZWQgZnJvbSBvdXRzaWRlIG9mIHRoZSBvcmdhbml6YXRpb24uIERvIG5v dCBjbGljayBsaW5rcyBvciBvcGVuIGF0dGFjaG1lbnRzIHVubGVzcyB5b3UgY2FuIGNvbmZpcm0g dGhlIHNlbmRlciBhbmQga25vdyB0aGUgY29udGVudCBpcyBzYWZlLgo+IAo+IAo+IAo+IE9uIDI0 LzA0LzIwIDIxOjExLCBBbGV4YW5kZXIgR3JhZiB3cm90ZToKPj4gV2hhdCBJIHdhcyBzYXlpbmcg YWJvdmUgaXMgdGhhdCBtYXliZSBjb2RlIGlzIGVhc2llciB0byB0cmFuc2ZlciB0aGF0Cj4+IH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