Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4179394pxa; Mon, 10 Aug 2020 02:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztVH0KggYFbuV5jMSB0PStYgNDkmwTkTDmr3KTPEW9lAZFyVkZ+hEjKdopNLSuM1rboLcV X-Received: by 2002:a17:906:a116:: with SMTP id t22mr21413191ejy.353.1597053385125; Mon, 10 Aug 2020 02:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597053385; cv=none; d=google.com; s=arc-20160816; b=LBZWC0eQJYdQ0HDtkuwayEIp+2bCstYT8wRT0SjDDC2MafNKagA7pA4LDURcdN9yeZ gDzwPvxJ5xvDGWHGGQx68QHDDE+B+1Ql5KJfehJ1fqN4Di255JYJ9AxpWW6ve3LR/1gF RVGz06QxMvwrQ/D6Tl0ntyZhKkQXmUlnMcSwjCiDEcwMkSc1Oa5o2L2+MbiQx54aIcvJ eGgMdVf0KK0BGRVmk9ybm+OwjKVUOI97rz3G3gB5ZCU9PeLZ3kp4YV2ZIU9AVLbxdjun /8Mn3IE0VXStWcUnQsiAuGHIfO5sTS9sbOB8j6cXIj/GFf1vNPFhI91SJ+iXqIoAB60g Sm5A== 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=8aroeKp+TU0h9KbgQNdJ0GlbSrv/KIjPx49wzwoNgdY=; b=Iv6h4WaQAZ9KiLZSiuDWVvNO+ntWmXfvlURcdN7Y6BNxYRbq9/4c4v3U7MqEgcUJBt qB0tj6+LGcWhL1msXsqCaGW2FB5YNOFSzq4nukB397zdf7kv/k/csNQyaoFQ0BBV7asa /wk/1L24BpHkOQHRdEUzoKM3aubB8lyAdMtHth4TLimIknMcE5fEJ8NRax30fowTZ8rU niVlhs0E2cqACj3xi0BcuY6DMMcql9KpWMUAEz1ltjiMnsRWoe5hZAUUASAcfCr0otLD /FwtMQP1iKaqlxtk8c9z+pUlFXTSJ/7jod6dRVKr3/dM3fjL5610Fkjmvisst0PfIWWQ +96A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=ji1CLJdb; 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 b5si703423edf.85.2020.08.10.02.56.02; Mon, 10 Aug 2020 02:56:25 -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=ji1CLJdb; 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 S1726817AbgHJJyl (ORCPT + 99 others); Mon, 10 Aug 2020 05:54:41 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:40361 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbgHJJyi (ORCPT ); Mon, 10 Aug 2020 05:54:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1597053279; x=1628589279; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=8aroeKp+TU0h9KbgQNdJ0GlbSrv/KIjPx49wzwoNgdY=; b=ji1CLJdbfca7/lbvfrDGxIlsK0jhjFtjc6eYhya2SDWRuIpj+G3WjLzz /LXlEbvuHhv87xAZ3cf4PRMa9sh4DU1O1I2AkiEr9JRSGG0kAPGIC8WZD CwSmxGPIkNS2adTqCqCH6XWeTNh74R6DPnAJHQVmWiE0l/F5WcQ+r4s1j s=; IronPort-SDR: 6jHd86C88g8LHIGDVrhLjCMXAO1W3rp71sqL2wpipWlBI0Buwu/tC04mxFQxhB7seKMpQSucxe sgL+Q1oyUorQ== X-IronPort-AV: E=Sophos;i="5.75,457,1589241600"; d="scan'208";a="58615007" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-81e76b79.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 10 Aug 2020 09:54:36 +0000 Received: from EX13MTAUWC001.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 1B171A1C89; Mon, 10 Aug 2020 09:54:35 +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:54:34 +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:54:29 +0000 Subject: Re: [PATCH v6 11/18] nitro_enclaves: Add logic for setting an enclave memory region 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-12-andraprs@amazon.com> From: Alexander Graf Message-ID: <76b87d46-88b6-4c00-4ac7-27e5be020a57@amazon.de> Date: Mon, 10 Aug 2020 11:54:27 +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-12-andraprs@amazon.com> Content-Language: en-US X-Originating-IP: [10.43.161.71] X-ClientProxiedBy: EX13d09UWC004.ant.amazon.com (10.43.162.114) 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: > Another resource that is being set for an enclave is memory. User space > memory regions, that need to be backed by contiguous memory regions, > are associated with the enclave. > = > One solution for allocating / reserving contiguous memory regions, that > is used for integration, is hugetlbfs. The user space process that is > associated with the enclave passes to the driver these memory regions. > = > The enclave memory regions need to be from the same NUMA node as the > enclave CPUs. > = > Add ioctl command logic for setting user space memory region for an > enclave. > = > 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