Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2061131ybz; Thu, 23 Apr 2020 10:53:04 -0700 (PDT) X-Google-Smtp-Source: APiQypKth4TP6kJY9WjVcMkVYvFBG4Eb6aobAXZ3peduSxez2pxn9JVRnQSKdTEUS/uB1D49niwB X-Received: by 2002:a17:906:4542:: with SMTP id s2mr3860643ejq.34.1587664384212; Thu, 23 Apr 2020 10:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587664384; cv=none; d=google.com; s=arc-20160816; b=NZNocw5pKpAsPdWmX2w96KCeux0yYqWARTEMellkbp/fVDnOw9vBU2mieAqCs5iWZL I0vPv6C0mGparac8wGgnSKYsY/ZwiHKXApg5dBb1UU1ymwqyHvS30xqrNCMpq7Jyar5x zw9MeKYpURXQABt7tZojVZqckQXSZfFxlQNFcz6N/c06hHM2rwnZUmLmnbKgCCmo/xuY fQzOkK5pYbE4AvjmnF65jCa37xcApIYvJqPOAk0fVFlq5ft77H37OacYniCWqNa1uHuT pFCdp/bNrFDZZ4zAdlY0DdWixFWTGtSSty/x9AJ58SzQgdzN5p++eJcdF2GBvToP8BoT Cdig== 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:dkim-signature; bh=K4I4TQXbu0COs/qS0TdMrpO0BMmwvUdkWqtKkxdiZtg=; b=PlhrQd2ehUniY+dLqza0iT6cb/coXPpRdoIwWQrEX0ZQOwMIb8P5nFsAteqRs8gyYK L1UtEN4iBxYDII4d1MBH5EOYmawoZU11XwvfbW1d4FvDpYbTCkYnLqvsl2qWjariSkzL 39gV5MGx7tW1TcWAb8/ZQp1LLlfAEXGFq4bmundd79I2i01NJVQZrIznwZCJZvliqaqQ rWBiuBDyOOehAmLprEHT2NBRmsqd2pHHTLtetjp2/0qW0XxZOfY8sCJoIDmH1BWYx6Na O/8uZsqYkhEBETbI8na8JchqYW9qwvSHtTJB002SSS3xgWBx4i1PQkRCEW2WLu0jjsyV 2ezw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q7kmrUSJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si1544468edb.200.2020.04.23.10.52.41; Thu, 23 Apr 2020 10:53:04 -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=@redhat.com header.s=mimecast20190719 header.b=Q7kmrUSJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730029AbgDWRvU (ORCPT + 99 others); Thu, 23 Apr 2020 13:51:20 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:57409 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729889AbgDWRvU (ORCPT ); Thu, 23 Apr 2020 13:51:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587664279; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K4I4TQXbu0COs/qS0TdMrpO0BMmwvUdkWqtKkxdiZtg=; b=Q7kmrUSJztHIZqhpDgQ2Xk/v5fhpqOJEt3iGB0THxP1c91Qd19SW1IjlCg6VBWVh48mEVP 7aPdszrzYrwRzFttCb9mQt8dPPs1cEQtWO0A8C+iM7xcCBszeSSjJ9z22h58TINQ0luhAl 0g0HQLTxzhnLF7cHYmgO0A3JjnXsCWs= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-229-mn-TdN1CPCC676oJ5djcYw-1; Thu, 23 Apr 2020 13:51:13 -0400 X-MC-Unique: mn-TdN1CPCC676oJ5djcYw-1 Received: by mail-wr1-f71.google.com with SMTP id p2so3246367wrx.12 for ; Thu, 23 Apr 2020 10:51:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=K4I4TQXbu0COs/qS0TdMrpO0BMmwvUdkWqtKkxdiZtg=; b=GkccjypMzZ7NG7mYqYiKIFp7buqO9Bd115k5v79lB9tOgrvvqafvhN3+oFP+s33kNe nyBC3jJiPRBnDeIGYGydwvX9wOCIMwWAxzx+1x6j/OFirRpUHTxs+vntvGzbFLfUQCl7 phAPmr4VApYLEPzNsVgCgEMCgHIdjijihdGlDt8NL9K/IwUmqJhPRwA3Ce7vKpkACoYP 4fh0sbO5RtYbwsGs8PGsduZkvgJxaeySB5s7wnAtFj9iPeZnIgF79Qef8P1OoRGJyCmi bfv0R8GONspngwKCSBaubTL70/bs7ITHW+CSH6SOSTxJedD6MSzOp3ESPk5vcJEZkSAx +HTQ== X-Gm-Message-State: AGi0PuaqNf3ohrAQMRNDoIwSPs9EbTY+6v3bqiQ4EineMyEdF9+SyOE9 zwYrHjtaCMODj7g5wiO3kAA009/xlHfCioCB8QZtISOqrD/w1QaRFj8YzDEjoWjnP3cpy6AVAir LQ5pTtMeCdt7Vhx6Rr3oHRkmC X-Received: by 2002:a1c:9e51:: with SMTP id h78mr5726979wme.177.1587664272587; Thu, 23 Apr 2020 10:51:12 -0700 (PDT) X-Received: by 2002:a1c:9e51:: with SMTP id h78mr5726937wme.177.1587664272275; Thu, 23 Apr 2020 10:51:12 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:f43b:97b2:4c89:7446? ([2001:b07:6468:f312:f43b:97b2:4c89:7446]) by smtp.gmail.com with ESMTPSA id h137sm15720031wme.0.2020.04.23.10.51.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2020 10:51:11 -0700 (PDT) Subject: Re: [PATCH v1 00/15] Add support for Nitro Enclaves To: "Paraschiv, Andra-Irina" , linux-kernel@vger.kernel.org Cc: 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 References: <20200421184150.68011-1-andraprs@amazon.com> <18406322-dc58-9b59-3f94-88e6b638fe65@redhat.com> <2a4a15c5-7adb-c574-d558-7540b95e2139@redhat.com> <1ee5958d-e13e-5175-faf7-a1074bd9846d@amazon.com> From: Paolo Bonzini Message-ID: Date: Thu, 23 Apr 2020 19:51:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1ee5958d-e13e-5175-faf7-a1074bd9846d@amazon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/04/20 19:42, Paraschiv, Andra-Irina wrote: >> >>>> - the initial CPU state: CPL0 vs. CPL3, initial program counter, etc. > > The enclave VM has its own kernel and follows the well-known Linux boot > protocol, in the end getting to the user application after init finishes > its work, so that's CPL3. CPL3 is how the user application run, but does the enclave's Linux boot process start in real mode at the reset vector (0xfffffff0), in 16-bit protected mode at the Linux bzImage entry point, or at the ELF entry point? Paolo