Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp298217pxa; Tue, 11 Aug 2020 03:20:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfpRyJG3dmY/YVkUuhINMHypXuRe5q/FKShK/Y+c/pasvA6ahW8U8zzyfIXTciCrTla8J1 X-Received: by 2002:a05:6402:3121:: with SMTP id dd1mr25734424edb.72.1597141256455; Tue, 11 Aug 2020 03:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597141256; cv=none; d=google.com; s=arc-20160816; b=liYnURBrww120TyuXef6CiI+YWTqLzfFT8L9Rp8w/0wKoSlvyaYMW6w2zjntDTHsf7 K/6ZqrDYV3YhxmkpBsmzxtor3WXIuB7+xDsRFQT5fPkWT/r8r916iXNC7AujxvCZCewK PdkTw21//BNUsOF7flcRNMcX9c1uG9vupgVNlZt/fAPqxs3KyefpLREZ/M0pWMkM+gXn klx/v4TbDLN1RX48OSe7y9aCtgpXhIqt1Yq2xoltRDopmg/bV2i2AAe5KbfFgMem9tXx +OsiF/tv4AkyImeoNNIdXfsAs6vVCfCx7tTqYLhl8ZtCWuxgXt7RJyo2ExdcyJQ7NDI+ iDvQ== 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=pH/dqPFqn/5c/fFx2x7y3lTOdQqwfNkq66YZ1oLQHaE=; b=DLWD/ZhRBcWBb21HrVRY6VJt6wpfoIbWCWbE5z2h5Hnp3OT2kFexY7RqsQPry6jvxX Gm1xe/FsE1vES22qgTqm3iHut15Wz5F0d0Wz36/CJIeiOTca0n9cmjb6pTQbiShNaGHO Y6wKhejMgJ/fe+8AJqz8i/H0QNPwUlve+wqOeO9naNC5CqnmG7nWwTka+9UQ/hjgW3O7 Km9X1Th4cIw8xAx+DcdhLANGPFbYP/CMq8zhW/zrHf0UUXjrjMpAoVO/CrdV8LDT7B89 LGH7BkguIY9g6f8cdSv8gJaiZNazXSd+VZy9DHBdYPNqiXNlVT9bvrWkZirDLUg/k80R PFvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hkHUyzl9; 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 l18si12334006eds.376.2020.08.11.03.20.33; Tue, 11 Aug 2020 03:20:56 -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=hkHUyzl9; 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 S1728516AbgHKKRv (ORCPT + 99 others); Tue, 11 Aug 2020 06:17:51 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:13120 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728346AbgHKKRv (ORCPT ); Tue, 11 Aug 2020 06:17:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1597141070; x=1628677070; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=pH/dqPFqn/5c/fFx2x7y3lTOdQqwfNkq66YZ1oLQHaE=; b=hkHUyzl9kpqc6B6IDEkk2OnF4YXHCP/80VMugiyGJiKPcJZQfMzY8J2b fabmugmKx7xD8+hfTJ+Lp2IJRRP99UwPfzOqJU2i9p+94QEwI7P5IrUf4 rJw8q0LbGCYyavr5XtDLnI/tAqqwv/cEO7uwHFeYtKCja2tJNWUaNJbdz Q=; IronPort-SDR: /Jfizqq72H/cs+siuKEQ9MKFuSHy05tstZjjnB9QrOJfwKBi5ykGU6svTVGGSO0fjz/aJYFIea qIxaItFYFA+Q== X-IronPort-AV: E=Sophos;i="5.75,460,1589241600"; d="scan'208";a="47084569" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 11 Aug 2020 10:17:49 +0000 Received: from EX13MTAUEB002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-38ae4ad2.us-east-1.amazon.com (Postfix) with ESMTPS id 34EF5A272D; Tue, 11 Aug 2020 10:17:46 +0000 (UTC) Received: from EX13D16EUB001.ant.amazon.com (10.43.166.28) by EX13MTAUEB002.ant.amazon.com (10.43.60.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Aug 2020 10:17:46 +0000 Received: from 38f9d34ed3b1.ant.amazon.com (10.43.162.140) by EX13D16EUB001.ant.amazon.com (10.43.166.28) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 11 Aug 2020 10:17:36 +0000 Subject: Re: [PATCH v6 10/18] nitro_enclaves: Add logic for getting the enclave image load info To: Alexander Graf , 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> <70ec8010-cb3b-50a8-5472-a96c5aa2cf8d@amazon.de> From: "Paraschiv, Andra-Irina" Message-ID: <0ef970b1-eea2-916c-3546-fdc4f2595e99@amazon.com> Date: Tue, 11 Aug 2020 13:17:31 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.1.0 MIME-Version: 1.0 In-Reply-To: <70ec8010-cb3b-50a8-5472-a96c5aa2cf8d@amazon.de> Content-Language: en-US X-Originating-IP: [10.43.162.140] X-ClientProxiedBy: EX13D12UWC001.ant.amazon.com (10.43.162.78) To EX13D16EUB001.ant.amazon.com (10.43.166.28) 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 10/08/2020 12:57, Alexander Graf wrote: > > > 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 Thanks for review. I included the tag for this one and the next 2 patches. Andra Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar= Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in R= omania. Registration number J22/2621/2005.