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=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 E45E2C433E0 for ; Thu, 2 Jul 2020 15:24:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BD859208D5 for ; Thu, 2 Jul 2020 15:24:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.de header.i=@amazon.de header.b="oU5PeklT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730345AbgGBPYb (ORCPT ); Thu, 2 Jul 2020 11:24:31 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:55302 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730090AbgGBPYa (ORCPT ); Thu, 2 Jul 2020 11:24:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1593703470; x=1625239470; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=jmo9WvMLs3m8DMcve2XT/1n3FnVnksloDtVkaP3n9Io=; b=oU5PeklTDd0oD3IpPCJvOqv+7zDcvEGV3hX80pQWq0dew+UFzcak2vTX u0CdEaXBD3AAUQsRTBFSnTVgd3Uap6qKRyq6ieymhQpgj2r8jBAdgevOV HmC9Ywdkncd85Hp83D04ryU/31x6AjNUO6Kdo15YxNMtrhqDq9j+7AB1e Q=; IronPort-SDR: m1ivGNWdfeTbhFo7fbtQTk1VmoNjsmzX9iuabln/wVCF6K9epQ1os0aeymMLqFj80PNqwgyZUz 2wiZRVXdJ4iw== X-IronPort-AV: E=Sophos;i="5.75,304,1589241600"; d="scan'208";a="48688181" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-c300ac87.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 02 Jul 2020 15:24:28 +0000 Received: from EX13MTAUWC001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-c300ac87.us-west-2.amazon.com (Postfix) with ESMTPS id 2E2F7A269C; Thu, 2 Jul 2020 15:24:27 +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; Thu, 2 Jul 2020 15:24:26 +0000 Received: from 38f9d3867b82.ant.amazon.com (10.43.160.65) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Jul 2020 15:24:21 +0000 Subject: Re: [PATCH v4 02/18] nitro_enclaves: Define the PCI device interface To: Andra Paraschiv , CC: Anthony Liguori , Benjamin Herrenschmidt , Colm MacCarthaigh , "Bjoern Doebel" , David Woodhouse , "Frank van der Linden" , Greg KH , Martin Pohlack , Matt Wilson , "Paolo Bonzini" , Balbir Singh , "Stefano Garzarella" , Stefan Hajnoczi , Stewart Smith , Uwe Dannowski , , References: <20200622200329.52996-1-andraprs@amazon.com> <20200622200329.52996-3-andraprs@amazon.com> From: Alexander Graf Message-ID: Date: Thu, 2 Jul 2020 17:24:17 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200622200329.52996-3-andraprs@amazon.com> Content-Language: en-US X-Originating-IP: [10.43.160.65] X-ClientProxiedBy: EX13D16UWB003.ant.amazon.com (10.43.161.194) 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 22.06.20 22:03, Andra Paraschiv wrote: > The Nitro Enclaves (NE) driver communicates with a new PCI device, that > is exposed to a virtual machine (VM) and handles commands meant for > handling enclaves lifetime e.g. creation, termination, setting memory > regions. The communication with the PCI device is handled using a MMIO > space and MSI-X interrupts. > = > This device communicates with the hypervisor on the host, where the VM > that spawned the enclave itself run, e.g. to launch a VM that is used > for the enclave. > = > Define the MMIO space of the PCI device, the commands that are > provided by this device. Add an internal data structure used as private > data for the PCI device driver and the functions for the PCI device init > / uninit and command requests handling. > = > Signed-off-by: Alexandru-Catalin Vasile > Signed-off-by: Alexandru Ciobotaru > 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