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=-16.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 22F64C4320E for ; Fri, 27 Aug 2021 07:21:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E27D60FD8 for ; Fri, 27 Aug 2021 07:21:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244406AbhH0HWk (ORCPT ); Fri, 27 Aug 2021 03:22:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38660 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244198AbhH0HWi (ORCPT ); Fri, 27 Aug 2021 03:22:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630048909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=P7AbRF8g9kF3iNkqSowKy6V7iUBVivXq+0DaEzOiKbQ=; b=ApkQJ8LCgXiISL9YJXpqGd5l/EZ2QIWNLlzqarCTlCYNLl/tp8FZ3HbUfT+yIWsqEyGxFi /R4FPrqj3KV01s5q3gy7DIZgAskmAvElw9bF5WgHXQw2MYg6NL4zQ2scK+bvsM2X06Q5gx 3NcKv2S/NiOvY7NRB78rDutwzX+s0nQ= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-200-Kwx455nuPdmUpEuTKGm2Tg-1; Fri, 27 Aug 2021 03:21:48 -0400 X-MC-Unique: Kwx455nuPdmUpEuTKGm2Tg-1 Received: by mail-ej1-f70.google.com with SMTP id gb24-20020a170907961800b005c158d37301so2251184ejc.17 for ; Fri, 27 Aug 2021 00:21:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P7AbRF8g9kF3iNkqSowKy6V7iUBVivXq+0DaEzOiKbQ=; b=BAqozXyPckzTVyfnQvMuFXT+o185YjOwWa6dpNyzAurlTmV1wDBE2LQGZX7kp5q+Vg woT+YFBGRTh7P7/fYom9PZmNPG2Qau0yDJCKgmv4ECLPJWhctifaGaiSGwrsETha9gvW PBDeERi3cHaxJYQPGZBCIRInreOh8v7QnaMT9MG2lInR9pvhWJ4Q4uhznrOcJQa4WGYB +8r/mLcaP7IMihvk68BCBsmAX4vUf4h0vP9B0BxTwcSu/76MhD90FoIYyTq5lCZhyyay 3ngnnj0455J7A2U5orqQYG770zcCRbXr+l5P6C5qb376j2rTi8d9uxkZqKzkdXcC76s5 LKLQ== X-Gm-Message-State: AOAM530DpTxiFlRAilVNpKVroQXywcTd9KtPPAMUpRrO+bnMozsom7fK Skfc2VpWWal6ldfkhZ5lqaoNqq+Qi6ayFkmaovi7+pzGIx5pIkxsnfMf8tMcOMwyElP7PeEf94w gjF8Snd0ZEmTMw6xtFPVzZVg1 X-Received: by 2002:a17:906:1fd4:: with SMTP id e20mr8626092ejt.421.1630048907006; Fri, 27 Aug 2021 00:21:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWg1xXqNiorZgR8T58rEsVQDwfH5wUl/c8mZleWZuPOQ+ZXA/1mYSSRDNOCZCEBjdvKW8w2g== X-Received: by 2002:a17:906:1fd4:: with SMTP id e20mr8626079ejt.421.1630048906799; Fri, 27 Aug 2021 00:21:46 -0700 (PDT) Received: from steredhat (host-79-36-51-142.retail.telecomitalia.it. [79.36.51.142]) by smtp.gmail.com with ESMTPSA id n15sm2916196edw.70.2021.08.27.00.21.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Aug 2021 00:21:46 -0700 (PDT) Date: Fri, 27 Aug 2021 09:21:44 +0200 From: Stefano Garzarella To: Andra Paraschiv Cc: linux-kernel , Alexandru Ciobotaru , Greg KH , Kamal Mostafa , Alexandru Vasile , Paolo Bonzini , Stefan Hajnoczi , Vitaly Kuznetsov , kvm , ne-devel-upstream Subject: Re: [PATCH v1 2/3] nitro_enclaves: Update documentation for Arm support Message-ID: <20210827072144.gqncsq42vfpzmoxl@steredhat> References: <20210826173451.93165-1-andraprs@amazon.com> <20210826173451.93165-3-andraprs@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210826173451.93165-3-andraprs@amazon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 26, 2021 at 08:34:50PM +0300, Andra Paraschiv wrote: >Add references for hugepages and booting steps for Arm. > >Signed-off-by: Andra Paraschiv >--- > Documentation/virt/ne_overview.rst | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) If you need to respin, maybe we can add a little section with supported architectures (x86, ARM64). Stefano > >diff --git a/Documentation/virt/ne_overview.rst b/Documentation/virt/ne_overview.rst >index 39b0c8fe2654a..2777da1fb0ad1 100644 >--- a/Documentation/virt/ne_overview.rst >+++ b/Documentation/virt/ne_overview.rst >@@ -43,8 +43,8 @@ for the enclave VM. An enclave does not have persistent storage attached. > The memory regions carved out of the primary VM and given to an enclave need to > be aligned 2 MiB / 1 GiB physically contiguous memory regions (or multiple of > this size e.g. 8 MiB). The memory can be allocated e.g. by using hugetlbfs from >-user space [2][3]. The memory size for an enclave needs to be at least 64 MiB. >-The enclave memory and CPUs need to be from the same NUMA node. >+user space [2][3][7]. The memory size for an enclave needs to be at least >+64 MiB. The enclave memory and CPUs need to be from the same NUMA node. > > An enclave runs on dedicated cores. CPU 0 and its CPU siblings need to remain > available for the primary VM. A CPU pool has to be set for NE purposes by an >@@ -61,7 +61,7 @@ device is placed in memory below the typical 4 GiB. > The application that runs in the enclave needs to be packaged in an enclave > image together with the OS ( e.g. kernel, ramdisk, init ) that will run in the > enclave VM. The enclave VM has its own kernel and follows the standard Linux >-boot protocol [6]. >+boot protocol [6][8]. > > The kernel bzImage, the kernel command line, the ramdisk(s) are part of the > Enclave Image Format (EIF); plus an EIF header including metadata such as magic >@@ -93,3 +93,5 @@ enclave process can exit. > [4] https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html > [5] https://man7.org/linux/man-pages/man7/vsock.7.html > [6] https://www.kernel.org/doc/html/latest/x86/boot.html >+[7] https://www.kernel.org/doc/html/latest/arm64/hugetlbpage.html >+[8] https://www.kernel.org/doc/html/latest/arm64/booting.html >-- >2.20.1 (Apple Git-117) > > > > >Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005. >