From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 717E0C433DF for ; Mon, 6 Jul 2020 11:26:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 480992073E for ; Mon, 6 Jul 2020 11:26:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="S4yIPsi9" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728892AbgGFL06 (ORCPT ); Mon, 6 Jul 2020 07:26:58 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:12482 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728578AbgGFL05 (ORCPT ); Mon, 6 Jul 2020 07:26:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1594034817; x=1625570817; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=gjuXNZmNz3Hv/J5qgV6vAqVuo3lygZIiVt+Jirx5OXE=; b=S4yIPsi9KnYgYgUGs88NMDzWeMQsNGXI5CeMNt7vDEDk2iD3qErOvjeo OMF9McLhifVmcY7ixQLKd0YDysVr6tH2NBYbfspUVPXaGhIWhweTjPj2Z FgJf+qnFfIxroLYIIcUnQYbME4KCwdLO+aI0igbG3Bn7WGpFFE8zqGS4u o=; IronPort-SDR: jaA4zTFDArA7PL8f8WlSV3ecirlEZsx4CMacUY/VAjg2eB5DgAUP/fPl5yjcf3LunjeWPQdRcd 0CIlMvwtEbkA== X-IronPort-AV: E=Sophos;i="5.75,318,1589241600"; d="scan'208";a="57611640" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 06 Jul 2020 11:26:55 +0000 Received: from EX13MTAUWC001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com (Postfix) with ESMTPS id 09218A1D35; Mon, 6 Jul 2020 11:26:53 +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, 6 Jul 2020 11:26:53 +0000 Received: from 38f9d3867b82.ant.amazon.com (10.43.161.203) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 6 Jul 2020 11:26:46 +0000 Subject: Re: [PATCH v4 13/18] nitro_enclaves: Add logic for enclave termination To: Andra Paraschiv , CC: Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , "Bjoern Doebel" , David Woodhouse , "Frank van der Linden" , Greg KH , 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-14-andraprs@amazon.com> From: Alexander Graf Message-ID: <34a0bee8-aaf4-d221-cd6e-41b5f3d8f335@amazon.com> Date: Mon, 6 Jul 2020 13:26:42 +0200 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: <20200622200329.52996-14-andraprs@amazon.com> Content-Language: en-US X-Originating-IP: [10.43.161.203] X-ClientProxiedBy: EX13D18UWA001.ant.amazon.com (10.43.160.11) 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 22.06.20 22:03, Andra Paraschiv wrote: > An enclave is associated with an fd that is returned after the enclave > creation logic is completed. This enclave fd is further used to setup > enclave resources. Once the enclave needs to be terminated, the enclave > fd is closed. > = > Add logic for enclave termination, that is mapped to the enclave fd > release callback. Free the internal enclave info used for bookkeeping. > = > Signed-off-by: Alexandru Vasile > 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