Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp603566ybk; Sat, 9 May 2020 12:23:16 -0700 (PDT) X-Google-Smtp-Source: APiQypJvhhpx3LwfcSdaYj0O5DvDPK+hjWi0jHG3ummP3rjJLZm4x3wcT0WgRyF1zVOmObMtE/Ql X-Received: by 2002:a05:6402:319c:: with SMTP id di28mr7574993edb.185.1589052196170; Sat, 09 May 2020 12:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589052196; cv=none; d=google.com; s=arc-20160816; b=lHP6Yv7rtx3baBOYtxcxKy2EkWb5cDXG11o+HA4JE24mT0EISJtylkU+dGbA1K65dA hPxcEcifrxwW9e2wTHgayJwucqAXQgyA/2Tb8Ix1ALLUhEAwOmtAL1xOly5on6auW5im JJhUiSaRiH1gwPrM1KFv5yh9S+v6TeOEhUMzr3gvKptyBgAlLgDO+dQHd2Q/Q526E7iP icMCZMrwRZ5XNz7IMpMIYb6qf46Pee1jVnPk5s07adJWD1uerqBL9+xplD36IDA4+ypI H5bD+1jHldzFL0LmvGghVEyr392flZ3tkMShe3Uwy1UmO8+U2J1mHz1j28qUW71t2V6j iKhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VFVcTPYmUPt+W1UJfZpXLfmWXBheNX7IKOVwStuCK/I=; b=UjrqtW0LGeAAJcYmwu7MYDpapI9DkUaM6DNeH+rOLQvsY+LNK8ZkUmxha/7Sp+4lty F2y2/W32vgw2vV9+mcOFBRC9elyboZPaWAgHj7JalakA1+V84+kiWo2ZENClsoNu3OjP oKvTMbSkSrj5p0hdxbzERho42jUKWqIfYCnaZntOUmy71jhLfpd/YuhgdkX9/MI2dJbv BVaHgnA0PYuNnFGrh2/l/tkPd3kWAdn79aknbnkLd2vvkIXKWzzukK07xRDa+3dLZWCH MoPoxpkUidbm6l5878gE/wPaG1j26yTi58HWtC3XYb87CULs7q5/ea/CfYEcTtBWBPV8 FKzQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd21si3201158ejb.261.2020.05.09.12.22.53; Sat, 09 May 2020 12:23:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728285AbgEITV3 (ORCPT + 99 others); Sat, 9 May 2020 15:21:29 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:51526 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727938AbgEITV3 (ORCPT ); Sat, 9 May 2020 15:21:29 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 1EEA61C0257; Sat, 9 May 2020 21:21:27 +0200 (CEST) Date: Sat, 9 May 2020 21:21:25 +0200 From: Pavel Machek To: "Paraschiv, Andra-Irina" Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , Bjoern Doebel , David Woodhouse , Frank van der Linden , Alexander Graf , Martin Pohlack , Matt Wilson , Balbir Singh , Stewart Smith , Uwe Dannowski , kvm@vger.kernel.org, ne-devel-upstream@amazon.com Subject: Re: [PATCH v1 00/15] Add support for Nitro Enclaves Message-ID: <20200509192125.GA1597@bug> References: <20200421184150.68011-1-andraprs@amazon.com> <18406322-dc58-9b59-3f94-88e6b638fe65@redhat.com> <2a4a15c5-7adb-c574-d558-7540b95e2139@redhat.com> <20200507174438.GB1216@bug> <620bf5ae-eade-37da-670d-a8704d9b4397@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <620bf5ae-eade-37da-670d-a8704d9b4397@amazon.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2020-05-08 10:00:27, Paraschiv, Andra-Irina wrote: > > > On 07/05/2020 20:44, Pavel Machek wrote: > > > >Hi! > > > >>>it uses its own memory and CPUs + its virtio-vsock emulated device for > >>>communication with the primary VM. > >>> > >>>The memory and CPUs are carved out of the primary VM, they are dedicated > >>>for the enclave. The Nitro hypervisor running on the host ensures memory > >>>and CPU isolation between the primary VM and the enclave VM. > >>> > >>>These two components need to reflect the same state e.g. when the > >>>enclave abstraction process (1) is terminated, the enclave VM (2) is > >>>terminated as well. > >>> > >>>With regard to the communication channel, the primary VM has its own > >>>emulated virtio-vsock PCI device. The enclave VM has its own emulated > >>>virtio-vsock device as well. This channel is used, for example, to fetch > >>>data in the enclave and then process it. An application that sets up the > >>>vsock socket and connects or listens, depending on the use case, is then > >>>developed to use this channel; this happens on both ends - primary VM > >>>and enclave VM. > >>> > >>>Let me know if further clarifications are needed. > >>Thanks, this is all useful. However can you please clarify the > >>low-level details here? > >Is the virtual machine manager open-source? If so, I guess pointer for sources > >would be useful. > > Hi Pavel, > > Thanks for reaching out. > > The VMM that is used for the primary / parent VM is not open source. Do we want to merge code that opensource community can not test? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html