Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp931155ybj; Thu, 7 May 2020 10:46:40 -0700 (PDT) X-Google-Smtp-Source: APiQypKgn5qUxe0+laHjMfxGkJSS8JXglgZfqhEZXWqb8mzWeBX7W8+i3JRvJ9STZk5SGItGKrES X-Received: by 2002:a17:907:1185:: with SMTP id uz5mr13203040ejb.335.1588873600530; Thu, 07 May 2020 10:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588873600; cv=none; d=google.com; s=arc-20160816; b=t42tO0L9FhGlPl2YIEAeU42u3OGNm2uCRPZtPVd/PAKOG13kpLIVVHwymsFq1BXY6r o23s3PHQEKySrmJquFvGi62F5ktnbZRlG2hJpQ0SQ4erofxm29Gfn5AMJyXktQWOZOgG jmbtGoF/t0/NBq/z6l3U2imUH52JGjQnrdU9pLLoCHuwKp3tXzjeVHqov6G2gcubxGQJ 0Z+GfzpnToAlqn6XDhaN+PBci+p/0moOyVTxAjefGJFmlzsq5WGEEWadELAe3pe/E6lU 80YQz1NSgvSQiVXFhcd05gLq39tVXeGsFeKJgZi3jPBb5ySDzVbkARUxH3bhcgH7rCIM ntlw== 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=jv1Qv067tnKI3ywupNnelgc47be1Mv0UTfeaLbEwj04=; b=H1gxddVlnaUyai6azQClb/Ylsz47pNGKR0hAezf40824i2iybEOkNCLIlJgMICXy0V nFrVojPoNg9pxHirjzFEqV8WC/tbkXyRLHJ0faFLORIN3GQs8KpuVVhFdbrn5GBrWyAw wkVjcMPn/KpAtQ/vftFbmZw0TwbgFXDcAiHUSrcnswLi0iQKtxsguw+N2g+vVjAZ6p2g xeeZcI0KxNhFivxLoR+drBLwqiRAkcdFWvf/DS6Ht98SjxLnyBTk+jxdpE9TLqJNYGQ7 txBdCnS+snl+maDNCm0T13MLwn++dWoYXvfL996bTvGK2HpFCGLoAh9nUSYXPLnJuuJE 8Fsw== 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 f10si3676623ejb.466.2020.05.07.10.46.15; Thu, 07 May 2020 10:46:40 -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 S1727826AbgEGRol (ORCPT + 99 others); Thu, 7 May 2020 13:44:41 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:40608 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbgEGRol (ORCPT ); Thu, 7 May 2020 13:44:41 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id CBB0C1C0256; Thu, 7 May 2020 19:44:39 +0200 (CEST) Date: Thu, 7 May 2020 19:44:38 +0200 From: Pavel Machek To: Paolo Bonzini Cc: "Paraschiv, Andra-Irina" , 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: <20200507174438.GB1216@bug> References: <20200421184150.68011-1-andraprs@amazon.com> <18406322-dc58-9b59-3f94-88e6b638fe65@redhat.com> <2a4a15c5-7adb-c574-d558-7540b95e2139@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2a4a15c5-7adb-c574-d558-7540b95e2139@redhat.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 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. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html