Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4181529pxa; Mon, 10 Aug 2020 03:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUHa/pHFUo8Qmj8zDcZZQXt9KyJ882XGCZ3N+n0k19FHCZBTKvUc0p54W+vvotsFSlv0ga X-Received: by 2002:a17:906:cb8c:: with SMTP id mf12mr14991472ejb.3.1597053619027; Mon, 10 Aug 2020 03:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597053619; cv=none; d=google.com; s=arc-20160816; b=HtrGgiKlszaKt4TyETlqVNxhAyyNdA4DQYqE2MUs3qy3K31qFfL+DDfcO6qBNxtU9k kiF0fIvD2epy63Y3/Yaa9KO1uH3hEw/ix44IcG59cIY8VjoQeYqIyu6AN+6SImUXV6ds k45hpN7jjIZSRhdjtWMeuzFwi4uPNNACqznpIM9wyxdhY2R6IchVi1n19v4jfuyHEbbn lAvUW1W0VBiE5MY3Zd7MbS1UuNjVP/Peklanu2CaqSWJlu4MSvbbWZ3fYFic3lLVsj4G /JhAaI6gRKfI9CQWmirM+K9UJJwipdWvJzJzXfAvM1AMoACq9wOS38YcVEcBF0O/5/0X cdIg== 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=fgsFSgHthR1f7WWfooMBWx4lK2mZmhBHIFfrqDvnW3A=; b=s0d2qxTdRFHPvCldcygVyUbZ0ouVYi9S/y5Ce9AS1Wbc+auvxlEVfhi4QAtjiUXtCy 5JQ8BjoYX9/HWHCRNp3wLvSOUG9Al28JikkUY1miwS87wQqHCYg+KjlR5uZGLq4lwtHM o6SNsAAH7MqPdck44pFqubk0JHZlINYeZa+zgMRVkDMkEFRvs1Ay17AKCQKTUtbMxkxi d175xEY1ZJopCUZV6L9IDOhOjcmdCr7EBZN0kkyLxf147q86BE4Dt29uWh6e0FzchAtT xiklllu4NpsrmLZlsIC4MNCpOz/YvXzE3wehazxSz2TGAhAHIIuKiWCIXK7UFcl0BPWv NO1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=jqwS+cN5; 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.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v6si10754974edi.91.2020.08.10.02.59.56; Mon, 10 Aug 2020 03:00:19 -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.de header.s=amazon201209 header.b=jqwS+cN5; 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.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbgHJJ5O (ORCPT + 99 others); Mon, 10 Aug 2020 05:57:14 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:59274 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbgHJJ5N (ORCPT ); Mon, 10 Aug 2020 05:57:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1597053434; x=1628589434; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=fgsFSgHthR1f7WWfooMBWx4lK2mZmhBHIFfrqDvnW3A=; b=jqwS+cN5JVZhyhV+0EhC6RZgRcTaMbT+soxl2XDaYbhiP09zCYEKS+BV 7itQbwfVpF8cIK2PdiSI2CnmLQXuK/IhMj/w5pK2zqGB1t22N/uzJoOiv HV6KqJrx54s5zrQ0JdNsO3PIGBz96/go/nimdRrROHxlb8aCh+sv8Ux4m U=; IronPort-SDR: oDdE0v8ZPK5Lkk7yWvz3oUN9YB/R8fiwPqgiI3yviaucVfVSB0zLRy1fm+BvPtfKkoVYNjbbS5 zt7lO9XkxXog== X-IronPort-AV: E=Sophos;i="5.75,457,1589241600"; d="scan'208";a="66803826" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-6e2fc477.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 10 Aug 2020 09:57:11 +0000 Received: from EX13MTAUWC001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-6e2fc477.us-west-2.amazon.com (Postfix) with ESMTPS id BDB1EA1DD4; Mon, 10 Aug 2020 09:57:09 +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; Mon, 10 Aug 2020 09:57:09 +0000 Received: from 38f9d3867b82.ant.amazon.com (10.43.161.71) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 Aug 2020 09:57:04 +0000 Subject: Re: [PATCH v6 10/18] nitro_enclaves: Add logic for getting the enclave image load info To: Andra Paraschiv , linux-kernel CC: Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , "David Duncan" , Bjoern Doebel , "David Woodhouse" , Frank van der Linden , Greg KH , Karen Noel , "Martin Pohlack" , Matt Wilson , Paolo Bonzini , Balbir Singh , Stefano Garzarella , Stefan Hajnoczi , Stewart Smith , Uwe Dannowski , Vitaly Kuznetsov , kvm , ne-devel-upstream References: <20200805091017.86203-1-andraprs@amazon.com> <20200805091017.86203-11-andraprs@amazon.com> From: Alexander Graf Message-ID: <70ec8010-cb3b-50a8-5472-a96c5aa2cf8d@amazon.de> Date: Mon, 10 Aug 2020 11:57:02 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200805091017.86203-11-andraprs@amazon.com> Content-Language: en-US X-Originating-IP: [10.43.161.71] X-ClientProxiedBy: EX13D23UWC002.ant.amazon.com (10.43.162.22) To EX13D20UWC001.ant.amazon.com (10.43.162.244) Content-Type: text/plain; charset="windows-1252"; format="flowed" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.08.20 11:10, Andra Paraschiv wrote: > Before setting the memory regions for the enclave, the enclave image > needs to be placed in memory. After the memory regions are set, this > memory cannot be used anymore by the VM, being carved out. > = > Add ioctl command logic to get the offset in enclave memory where to > place the enclave image. Then the user space tooling copies the enclave > image in the memory using the given memory offset. > = > Signed-off-by: Andra Paraschiv Reviewed-by: Alexander Graf Alex Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879