Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3036713pxb; Tue, 24 Aug 2021 13:34:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVHy9Dbp5MyS0mzAUTuSIEM9S7wvc6AgcL6Hjuu3v8K1dYGfaT2pxIt1Cb4yOR/pan4wCk X-Received: by 2002:a05:6e02:1be2:: with SMTP id y2mr26154142ilv.293.1629837289631; Tue, 24 Aug 2021 13:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629837289; cv=none; d=google.com; s=arc-20160816; b=rg6tEOXobAzjlEQ4RCh+YrbqPSad/nZ0yp4tESCrUqtLUQvWf+EEg+8l20tzsKUldT Zi4UuBpW73rAxyJxHBfv1CFz4iZslx3DK8aKEmxKFZ3KaPODtd+XPIkk14v02BCj1i2E 3Qy6pGW48tNAN6bntNaZ5Ymazvvey/BIH50B5bnrw1ZoEwhumZy6Kp7RAUCxfaSzfix2 5Fa5jlBcCNK0dJfw10cv0/Adx/LXR69ObqVuj7H5AH3WGLhDS5NgUEuMZB3QNZY8CNX3 h3GjsVWTmO/hpYV+/VoL6wF2F/xLD5prhvTwLDl+hMzI1PEisV7tbeVW8hVpPKv6zT2B zouA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=CTr/6qnGBcx5PinwUzYdI47Z3BYgepj0vYSXNrcOmlw=; b=gNlrGT87w7OXHALOL66j9FnCILkbhYPqkz1RqbPLA+FP0U3lnmmNdRyNYGBQMNgfff oLCpqFyhRZ5ktMiWuXnXEW2vIGnm188q50y7Kfb74RoLRK4124X5OycM20+yajFW6BFU S1tMEIM/w7jAtqtEL3szLgGkvzLtLVnlOuak3xzfa06YEENBStIazwJIZsCev4XtUkrH VACzVQq/II0HANwV++RY6AT2jhPLj5VdPCivBkiFHRgDuZDEdXk8oC1//f0yHjIBsXFQ RA8r2mI1vI9leGatAuKMGEFFONBuUoMCFvpESxw1rzMO1/5uu2oPLvbnx8GNzyeUeOpV eqFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E7gmG9cu; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si8265029ioj.96.2021.08.24.13.34.00; Tue, 24 Aug 2021 13:34:49 -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=@kernel.org header.s=k20201202 header.b=E7gmG9cu; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235197AbhHXUcC (ORCPT + 99 others); Tue, 24 Aug 2021 16:32:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:37406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234675AbhHXUcB (ORCPT ); Tue, 24 Aug 2021 16:32:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3738C610F7; Tue, 24 Aug 2021 20:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629837076; bh=u89RhbA1T4/YcegxqumOKFDZveULzg7IH3BXxWstXGA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=E7gmG9cu+2X8EpSv9jHNw194dQ/bFH+W8S5CviPC+WEzgK9x1GqwxeKDnQA93Ubc6 pIROpW9mCbmFawlLNt183dkzLJG92jUie48vdct5nMY9KMIpav4jCN5vVtcBqt99IN LlMRmUTD9hQbKroaOXlhVlrUixEOK798eHEQ6pmGyuqfJJo5J4wfidKynCvdtb3s37 PjcEO5DOcIPu3SLREF0Tt+IUZRL6NjCeGqQy3Vt+WmnxMDtnryxVfbjA5YVJAeYKm9 BpOJvSuNngQVXkAMINkK0ZwKmdIz+EDYyzVhKaDWPyJSTPhZYBRtaAf1VAW/wDK4NO xT3mGvV5LJ4bA== Date: Tue, 24 Aug 2021 15:31:15 -0500 From: Bjorn Helgaas To: Andi Kleen Cc: "Michael S. Tsirkin" , Dan Williams , "Kuppuswamy, Sathyanarayanan" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Bjorn Helgaas , Richard Henderson , Thomas Bogendoerfer , James E J Bottomley , Helge Deller , "David S . Miller" , Arnd Bergmann , Jonathan Corbet , Peter H Anvin , Dave Hansen , Tony Luck , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML , Linux Kernel Mailing List , Linux PCI , linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch , Linux Doc Mailing List , virtualization@lists.linux-foundation.org, Rajat Jain Subject: Re: [PATCH v4 11/15] pci: Add pci_iomap_shared{,_range} Message-ID: <20210824203115.GA3492097@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 01:14:02PM -0700, Andi Kleen wrote: > > On 8/24/2021 11:55 AM, Bjorn Helgaas wrote: > > [+cc Rajat; I still don't know what "shared memory with a hypervisor > > in a confidential guest" means, > > A confidential guest is a guest which uses memory encryption to isolate > itself from the host. It doesn't trust the host. But it still needs to > communicate with the host for IO, so it has some special memory areas that > are explicitly marked shared. These are used to do IO with the host. All > their usage needs to be carefully hardened to avoid any security attacks on > the guest, that's why we want to limit this interaction only to a small set > of hardened drivers. For MMIO, the set is currently only virtio and MSI-X. Good material for the commit log next time around. Thanks! Bjorn