Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp645063pxb; Wed, 25 Aug 2021 11:31:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA5G7xmJQrgLGaGCAMgxmS5UC+IgYrMmNhKfzxr4dslDu8vtrxSYTzx/91Uh3reiQGrtXW X-Received: by 2002:a17:906:3a98:: with SMTP id y24mr33896ejd.198.1629916307001; Wed, 25 Aug 2021 11:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629916306; cv=none; d=google.com; s=arc-20160816; b=zcYkgBFYZD1F7uhtfsTL7grg291i6HOfzaiyaw7QlpUGlqTz/YrGh+Jg0GQfNq/ZtK ebvtgSCUvS/zPV0VTgCCUX+avm17pgn9ao9UplyF22fVXIQLMFD226XH6vc+3F1qLPOW +jz7cDqEjIQXOhygKOoxyFc5nrKPSGQSzeAyDyXU/kPcurt99qAadO8y9pjVuOvMG51u f9s5QlVDHCtWvwuuu37iG8FQm1IUDGjvebfI/InsarIzwfRYLuTPq4cPY4JGBOQ1bmxo QMarh1/2cnwXPX/3TtD/fVeBMApWqfjQF3whLq+RJFVdtikvyQBayBxGK6u1Vk4LbFAp SnxA== 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=zWWV7GIub/GE/H0JI1P4DGUI3o3VfRZtWntwCjZ4qgI=; b=FwcIeyQlCP6+347I651FSxmtuFhU2bHK+ES2VWOnTroWcWN2vViqxNO8ddQ+2/JryD zWeGLbJRUJgSkjirb7H+aR8xrpYgbHhVd/4NwZ0R5nqZWs7RX9umkTfaiTaQWeFCgFns KX/Pk7C/U99QAQM/7H/C1ilmrb6QF2Ai3Nc4XrNkHsGSfPLumr2zyAxna5TXIcSKRozg bRYbuTSlBbIMBmxKKWnve0M9rmCsQOhsEj4BgpeJvEp/pyhF6CxNwenI7ob8WDrvNBhE HuqVN6Hfjr8oklxAjTgnNr6TQdX/qlKQQTWE3mNZYXS4Nj0MEt3VaIrJV4dUiWlJZ8qN 4lVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=etlal+X6; 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 h6si482116eje.225.2021.08.25.11.31.20; Wed, 25 Aug 2021 11:31:46 -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=etlal+X6; 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 S241848AbhHYOxX (ORCPT + 99 others); Wed, 25 Aug 2021 10:53:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:54138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240395AbhHYOxW (ORCPT ); Wed, 25 Aug 2021 10:53:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 36A4E610CD; Wed, 25 Aug 2021 14:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629903156; bh=JavDwpgii8kF2lXyvHOwR8IF/SUWfOr82rbSiTe1nco=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=etlal+X6PK/iyyE+nCKJqe8xvh6sOY35Jz8lqksr6gEQVCToh4OokpBhqzSLN+EQd CbpLIssWEQtnZPMe70kfBxZJeme2Vw5EfXhChn/2RVE74/XOQ0ogJdDJbJSxQ6B6tW NpWtwQV/bKLoQqX4+aw+rClsxeZQuTcMptgtwqLJE9cPhKmxBAMOvE9u1TAbpbyusm 2r/bieajK+y11XHoHy7rRrWGS+kpuVvgAm5FMOgzMz/YOJ/ryEgttZaNO+A2gFqSgV gSDOXXqDHEGwZCzB6XgcGfNipfy8ECvl8ldyO/Fs4RX/PiHXnplmt9Ddb5SbfOzVkW H7gyI/GMyzCTg== Date: Wed, 25 Aug 2021 09:52:35 -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: <20210825145235.GA3565590@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:50:00PM -0700, Andi Kleen wrote: > > On 8/24/2021 1:31 PM, Bjorn Helgaas wrote: > > 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! > > This is all in the patch intro too, which should make it into the merge > commits. It's good if the cover letter makes into the merge commit log. It's probably just because my git foo is lacking, but merge commit logs don't seem as discoverable as the actual patch commit logs. Five years from now, if I want to learn about pci_iomap_shared() history, I would "git log -p lib/pci_iomap.c" and search for it. But I don't think I would see the merge commit then. Bjorn